@expo/build-tools 0.1.178 → 0.1.180
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/dist/builders/custom.js
CHANGED
|
@@ -41,7 +41,12 @@ async function runCustomBuildAsync(ctx) {
|
|
|
41
41
|
ctx.logger.error({ err }, 'Failed to upload artifacts');
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
try {
|
|
45
|
+
await workflow.cleanUpAsync();
|
|
46
|
+
}
|
|
47
|
+
catch (err) {
|
|
48
|
+
ctx.logger.error({ err }, 'Failed to clean up custom build temporary files');
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
}
|
|
47
52
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.js","sourceRoot":"","sources":["../../src/builders/custom.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,uDAAsD;AACtD,uCAAqF;AACrF,4DAAoC;AAEpC,wCAAmE;AACnE,6DAAsE;AAE/D,KAAK,UAAU,mBAAmB,CAAgB,GAAoB;;IAC3E,MAAM,IAAA,2CAA0B,EAAC,GAAG,CAAC,CAAC;IAEtC,MAAM,kBAAkB,GAAG,IAAA,oBAAU,EACnC,MAAA,GAAG,CAAC,GAAG,CAAC,iBAAiB,0CAAE,IAAI,EAC/B,uDAAuD,CACxD,CAAC;IACF,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAAC;IAElF,MAAM,gBAAgB,GAAG,IAAI,wBAAgB,CAC3C,GAAG,CAAC,GAAG,CAAC,YAAY,EACpB,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,0BAAU,CAAC,MAAM,EAAE,CAAC,EAC9C,KAAK,EACL,GAAG,CAAC,2BAA2B,CAChC,CAAC;IACF,MAAM,MAAM,GAAG,IAAI,yBAAiB,CAAC,gB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B,MAAM,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;yBAC5C;qBACF;iBACF;gBAAC,OAAO,GAAQ,EAAE;oBACjB,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,4BAA4B,CAAC,CAAC;iBACzD;YACH,CAAC,CAAC,CAAC;YAEH,IAAI;gBACF,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAC;aAC/B;YAAC,OAAO,GAAQ,EAAE;gBACjB,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,iDAAiD,CAAC,CAAC;aAC9E;SACF;KACF;IAAC,OAAO,GAAQ,EAAE;QACjB,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC9B,MAAM,GAAG,CAAC;KACX;IAED,OAAO,GAAG,CAAC,SAAS,CAAC;AACvB,CAAC;AAnDD,kDAmDC","sourcesContent":["import path from 'path';\n\nimport { BuildPhase, Job } from '@expo/eas-build-job';\nimport { BuildArtifactType, BuildConfigParser, BuildStepContext } from '@expo/steps';\nimport nullthrows from 'nullthrows';\n\nimport { Artifacts, ArtifactType, BuildContext } from '../context';\nimport { prepareProjectSourcesAsync } from '../common/projectSources';\n\nexport async function runCustomBuildAsync<T extends Job>(ctx: BuildContext<T>): Promise<Artifacts> {\n await prepareProjectSourcesAsync(ctx);\n\n const relativeConfigPath = nullthrows(\n ctx.job.customBuildConfig?.path,\n 'Custom build config must be defined for custom builds'\n );\n const configPath = path.join(ctx.reactNativeProjectDirectory, relativeConfigPath);\n\n const buildStepContext = new BuildStepContext(\n ctx.env.EAS_BUILD_ID,\n ctx.logger.child({ phase: BuildPhase.CUSTOM }),\n false,\n ctx.reactNativeProjectDirectory\n );\n const parser = new BuildConfigParser(buildStepContext, { configPath });\n const workflow = await parser.parseAsync();\n try {\n try {\n await workflow.executeAsync(ctx.env);\n } finally {\n await ctx.runBuildPhase(BuildPhase.UPLOAD_BUILD_ARTIFACTS, async () => {\n try {\n const artifacts = await workflow.collectArtifactsAsync();\n for (const buildArtifactType of Object.keys(artifacts)) {\n const type: ArtifactType =\n buildArtifactType === BuildArtifactType.APPLICATION_ARCHIVE\n ? ArtifactType.APPLICATION_ARCHIVE\n : ArtifactType.BUILD_ARTIFACTS;\n const filePaths = artifacts[buildArtifactType as BuildArtifactType] ?? [];\n if (filePaths.length > 0) {\n await ctx.uploadArtifacts(type, filePaths);\n }\n }\n } catch (err: any) {\n ctx.logger.error({ err }, 'Failed to upload artifacts');\n }\n });\n\n try {\n await workflow.cleanUpAsync();\n } catch (err: any) {\n ctx.logger.error({ err }, 'Failed to clean up custom build temporary files');\n }\n }\n } catch (err: any) {\n err.artifacts = ctx.artifacts;\n throw err;\n }\n\n return ctx.artifacts;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/build-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.180",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@expo/logger": "0.0.27",
|
|
28
28
|
"@expo/package-manager": "^0.0.57",
|
|
29
29
|
"@expo/plist": "^0.0.20",
|
|
30
|
-
"@expo/steps": "0.0.
|
|
30
|
+
"@expo/steps": "0.0.6",
|
|
31
31
|
"@expo/template-file": "0.1.25",
|
|
32
32
|
"@expo/turtle-spawn": "0.0.28",
|
|
33
33
|
"@expo/xcpretty": "^4.2.2",
|