@ooneex/cli 1.17.9 → 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);
@@ -7038,6 +7034,7 @@ class MakeAppCommand {
7038
7034
  "@ooneex/auth",
7039
7035
  "@ooneex/cache",
7040
7036
  "@ooneex/container",
7037
+ "@ooneex/repository",
7041
7038
  "@ooneex/database",
7042
7039
  "@ooneex/logger",
7043
7040
  "@ooneex/mailer",
@@ -7066,6 +7063,8 @@ class MakeAppCommand {
7066
7063
  "add",
7067
7064
  "-D",
7068
7065
  "@ooneex/command",
7066
+ "@ooneex/migrations",
7067
+ "@ooneex/seeds",
7069
7068
  "@biomejs/biome",
7070
7069
  "@commitlint/cli",
7071
7070
  "@commitlint/config-conventional",
@@ -9552,24 +9551,12 @@ class MakeMigrationCommand {
9552
9551
  if (!await binMigrationUpFile.exists()) {
9553
9552
  await Bun.write(binMigrationUpPath, migration_up_default);
9554
9553
  }
9555
- const packageJsonPath = join21(process.cwd(), base, "package.json");
9556
9554
  const logger = new TerminalLogger20;
9557
9555
  logger.success(`${filePath} created successfully`, undefined, {
9558
9556
  showTimestamp: false,
9559
9557
  showArrow: false,
9560
9558
  useSymbol: true
9561
9559
  });
9562
- const pkgJson = await Bun.file(packageJsonPath).json();
9563
- const deps = pkgJson.dependencies ?? {};
9564
- const devDeps = pkgJson.devDependencies ?? {};
9565
- if (!deps["@ooneex/migrations"] && !devDeps["@ooneex/migrations"]) {
9566
- const install = Bun.spawn(["bun", "add", "--dev", "@ooneex/migrations"], {
9567
- cwd: process.cwd(),
9568
- stdout: "ignore",
9569
- stderr: "inherit"
9570
- });
9571
- await install.exited;
9572
- }
9573
9560
  }
9574
9561
  }
9575
9562
  MakeMigrationCommand = __legacyDecorateClassTS([
@@ -11260,7 +11247,6 @@ class MakeSeedCommand {
11260
11247
  if (!await binSeedRunFile.exists()) {
11261
11248
  await Bun.write(binSeedRunPath, seed_run_default);
11262
11249
  }
11263
- const packageJsonPath = join28(process.cwd(), base, "package.json");
11264
11250
  const logger = new TerminalLogger26;
11265
11251
  logger.success(`${filePath} created successfully`, undefined, {
11266
11252
  showTimestamp: false,
@@ -11272,17 +11258,6 @@ class MakeSeedCommand {
11272
11258
  showArrow: false,
11273
11259
  useSymbol: true
11274
11260
  });
11275
- const pkgJson = await Bun.file(packageJsonPath).json();
11276
- const deps = pkgJson.dependencies ?? {};
11277
- const devDeps = pkgJson.devDependencies ?? {};
11278
- if (!deps["@ooneex/seeds"] && !devDeps["@ooneex/seeds"]) {
11279
- const install = Bun.spawn(["bun", "add", "--dev", "@ooneex/seeds"], {
11280
- cwd: process.cwd(),
11281
- stdout: "ignore",
11282
- stderr: "inherit"
11283
- });
11284
- await install.exited;
11285
- }
11286
11261
  }
11287
11262
  }
11288
11263
  MakeSeedCommand = __legacyDecorateClassTS([
@@ -11695,4 +11670,4 @@ SeedRunCommand = __legacyDecorateClassTS([
11695
11670
  // src/index.ts
11696
11671
  await run();
11697
11672
 
11698
- //# debugId=88D51037C24C6F4664756E2164756E21
11673
+ //# debugId=1A49A16C5C4E6AB364756E2164756E21