create-kide-app 0.0.19 → 0.0.20

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 +6 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -29,7 +29,7 @@ const runAsync = (cmd, cwd) =>
29
29
 
30
30
  // --- Package manager detection ---
31
31
 
32
- const pm = { name: "pnpm", exec: "pnpm dlx", run: "pnpm", install: "pnpm install" };
32
+ const pm = { name: "pnpm", exec: "pnpm exec", dlx: "pnpm dlx", run: "pnpm", install: "pnpm install" };
33
33
 
34
34
  // --- Main ---
35
35
 
@@ -206,9 +206,9 @@ async function main() {
206
206
  [
207
207
  "Seeding for Cloudflare requires a D1 database.",
208
208
  "",
209
- ` ${pm.exec} wrangler d1 create ${projectName}-db`,
209
+ ` ${pm.dlx} wrangler d1 create ${projectName}-db`,
210
210
  " # Add the database_id to wrangler.toml",
211
- ` ${pm.exec} wrangler d1 migrations apply ${projectName}-db --local`,
211
+ ` ${pm.dlx} wrangler d1 migrations apply ${projectName}-db --local`,
212
212
  ` ${pm.run} cms:seed`,
213
213
  ].join("\n"),
214
214
  "Seed manually",
@@ -371,15 +371,15 @@ async function main() {
371
371
  const remaining = [];
372
372
  if (!cf.d1Created) {
373
373
  remaining.push(
374
- ` ${pm.exec} wrangler d1 create ${projectName}-db`,
374
+ ` ${pm.dlx} wrangler d1 create ${projectName}-db`,
375
375
  " # Copy the database_id to wrangler.toml",
376
376
  );
377
377
  }
378
378
  if (!cf.r2Created) {
379
- remaining.push(` ${pm.exec} wrangler r2 bucket create ${projectName}-assets`);
379
+ remaining.push(` ${pm.dlx} wrangler r2 bucket create ${projectName}-assets`);
380
380
  }
381
381
  if (!cf.migrationsApplied) {
382
- remaining.push(` ${pm.exec} wrangler d1 migrations apply ${projectName}-db --remote`);
382
+ remaining.push(` ${pm.dlx} wrangler d1 migrations apply ${projectName}-db --remote`);
383
383
  }
384
384
  if (!cf.deployed) {
385
385
  remaining.push(` ${pm.run} run deploy`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kide-app",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Scaffold a new Kide CMS project",
5
5
  "author": "Matti Hernesniemi",
6
6
  "license": "MIT",