@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.
- package/lib/commands/scaffold.mjs +1 -1
- package/lib/source.json +2 -2
- package/package.json +2 -2
- package/src/commands/scaffold.ts +1 -1
|
@@ -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").
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/cli",
|
|
3
|
-
"version": "9.0.
|
|
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.
|
|
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",
|
package/src/commands/scaffold.ts
CHANGED
|
@@ -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").
|
|
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
|
}
|