create-kide-app 0.6.0 → 0.6.1

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.
Files changed (2) hide show
  1. package/index.js +8 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -59,7 +59,9 @@ const pm = {
59
59
  exec: "pnpm exec",
60
60
  dlx: "pnpm dlx",
61
61
  run: "pnpm",
62
- install: "pnpm install",
62
+ // The scaffold rewrites package.json, so the template lockfile never matches; pnpm
63
+ // defaults to --frozen-lockfile when CI=true and would refuse to install.
64
+ install: "pnpm install --no-frozen-lockfile",
63
65
  };
64
66
 
65
67
  // --- Template repo ---
@@ -649,8 +651,10 @@ async function main() {
649
651
  try {
650
652
  await runAsync(pm.install, projectDir);
651
653
  s.stop("Dependencies installed");
652
- } catch {
654
+ } catch (err) {
653
655
  s.stop(`${pm.install} failed — run it manually`);
656
+ if (err.stderr) console.error(err.stderr.slice(-1500));
657
+ if (err.stdout) console.error(err.stdout.slice(-1500));
654
658
  }
655
659
 
656
660
  // --- Initialize git repository ---
@@ -981,10 +985,11 @@ async function main() {
981
985
  );
982
986
  cf.migrationsApplied = true;
983
987
  s.stop("Migrations applied");
984
- } catch {
988
+ } catch (err) {
985
989
  s.stop(
986
990
  "Migration apply failed — run manually with: wrangler d1 migrations apply --remote",
987
991
  );
992
+ if (err.stderr) console.error(err.stderr.toString().slice(-800));
988
993
  }
989
994
  }
990
995
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kide-app",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Scaffold a new Kide CMS project",
5
5
  "author": "Matti Hernesniemi",
6
6
  "license": "MIT",