@expo/build-tools 0.1.112 → 0.1.115

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.
@@ -17,7 +17,7 @@ async function prebuildAsync(ctx, options) {
17
17
  exports.prebuildAsync = prebuildAsync;
18
18
  function getPrebuildCommand(job) {
19
19
  var _a, _b;
20
- let prebuildCommand = (_b = (_a = job.experimental) === null || _a === void 0 ? void 0 : _a.prebuildCommand) !== null && _b !== void 0 ? _b : `prebuild --non-interactive --platform ${job.platform}`;
20
+ let prebuildCommand = (_b = (_a = job.experimental) === null || _a === void 0 ? void 0 : _a.prebuildCommand) !== null && _b !== void 0 ? _b : `prebuild --non-interactive --no-install --platform ${job.platform}`;
21
21
  if (!prebuildCommand.match(/(?:--platform| -p)/)) {
22
22
  prebuildCommand = `${prebuildCommand} --platform ${job.platform}`;
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"prebuild.js","sourceRoot":"","sources":["../../src/utils/prebuild.ts"],"names":[],"mappings":";;;;;;AACA,sEAA8D;AAQvD,KAAK,UAAU,aAAa,CACjC,GAAuB,EACvB,OAAyB;IAEzB,MAAM,YAAY,GAAiB;QACjC,GAAG,EAAE,GAAG,CAAC,2BAA2B;QACpC,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,GAAG,kCACE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,GAClB,GAAG,CAAC,GAAG,CACX;KACF,CAAC;IAEF,MAAM,GAAG,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC;IACvE,MAAM,IAAA,sBAAU,EAAC,GAAG,CAAC,cAAc,EAAE,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,CAAC;AAClE,CAAC;AAfD,sCAeC;AAED,SAAS,kBAAkB,CAAC,GAAQ;;IAClC,IAAI,eAAe,GACjB,MAAA,MAAA,GAAG,CAAC,YAAY,0CAAE,eAAe,mCAAI,yCAAyC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC/F,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QAChD,eAAe,GAAG,GAAG,eAAe,eAAe,GAAG,CAAC,QAAQ,EAAE,CAAC;KACnE;IACD,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE;QAC/C,eAAe,GAAG,GAAG,eAAe,oBAAoB,CAAC;KAC1D;IACD,MAAM,gBAAgB,GAAG,MAAM,CAAC;IAChC,MAAM,iBAAiB,GAAG,OAAO,CAAC;IAClC,MAAM,oBAAoB,GAAG,WAAW,CAAC;IACzC,IAAI,eAAe,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE;QAChD,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;KAC1E;IACD,IAAI,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE;QACjD,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;KAC3E;IACD,IAAI,eAAe,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE;QACpD,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;KAC9E;IACD,OAAO,eAAe,CAAC;AACzB,CAAC","sourcesContent":["import { Job } from '@expo/eas-build-job';\nimport spawnAsync, { SpawnOptions } from '@expo/turtle-spawn';\n\nimport { BuildContext } from '../context';\n\nexport interface PrebuildOptions {\n extraEnvs?: Record<string, string>;\n}\n\nexport async function prebuildAsync<TJob extends Job>(\n ctx: BuildContext<TJob>,\n options?: PrebuildOptions\n): Promise<void> {\n const spawnOptions: SpawnOptions = {\n cwd: ctx.reactNativeProjectDirectory,\n logger: ctx.logger,\n env: {\n ...options?.extraEnvs,\n ...ctx.env,\n },\n };\n\n await ctx.runExpoCliCommand(getPrebuildCommand(ctx.job), spawnOptions);\n await spawnAsync(ctx.packageManager, ['install'], spawnOptions);\n}\n\nfunction getPrebuildCommand(job: Job): string {\n let prebuildCommand =\n job.experimental?.prebuildCommand ?? `prebuild --non-interactive --platform ${job.platform}`;\n if (!prebuildCommand.match(/(?:--platform| -p)/)) {\n prebuildCommand = `${prebuildCommand} --platform ${job.platform}`;\n }\n if (!prebuildCommand.match(/--non-interactive/)) {\n prebuildCommand = `${prebuildCommand} --non-interactive`;\n }\n const npxCommandPrefix = 'npx ';\n const expoCommandPrefix = 'expo ';\n const expoCliCommandPrefix = 'expo-cli ';\n if (prebuildCommand.startsWith(npxCommandPrefix)) {\n prebuildCommand = prebuildCommand.substr(npxCommandPrefix.length).trim();\n }\n if (prebuildCommand.startsWith(expoCommandPrefix)) {\n prebuildCommand = prebuildCommand.substr(expoCommandPrefix.length).trim();\n }\n if (prebuildCommand.startsWith(expoCliCommandPrefix)) {\n prebuildCommand = prebuildCommand.substr(expoCliCommandPrefix.length).trim();\n }\n return prebuildCommand;\n}\n"]}
1
+ {"version":3,"file":"prebuild.js","sourceRoot":"","sources":["../../src/utils/prebuild.ts"],"names":[],"mappings":";;;;;;AACA,sEAA8D;AAQvD,KAAK,UAAU,aAAa,CACjC,GAAuB,EACvB,OAAyB;IAEzB,MAAM,YAAY,GAAiB;QACjC,GAAG,EAAE,GAAG,CAAC,2BAA2B;QACpC,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,GAAG,kCACE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,GAClB,GAAG,CAAC,GAAG,CACX;KACF,CAAC;IAEF,MAAM,GAAG,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC;IACvE,MAAM,IAAA,sBAAU,EAAC,GAAG,CAAC,cAAc,EAAE,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,CAAC;AAClE,CAAC;AAfD,sCAeC;AAED,SAAS,kBAAkB,CAAC,GAAQ;;IAClC,IAAI,eAAe,GACjB,MAAA,MAAA,GAAG,CAAC,YAAY,0CAAE,eAAe,mCACjC,sDAAsD,GAAG,CAAC,QAAQ,EAAE,CAAC;IACvE,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QAChD,eAAe,GAAG,GAAG,eAAe,eAAe,GAAG,CAAC,QAAQ,EAAE,CAAC;KACnE;IACD,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE;QAC/C,eAAe,GAAG,GAAG,eAAe,oBAAoB,CAAC;KAC1D;IACD,MAAM,gBAAgB,GAAG,MAAM,CAAC;IAChC,MAAM,iBAAiB,GAAG,OAAO,CAAC;IAClC,MAAM,oBAAoB,GAAG,WAAW,CAAC;IACzC,IAAI,eAAe,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE;QAChD,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;KAC1E;IACD,IAAI,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE;QACjD,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;KAC3E;IACD,IAAI,eAAe,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE;QACpD,eAAe,GAAG,eAAe,CAAC,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;KAC9E;IACD,OAAO,eAAe,CAAC;AACzB,CAAC","sourcesContent":["import { Job } from '@expo/eas-build-job';\nimport spawnAsync, { SpawnOptions } from '@expo/turtle-spawn';\n\nimport { BuildContext } from '../context';\n\nexport interface PrebuildOptions {\n extraEnvs?: Record<string, string>;\n}\n\nexport async function prebuildAsync<TJob extends Job>(\n ctx: BuildContext<TJob>,\n options?: PrebuildOptions\n): Promise<void> {\n const spawnOptions: SpawnOptions = {\n cwd: ctx.reactNativeProjectDirectory,\n logger: ctx.logger,\n env: {\n ...options?.extraEnvs,\n ...ctx.env,\n },\n };\n\n await ctx.runExpoCliCommand(getPrebuildCommand(ctx.job), spawnOptions);\n await spawnAsync(ctx.packageManager, ['install'], spawnOptions);\n}\n\nfunction getPrebuildCommand(job: Job): string {\n let prebuildCommand =\n job.experimental?.prebuildCommand ??\n `prebuild --non-interactive --no-install --platform ${job.platform}`;\n if (!prebuildCommand.match(/(?:--platform| -p)/)) {\n prebuildCommand = `${prebuildCommand} --platform ${job.platform}`;\n }\n if (!prebuildCommand.match(/--non-interactive/)) {\n prebuildCommand = `${prebuildCommand} --non-interactive`;\n }\n const npxCommandPrefix = 'npx ';\n const expoCommandPrefix = 'expo ';\n const expoCliCommandPrefix = 'expo-cli ';\n if (prebuildCommand.startsWith(npxCommandPrefix)) {\n prebuildCommand = prebuildCommand.substr(npxCommandPrefix.length).trim();\n }\n if (prebuildCommand.startsWith(expoCommandPrefix)) {\n prebuildCommand = prebuildCommand.substr(expoCommandPrefix.length).trim();\n }\n if (prebuildCommand.startsWith(expoCliCommandPrefix)) {\n prebuildCommand = prebuildCommand.substr(expoCliCommandPrefix.length).trim();\n }\n return prebuildCommand;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/build-tools",
3
- "version": "0.1.112",
3
+ "version": "0.1.115",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -21,24 +21,24 @@
21
21
  "dependencies": {
22
22
  "@expo/config": "6.0.11",
23
23
  "@expo/config-plugins": "4.0.11",
24
- "@expo/downloader": "0.0.18",
24
+ "@expo/downloader": "0.0.19",
25
25
  "@expo/eas-build-job": "0.2.68",
26
26
  "@expo/fastlane": "0.0.27",
27
27
  "@expo/logger": "0.0.22",
28
28
  "@expo/package-manager": "^0.0.47",
29
29
  "@expo/plist": "^0.0.11",
30
- "@expo/template-file": "0.1.20",
30
+ "@expo/template-file": "0.1.21",
31
31
  "@expo/turtle-spawn": "0.0.22",
32
32
  "@expo/xcpretty": "^4.1.1",
33
33
  "fast-glob": "^3.2.5",
34
34
  "find-yarn-workspace-root": "^2.0.0",
35
- "fs-extra": "^9.0.0",
35
+ "fs-extra": "^10.0.1",
36
36
  "node-forge": "^1.2.1",
37
37
  "nullthrows": "^1.1.1",
38
38
  "plist": "^3.0.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/fs-extra": "^9.0.1",
41
+ "@types/fs-extra": "^9.0.13",
42
42
  "@types/jest": "^26.0.20",
43
43
  "@types/node": "^16.11.26",
44
44
  "@types/node-forge": "^1.0.1",
@@ -46,7 +46,7 @@
46
46
  "@types/uuid": "^3.4.5",
47
47
  "@types/xml2js": "^0.4.5",
48
48
  "jest": "^27.5.1",
49
- "memfs": "^3.2.0",
49
+ "memfs": "^3.4.1",
50
50
  "ts-jest": "^27.1.3",
51
51
  "typescript": "^4.6.2"
52
52
  }
@@ -5,47 +5,32 @@ import java.nio.file.Paths
5
5
  android {
6
6
  signingConfigs {
7
7
  release {
8
- // This is necessary to avoid needing the user to define a release signing config manually
9
- // If no release config is defined, and this is not present, build for assembleRelease will crash
8
+ def credentialsJson = rootProject.file("../credentials.json");
9
+ def credentials = new groovy.json.JsonSlurper().parse(credentialsJson)
10
+ def keystorePath = Paths.get(credentials.android.keystore.keystorePath);
11
+ def storeFilePath = keystorePath.isAbsolute()
12
+ ? keystorePath
13
+ : rootProject.file("..").toPath().resolve(keystorePath);
14
+
15
+ storeFile storeFilePath.toFile()
16
+ storePassword credentials.android.keystore.keystorePassword
17
+ keyAlias credentials.android.keystore.keyAlias
18
+ if (credentials.android.keystore.containsKey("keyPassword")) {
19
+ keyPassword credentials.android.keystore.keyPassword
20
+ } else {
21
+ // key password is required by Gradle, but PKCS keystores don't have one
22
+ // using the keystore password seems to satisfy the requirement
23
+ keyPassword credentials.android.keystore.keystorePassword
24
+ }
10
25
  }
11
26
  }
12
27
 
13
28
  buildTypes {
14
29
  release {
15
- // This is necessary to avoid needing the user to define a release build type manually
30
+ signingConfig android.signingConfigs.release
16
31
  }
17
32
  debug {
18
- // This is necessary to avoid needing the user to define a debug build type manually
19
- }
20
- }
21
- }
22
-
23
- tasks.whenTaskAdded {
24
- android.signingConfigs.release {
25
- def credentialsJson = rootProject.file("../credentials.json");
26
- def credentials = new groovy.json.JsonSlurper().parse(credentialsJson)
27
- def keystorePath = Paths.get(credentials.android.keystore.keystorePath);
28
- def storeFilePath = keystorePath.isAbsolute()
29
- ? keystorePath
30
- : rootProject.file("..").toPath().resolve(keystorePath);
31
-
32
- storeFile storeFilePath.toFile()
33
- storePassword credentials.android.keystore.keystorePassword
34
- keyAlias credentials.android.keystore.keyAlias
35
- if (credentials.android.keystore.containsKey("keyPassword")) {
36
- keyPassword credentials.android.keystore.keyPassword
37
- } else {
38
- // key password is required by Gradle, but PKCS keystores don't have one
39
- // using the keystore password seems to satisfy the requirement
40
- keyPassword credentials.android.keystore.keystorePassword
33
+ signingConfig android.signingConfigs.release
41
34
  }
42
35
  }
43
-
44
- android.buildTypes.release {
45
- signingConfig android.signingConfigs.release
46
- }
47
-
48
- android.buildTypes.debug {
49
- signingConfig android.signingConfigs.release
50
- }
51
36
  }