@ooneex/cli 1.17.8 → 1.17.10

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
@@ -5646,8 +5646,7 @@ class MakeModuleCommand {
5646
5646
  cwd = process.cwd(),
5647
5647
  silent = false,
5648
5648
  skipMigrations = false,
5649
- skipSeeds = false,
5650
- skipCommands = false
5649
+ skipSeeds = false
5651
5650
  } = options;
5652
5651
  let { name } = options;
5653
5652
  if (!name) {
@@ -5668,9 +5667,6 @@ class MakeModuleCommand {
5668
5667
  if (!skipSeeds) {
5669
5668
  await Bun.write(join5(srcDir, "seeds", "seeds.ts"), "");
5670
5669
  }
5671
- if (!skipCommands) {
5672
- await Bun.write(join5(srcDir, "commands", "commands.ts"), "");
5673
- }
5674
5670
  await Bun.write(join5(moduleDir, "package.json"), packageContent);
5675
5671
  await Bun.write(join5(moduleDir, "tsconfig.json"), tsconfig_default);
5676
5672
  await Bun.write(join5(testsDir, `${pascalName}Module.spec.ts`), testContent);
@@ -5696,18 +5692,6 @@ class MakeModuleCommand {
5696
5692
  useSymbol: true
5697
5693
  });
5698
5694
  }
5699
- const packageJsonPath = join5(process.cwd(), "package.json");
5700
- const packageJson = await Bun.file(packageJsonPath).json();
5701
- const deps = packageJson.dependencies ?? {};
5702
- const devDeps = packageJson.devDependencies ?? {};
5703
- if (!deps["@ooneex/module"] && !devDeps["@ooneex/module"]) {
5704
- const install = Bun.spawn(["bun", "add", "@ooneex/module"], {
5705
- cwd: process.cwd(),
5706
- stdout: "ignore",
5707
- stderr: "inherit"
5708
- });
5709
- await install.exited;
5710
- }
5711
5695
  }
5712
5696
  }
5713
5697
  MakeModuleCommand = __legacyDecorateClassTS([
@@ -7050,6 +7034,7 @@ class MakeAppCommand {
7050
7034
  "@ooneex/auth",
7051
7035
  "@ooneex/cache",
7052
7036
  "@ooneex/container",
7037
+ "@ooneex/repository",
7053
7038
  "@ooneex/database",
7054
7039
  "@ooneex/logger",
7055
7040
  "@ooneex/mailer",
@@ -7078,6 +7063,8 @@ class MakeAppCommand {
7078
7063
  "add",
7079
7064
  "-D",
7080
7065
  "@ooneex/command",
7066
+ "@ooneex/migrations",
7067
+ "@ooneex/seeds",
7081
7068
  "@biomejs/biome",
7082
7069
  "@commitlint/cli",
7083
7070
  "@commitlint/config-conventional",
@@ -9564,24 +9551,12 @@ class MakeMigrationCommand {
9564
9551
  if (!await binMigrationUpFile.exists()) {
9565
9552
  await Bun.write(binMigrationUpPath, migration_up_default);
9566
9553
  }
9567
- const packageJsonPath = join21(process.cwd(), base, "package.json");
9568
9554
  const logger = new TerminalLogger20;
9569
9555
  logger.success(`${filePath} created successfully`, undefined, {
9570
9556
  showTimestamp: false,
9571
9557
  showArrow: false,
9572
9558
  useSymbol: true
9573
9559
  });
9574
- const pkgJson = await Bun.file(packageJsonPath).json();
9575
- const deps = pkgJson.dependencies ?? {};
9576
- const devDeps = pkgJson.devDependencies ?? {};
9577
- if (!deps["@ooneex/migrations"] && !devDeps["@ooneex/migrations"]) {
9578
- const install = Bun.spawn(["bun", "add", "--dev", "@ooneex/migrations"], {
9579
- cwd: process.cwd(),
9580
- stdout: "ignore",
9581
- stderr: "inherit"
9582
- });
9583
- await install.exited;
9584
- }
9585
9560
  }
9586
9561
  }
9587
9562
  MakeMigrationCommand = __legacyDecorateClassTS([
@@ -11272,7 +11247,6 @@ class MakeSeedCommand {
11272
11247
  if (!await binSeedRunFile.exists()) {
11273
11248
  await Bun.write(binSeedRunPath, seed_run_default);
11274
11249
  }
11275
- const packageJsonPath = join28(process.cwd(), base, "package.json");
11276
11250
  const logger = new TerminalLogger26;
11277
11251
  logger.success(`${filePath} created successfully`, undefined, {
11278
11252
  showTimestamp: false,
@@ -11284,17 +11258,6 @@ class MakeSeedCommand {
11284
11258
  showArrow: false,
11285
11259
  useSymbol: true
11286
11260
  });
11287
- const pkgJson = await Bun.file(packageJsonPath).json();
11288
- const deps = pkgJson.dependencies ?? {};
11289
- const devDeps = pkgJson.devDependencies ?? {};
11290
- if (!deps["@ooneex/seeds"] && !devDeps["@ooneex/seeds"]) {
11291
- const install = Bun.spawn(["bun", "add", "--dev", "@ooneex/seeds"], {
11292
- cwd: process.cwd(),
11293
- stdout: "ignore",
11294
- stderr: "inherit"
11295
- });
11296
- await install.exited;
11297
- }
11298
11261
  }
11299
11262
  }
11300
11263
  MakeSeedCommand = __legacyDecorateClassTS([
@@ -11707,4 +11670,4 @@ SeedRunCommand = __legacyDecorateClassTS([
11707
11670
  // src/index.ts
11708
11671
  await run();
11709
11672
 
11710
- //# debugId=8D3710B34E08707064756E2164756E21
11673
+ //# debugId=1A49A16C5C4E6AB364756E2164756E21