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.
- package/index.js +6 -6
- 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.
|
|
209
|
+
` ${pm.dlx} wrangler d1 create ${projectName}-db`,
|
|
210
210
|
" # Add the database_id to wrangler.toml",
|
|
211
|
-
` ${pm.
|
|
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.
|
|
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.
|
|
379
|
+
remaining.push(` ${pm.dlx} wrangler r2 bucket create ${projectName}-assets`);
|
|
380
380
|
}
|
|
381
381
|
if (!cf.migrationsApplied) {
|
|
382
|
-
remaining.push(` ${pm.
|
|
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`);
|