create-morax 2.0.2 → 2.0.3

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
@@ -52,7 +52,7 @@ import { promisify } from "util";
52
52
  import pc2 from "picocolors";
53
53
  var execAsync = promisify(exec);
54
54
  async function runCommand(command, options = {}) {
55
- const isSilent = options.silent ?? false;
55
+ const isSilent = options.silent ?? true;
56
56
  if (!isSilent) {
57
57
  console.log(pc2.cyan(`> ${command}`));
58
58
  }
@@ -450,27 +450,27 @@ async function setupDrizzle(projectPath, dialect = "postgresql", linter = "none"
450
450
  if (dialect === "sqlite") {
451
451
  await runCommand("pnpm add drizzle-orm@rc @libsql/client dotenv", {
452
452
  cwd: dbDir,
453
- silent: false
453
+ silent: true
454
454
  });
455
455
  } else if (postgresProvider === "neon") {
456
456
  await runCommand(
457
457
  "pnpm add drizzle-orm@rc @neondatabase/serverless dotenv",
458
458
  {
459
459
  cwd: dbDir,
460
- silent: false
460
+ silent: true
461
461
  }
462
462
  );
463
463
  } else {
464
464
  await runCommand("pnpm add drizzle-orm@rc pg dotenv @types/pg", {
465
465
  cwd: dbDir,
466
- silent: false
466
+ silent: true
467
467
  });
468
468
  }
469
469
  await runCommand(
470
470
  "pnpm add -D drizzle-kit@rc @types/node tsx typescript@latest",
471
471
  {
472
472
  cwd: dbDir,
473
- silent: false
473
+ silent: true
474
474
  }
475
475
  );
476
476
  const envVar = dialect === "sqlite" ? "DB_FILE_NAME" : "DATABASE_URL";
@@ -1801,9 +1801,6 @@ async function generateWorkspaceConfig(name, directories, projectPath) {
1801
1801
  } catch {
1802
1802
  pkg.packageManager = "pnpm@latest";
1803
1803
  }
1804
- pkg.pnpm = {
1805
- onlyBuiltDependencies: defaultOnlyBuiltDeps
1806
- };
1807
1804
  pkg.workspaces = directories.map((dir) => `${dir}/*`);
1808
1805
  pkg.scripts = {
1809
1806
  dev: "pnpm -r --parallel dev"
@@ -2856,8 +2853,14 @@ import pc16 from "picocolors";
2856
2853
  import fsPromises16 from "fs/promises";
2857
2854
  import path17 from "path";
2858
2855
  async function setupHusky(projectPath) {
2859
- await runCommand("pnpm add -D -E husky -w", { cwd: projectPath });
2860
- await runCommand("pnpm exec husky init", { cwd: projectPath });
2856
+ await runCommand("pnpm add -D -E husky -w", {
2857
+ cwd: projectPath,
2858
+ silent: true
2859
+ });
2860
+ await runCommand("pnpm exec husky init", {
2861
+ cwd: projectPath,
2862
+ silent: true
2863
+ });
2861
2864
  const preCommitPath = path17.join(projectPath, ".husky", "pre-commit");
2862
2865
  let hookContent = "";
2863
2866
  try {
@@ -3100,7 +3103,10 @@ import pc20 from "picocolors";
3100
3103
  import fsPromises20 from "fs/promises";
3101
3104
  import path21 from "path";
3102
3105
  async function setupPrettier(projectPath) {
3103
- await runCommand("pnpm add -D -E prettier -w", { cwd: projectPath });
3106
+ await runCommand("pnpm add -D -E prettier -w", {
3107
+ cwd: projectPath,
3108
+ silent: true
3109
+ });
3104
3110
  const prettierConfig = {
3105
3111
  semi: true,
3106
3112
  singleQuote: true,
@@ -3461,12 +3467,12 @@ async function setupExpress(options) {
3461
3467
  const deps = getExpressDependencies();
3462
3468
  await runCommand(`pnpm add ${deps.join(" ")}`, {
3463
3469
  cwd: serverDir,
3464
- silent: false
3470
+ silent: true
3465
3471
  });
3466
3472
  const devDeps = getExpressDevDependencies(runtime);
3467
3473
  await runCommand(`pnpm add -D ${devDeps.join(" ")}`, {
3468
3474
  cwd: serverDir,
3469
- silent: false
3475
+ silent: true
3470
3476
  });
3471
3477
  const indexTsContent = runtime === "bun" ? renderExpressBunTemplate(hasDb) : renderExpressNodeTemplate(hasDb);
3472
3478
  await fsPromises22.writeFile(
@@ -3712,12 +3718,12 @@ async function setupHono(options) {
3712
3718
  const deps = getHonoDependencies(runtime);
3713
3719
  await runCommand(`pnpm add ${deps.join(" ")}`, {
3714
3720
  cwd: serverDir,
3715
- silent: false
3721
+ silent: true
3716
3722
  });
3717
3723
  const devDeps = getHonoDevDependencies(runtime);
3718
3724
  await runCommand(`pnpm add -D ${devDeps.join(" ")}`, {
3719
3725
  cwd: serverDir,
3720
- silent: false
3726
+ silent: true
3721
3727
  });
3722
3728
  const indexTsContent = runtime === "bun" ? renderHonoBunTemplate(hasDb) : renderHonoNodeTemplate(hasDb);
3723
3729
  await fsPromises23.writeFile(