@lynxship/cli 0.1.12 → 0.1.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"guidance.d.ts","sourceRoot":"","sources":["../src/guidance.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;CAChC;AAumBD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,eAAoB,GAC5B,WAAW,CAEb"}
1
+ {"version":3,"file":"guidance.d.ts","sourceRoot":"","sources":["../src/guidance.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;CAChC;AA6mBD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,OAAO,EACd,OAAO,GAAE,eAAoB,GAC5B,WAAW,CAEb"}
package/dist/guidance.js CHANGED
@@ -253,8 +253,13 @@ const guidance = {
253
253
  note: "Simulator .app artifacts stay local; use a signed production device build for R2 upload and distribution.",
254
254
  },
255
255
  IOS_COCOAPODS_REQUIRED: {
256
- commands: ["brew install cocoapods", "lynxship build --platform ios"],
257
- note: "CocoaPods is required when the iOS host contains a Podfile.",
256
+ commands: [
257
+ "brew install cocoapods",
258
+ "cd ios && pod install --repo-update",
259
+ "lynxship doctor --platform ios --profile simulator",
260
+ "lynxship build --platform ios --simulator --profile simulator --no-upload",
261
+ ],
262
+ note: "CocoaPods is required when the iOS host contains a Podfile. The first install refreshes the CocoaPods specs repository.",
258
263
  },
259
264
  IOS_PROJECT_REQUIRED: {
260
265
  commands: [
@@ -487,10 +492,11 @@ function guidanceForErrorBase(error) {
487
492
  if (/xcode|xcrun|cocoapods|pod install/i.test(message)) {
488
493
  return {
489
494
  commands: [
490
- "lynxship doctor --platform ios",
491
- "lynxship build --platform ios",
495
+ "cd ios && pod install --repo-update",
496
+ "lynxship doctor --platform ios --profile simulator",
497
+ "lynxship build --platform ios --simulator --profile simulator --no-upload",
492
498
  ],
493
- note: "Check macOS, Xcode command-line tools and CocoaPods.",
499
+ note: "Check macOS, Xcode command-line tools and CocoaPods. For a first install, refresh the CocoaPods specs repository.",
494
500
  };
495
501
  }
496
502
  return { commands: [] };
@@ -1 +1 @@
1
- {"version":3,"file":"ios-build.d.ts","sourceRoot":"","sources":["../src/ios-build.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhD,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD;AAwRD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAcxE;AAsDD,wBAAsB,eAAe,CACnC,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,QAAQ,CAAC,CAwMnB"}
1
+ {"version":3,"file":"ios-build.d.ts","sourceRoot":"","sources":["../src/ios-build.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhD,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD;AAwRD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAcxE;AA+DD,wBAAsB,eAAe,CACnC,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,QAAQ,CAAC,CAwMnB"}
package/dist/ios-build.js CHANGED
@@ -221,8 +221,11 @@ async function installCocoaPods(root, quiet, onEvent) {
221
221
  if (!existsSync(podfile))
222
222
  return;
223
223
  assert(commandExists("pod"), "IOS_COCOAPODS_REQUIRED", "CocoaPods was not found. Install CocoaPods on macOS, then rerun the build.");
224
- onEvent?.("Installing iOS CocoaPods dependencies…");
225
- await runProcess("pod", ["install"], {
224
+ const hasLockfile = existsSync(join(iosDirectory, "Podfile.lock"));
225
+ onEvent?.(hasLockfile
226
+ ? "Installing iOS CocoaPods dependencies…"
227
+ : "Updating CocoaPods specs and installing iOS dependencies…");
228
+ await runProcess("pod", hasLockfile ? ["install"] : ["install", "--repo-update"], {
226
229
  cwd: iosDirectory,
227
230
  quiet,
228
231
  onOutput: onEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynxship/cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Build, sign, store, submit and update LynxJS applications from the terminal.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -69,9 +69,9 @@
69
69
  "ora": "8.2.0",
70
70
  "qrcode-terminal": "0.12.0",
71
71
  "@lynxship/build-orchestrator": "0.1.0",
72
+ "@lynxship/contracts": "0.1.0",
72
73
  "@lynxship/db": "0.1.0",
73
74
  "@lynxship/submit": "0.1.0",
74
- "@lynxship/contracts": "0.1.0",
75
75
  "@lynxship/signing": "0.1.0"
76
76
  },
77
77
  "devDependencies": {