create-prisma-php-app 1.6.51 → 1.6.52

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/dist/index.js CHANGED
@@ -6,7 +6,6 @@ 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";
10
9
  const __filename = fileURLToPath(import.meta.url);
11
10
  const __dirname = path.dirname(__filename);
12
11
  let updateAnswer = null;
@@ -351,7 +350,7 @@ async function getAnswer(predefinedAnswers = {}) {
351
350
  console.log("🚀 ~ questions:", questions);
352
351
  const onCancel = () => {
353
352
  console.log(chalk.red("Operation cancelled by the user."));
354
- process.exit(1);
353
+ process.exit(0);
355
354
  };
356
355
  try {
357
356
  const response = await prompts(questions, { onCancel });
@@ -445,7 +444,6 @@ async function main() {
445
444
  answer = await getAnswer(predefinedAnswers);
446
445
  if (answer === null) {
447
446
  console.log(chalk.red("Installation cancelled."));
448
- exitCode;
449
447
  return;
450
448
  }
451
449
  updateAnswer = {
@@ -461,7 +459,6 @@ async function main() {
461
459
  }
462
460
  if (answer === null) {
463
461
  console.log(chalk.red("Installation cancelled."));
464
- exitCode;
465
462
  return;
466
463
  }
467
464
  // execSync(`npm install -g create-prisma-php-app`, { stdio: "inherit" }); // TODO: Uncomment this line before publishing the package
@@ -41,7 +41,7 @@ async function getAnswer() {
41
41
  },
42
42
  ];
43
43
  const onCancel = () => {
44
- return false;
44
+ process.exit(0);
45
45
  };
46
46
  const response = await prompts(questions, { onCancel });
47
47
  if (Object.keys(response).length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.6.51",
3
+ "version": "1.6.52",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",