create-skybridge 0.0.0-next.adbde82 → 0.0.0-next.aec652f
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/index.js
CHANGED
|
@@ -270,7 +270,11 @@ export async function init(args = process.argv.slice(2)) {
|
|
|
270
270
|
}
|
|
271
271
|
pm = choice;
|
|
272
272
|
}
|
|
273
|
-
// 8.
|
|
273
|
+
// 8. pnpm ≥10 fails installs unless esbuild's build script is allow-listed
|
|
274
|
+
if (pm === "pnpm") {
|
|
275
|
+
fs.writeFileSync(path.join(root, "pnpm-workspace.yaml"), 'packages:\n - "."\nonlyBuiltDependencies:\n - esbuild\nallowBuilds:\n esbuild: true\n');
|
|
276
|
+
}
|
|
277
|
+
// 9. Always install dependencies
|
|
274
278
|
Spinner.start(`Installing dependencies with ${pm}`);
|
|
275
279
|
const { status, output } = await spawnAsync(pm, ["install"]);
|
|
276
280
|
if (status === 0) {
|
|
@@ -281,7 +285,7 @@ export async function init(args = process.argv.slice(2)) {
|
|
|
281
285
|
\x1b[2m${output}\x1b[0m`);
|
|
282
286
|
abort(`Try manually: cd ${targetDir} && ${pm} install`);
|
|
283
287
|
}
|
|
284
|
-
//
|
|
288
|
+
// 10. Start dev server?
|
|
285
289
|
let start = false;
|
|
286
290
|
if (argv.start) {
|
|
287
291
|
start = true;
|
package/package.json
CHANGED