@multiplatform.one/cli 9.0.1 → 9.0.3

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.
@@ -114,7 +114,7 @@ async function scaffoldScriptAt(source, ref, file) {
114
114
  return true;
115
115
  } catch (err) {
116
116
  if (err.exitCode === 3) return false;
117
- const detail = (err.stderr ?? "").trim().split("\n").filter(Boolean).pop() ?? err.message;
117
+ const detail = (err.stderr ?? "").trim().split("\n").findLast(Boolean) ?? err.message;
118
118
  throw new Error(`could not read ${scaffoldPath} at ${ref} from ${source}: ${detail}`);
119
119
  }
120
120
  }
package/lib/source.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "cliVersion": "9.0.1",
2
+ "cliVersion": "9.0.3",
3
3
  "url": "https://git.corp.bitspur.com/multiplatform.one/mpo.git",
4
- "sha": "69e76ed3be28a273947442d6658b86de1420ca3d"
4
+ "sha": "c38a8f3b70231194e0fb8f8a403cde3c8b8ffe75"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/cli",
3
- "version": "9.0.1",
3
+ "version": "9.0.3",
4
4
  "description": "multiplatform.one cli — mpo init clones and prunes the monorepo, mpo update merges it back",
5
5
  "keywords": [
6
6
  "create-multiplatform-app",
@@ -57,7 +57,7 @@
57
57
  "access": "public"
58
58
  },
59
59
  "dependencies": {
60
- "@multiplatform.one/utils": "^9.0.1",
60
+ "@multiplatform.one/utils": "^9.0.3",
61
61
  "commander": "^15.0.0",
62
62
  "dotenv": "^17.4.2",
63
63
  "inquirer": "^14.2.3",
@@ -154,7 +154,7 @@ async function scaffoldScriptAt(source: string, ref: string, file: string): Prom
154
154
  } catch (err) {
155
155
  if ((err as { exitCode?: number }).exitCode === 3) return false;
156
156
  const stderr = ((err as { stderr?: string }).stderr ?? "").trim();
157
- const detail = stderr.split("\n").filter(Boolean).pop() ?? (err as Error).message;
157
+ const detail = stderr.split("\n").findLast(Boolean) ?? (err as Error).message;
158
158
  throw new Error(`could not read ${scaffoldPath} at ${ref} from ${source}: ${detail}`);
159
159
  }
160
160
  }