@expo/steps 0.0.10 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +100 -0
- package/dist_commonjs/BuildConfig.cjs +19 -4
- package/dist_commonjs/BuildConfig.d.ts +8 -4
- package/dist_commonjs/BuildConfig.js.map +1 -1
- package/dist_commonjs/BuildConfigParser.cjs +6 -1
- package/dist_commonjs/BuildConfigParser.js.map +1 -1
- package/dist_commonjs/BuildStep.cjs +3 -1
- package/dist_commonjs/BuildStep.js.map +1 -1
- package/dist_commonjs/BuildStepInput.cjs +10 -1
- package/dist_commonjs/BuildStepInput.d.ts +14 -11
- package/dist_commonjs/BuildStepInput.js.map +1 -1
- package/dist_commonjs/BuildStepOutput.cjs +1 -1
- package/dist_commonjs/BuildStepOutput.d.ts +10 -9
- package/dist_commonjs/BuildStepOutput.js.map +1 -1
- package/dist_commonjs/BuildWorkflowValidator.cjs +7 -0
- package/dist_commonjs/BuildWorkflowValidator.js.map +1 -1
- package/dist_commonjs/cli/cli.cjs +7 -0
- package/dist_commonjs/cli/cli.js.map +1 -1
- package/dist_esm/BuildConfig.d.ts +8 -4
- package/dist_esm/BuildConfig.js +19 -4
- package/dist_esm/BuildConfig.js.map +1 -1
- package/dist_esm/BuildConfigParser.js +6 -1
- package/dist_esm/BuildConfigParser.js.map +1 -1
- package/dist_esm/BuildStep.js +3 -1
- package/dist_esm/BuildStep.js.map +1 -1
- package/dist_esm/BuildStepInput.d.ts +14 -11
- package/dist_esm/BuildStepInput.js +10 -1
- package/dist_esm/BuildStepInput.js.map +1 -1
- package/dist_esm/BuildStepOutput.d.ts +10 -9
- package/dist_esm/BuildStepOutput.js +1 -1
- package/dist_esm/BuildStepOutput.js.map +1 -1
- package/dist_esm/BuildWorkflowValidator.js +7 -0
- package/dist_esm/BuildWorkflowValidator.js.map +1 -1
- package/dist_esm/cli/cli.js +7 -0
- package/dist_esm/cli/cli.js.map +1 -1
- package/package.json +4 -3
package/dist_esm/cli/cli.js
CHANGED
|
@@ -3,6 +3,7 @@ import { createLogger } from '@expo/logger';
|
|
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
|
4
4
|
import { BuildConfigParser } from '../BuildConfigParser.js';
|
|
5
5
|
import { BuildStepContext } from '../BuildStepContext.js';
|
|
6
|
+
import { BuildWorkflowError } from '../errors.js';
|
|
6
7
|
const logger = createLogger({
|
|
7
8
|
name: 'steps-cli',
|
|
8
9
|
level: 'info',
|
|
@@ -24,5 +25,11 @@ const configPath = path.resolve(process.cwd(), relativeConfigPath);
|
|
|
24
25
|
const workingDirectory = path.resolve(process.cwd(), relativeWorkingDirectoryPath);
|
|
25
26
|
runAsync(configPath, workingDirectory).catch((err) => {
|
|
26
27
|
logger.error({ err }, 'Build failed');
|
|
28
|
+
if (err instanceof BuildWorkflowError) {
|
|
29
|
+
logger.error('Failed to parse the custom build config file.');
|
|
30
|
+
for (const detailedErr of err.errors) {
|
|
31
|
+
logger.error({ err: detailedErr });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
27
34
|
});
|
|
28
35
|
//# sourceMappingURL=cli.js.map
|
package/dist_esm/cli/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli/cli.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MA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AAC;AAEnF,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnD,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;IACtC,IAAI,GAAG,YAAY,kBAAkB,EAAE;QACrC,MAAM,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;QAC9D,KAAK,MAAM,WAAW,IAAI,GAAG,CAAC,MAAM,EAAE;YACpC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC;SACpC;KACF;AACH,CAAC,CAAC,CAAC","sourcesContent":["import path from 'path';\n\nimport { createLogger } from '@expo/logger';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { BuildConfigParser } from '../BuildConfigParser.js';\nimport { BuildStepContext } from '../BuildStepContext.js';\nimport { BuildWorkflowError } from '../errors.js';\n\nconst logger = createLogger({\n name: 'steps-cli',\n level: 'info',\n});\n\nasync function runAsync(configPath: string, workingDirectory: string): Promise<void> {\n const fakeBuildId = uuidv4();\n const ctx = new BuildStepContext(fakeBuildId, logger, false, workingDirectory);\n const parser = new BuildConfigParser(ctx, { configPath });\n const workflow = await parser.parseAsync();\n await workflow.executeAsync();\n}\n\nconst relativeConfigPath = process.argv[2];\nconst relativeWorkingDirectoryPath = process.argv[3];\n\nif (!relativeConfigPath && !relativeWorkingDirectoryPath) {\n console.error('Usage: yarn cli config.yml path/to/working/directory');\n process.exit(1);\n}\n\nconst configPath = path.resolve(process.cwd(), relativeConfigPath);\nconst workingDirectory = path.resolve(process.cwd(), relativeWorkingDirectoryPath);\n\nrunAsync(configPath, workingDirectory).catch((err) => {\n logger.error({ err }, 'Build failed');\n if (err instanceof BuildWorkflowError) {\n logger.error('Failed to parse the custom build config file.');\n for (const detailedErr of err.errors) {\n logger.error({ err: detailedErr });\n }\n }\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/steps",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"main": "./dist_commonjs/index.cjs",
|
|
6
6
|
"types": "./dist_esm/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"node": ">=14.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@expo/logger": "0.0
|
|
49
|
+
"@expo/logger": "1.0.0",
|
|
50
50
|
"@expo/spawn-async": "^1.7.0",
|
|
51
51
|
"arg": "^5.0.2",
|
|
52
52
|
"joi": "^17.7.0",
|
|
@@ -57,5 +57,6 @@
|
|
|
57
57
|
"volta": {
|
|
58
58
|
"node": "18.13.0",
|
|
59
59
|
"yarn": "1.22.19"
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
|
+
"gitHead": "70bc03aa69788a3df0caee2174dfbaf8bc8af5f9"
|
|
61
62
|
}
|