create-prisma-php-app 1.6.44 → 1.6.46

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/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ import path from "path";
6
6
  import chalk from "chalk";
7
7
  import prompts from "prompts";
8
8
  import https from "https";
9
+ import { exitCode } from "process";
9
10
  const __filename = fileURLToPath(import.meta.url);
10
11
  const __dirname = path.dirname(__filename);
11
12
  let updateAnswer = null;
@@ -440,6 +441,11 @@ async function main() {
440
441
  websocket: useWebsocket,
441
442
  };
442
443
  answer = await getAnswer(predefinedAnswers);
444
+ if (answer === null) {
445
+ console.log(chalk.red("Installation cancelled."));
446
+ exitCode;
447
+ return;
448
+ }
443
449
  updateAnswer = {
444
450
  projectName,
445
451
  tailwindcss: (_a = answer === null || answer === void 0 ? void 0 : answer.tailwindcss) !== null && _a !== void 0 ? _a : false,
@@ -453,6 +459,7 @@ async function main() {
453
459
  }
454
460
  if (answer === null) {
455
461
  console.log(chalk.red("Installation cancelled."));
462
+ exitCode;
456
463
  return;
457
464
  }
458
465
  // execSync(`npm install -g create-prisma-php-app`, { stdio: "inherit" }); // TODO: Uncomment this line before publishing the package
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.44",
3
+ "version": "1.6.46",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",