create-kide-app 0.0.20 → 0.0.22
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 +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -22,6 +22,7 @@ const runAsync = (cmd, cwd) =>
|
|
|
22
22
|
else {
|
|
23
23
|
const err = new Error(`Command failed: ${cmd}`);
|
|
24
24
|
err.stderr = stderr;
|
|
25
|
+
err.stdout = stdout;
|
|
25
26
|
reject(err);
|
|
26
27
|
}
|
|
27
28
|
});
|
|
@@ -34,7 +35,7 @@ const pm = { name: "pnpm", exec: "pnpm exec", dlx: "pnpm dlx", run: "pnpm", inst
|
|
|
34
35
|
// --- Main ---
|
|
35
36
|
|
|
36
37
|
async function main() {
|
|
37
|
-
p.intro("Create Kide CMS Project");
|
|
38
|
+
p.intro("🪐 Create Kide CMS Project");
|
|
38
39
|
|
|
39
40
|
// 1. Project name
|
|
40
41
|
const projectName =
|
|
@@ -337,14 +338,15 @@ async function main() {
|
|
|
337
338
|
if (!p.isCancel(doDeploy) && doDeploy) {
|
|
338
339
|
s.start("Building and deploying to Cloudflare");
|
|
339
340
|
try {
|
|
340
|
-
const deployOutput = await runAsync(`${pm.run} deploy`, projectDir);
|
|
341
|
+
const deployOutput = await runAsync(`${pm.run} run deploy`, projectDir);
|
|
341
342
|
const urlMatch = deployOutput.match(/https:\/\/[^\s]+\.workers\.dev/);
|
|
342
343
|
if (urlMatch) cf.url = urlMatch[0];
|
|
343
344
|
cf.deployed = true;
|
|
344
345
|
s.stop("Deployed to Cloudflare");
|
|
345
346
|
} catch (err) {
|
|
346
347
|
s.stop("Deploy failed — run manually with: pnpm run deploy");
|
|
347
|
-
if (err.stderr) console.error(err.stderr.slice(-
|
|
348
|
+
if (err.stderr) console.error(err.stderr.slice(-1500));
|
|
349
|
+
if (err.stdout) console.error(err.stdout.slice(-1500));
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
}
|