arkormx 0.2.3 → 0.2.4

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/cli.mjs CHANGED
@@ -1873,7 +1873,7 @@ var MigrateCommand = class extends Command {
1873
1873
  const migrationsDir = this.app.resolveRuntimeDirectoryPath(configuredMigrationsDir);
1874
1874
  if (!existsSync$1(migrationsDir)) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
1875
1875
  const schemaPath = this.option("schema") ? resolve(String(this.option("schema"))) : join$1(process.cwd(), "prisma", "schema.prisma");
1876
- const classes = this.option("all") ? await this.loadAllMigrations(migrationsDir) : (await this.loadNamedMigration(migrationsDir, this.argument("name"))).filter(([cls]) => cls !== void 0);
1876
+ const classes = this.option("all") || !this.argument("name") ? await this.loadAllMigrations(migrationsDir) : (await this.loadNamedMigration(migrationsDir, this.argument("name"))).filter(([cls]) => cls !== void 0);
1877
1877
  if (classes.length === 0) return void this.error("Error: No migration classes found to run.");
1878
1878
  for (const [MigrationClassItem] of classes) await applyMigrationToPrismaSchema(MigrationClassItem, {
1879
1879
  schemaPath,
package/dist/index.cjs CHANGED
@@ -2081,7 +2081,7 @@ var MigrateCommand = class extends _h3ravel_musket.Command {
2081
2081
  const migrationsDir = this.app.resolveRuntimeDirectoryPath(configuredMigrationsDir);
2082
2082
  if (!(0, node_fs.existsSync)(migrationsDir)) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
2083
2083
  const schemaPath = this.option("schema") ? (0, node_path.resolve)(String(this.option("schema"))) : (0, node_path.join)(process.cwd(), "prisma", "schema.prisma");
2084
- const classes = this.option("all") ? await this.loadAllMigrations(migrationsDir) : (await this.loadNamedMigration(migrationsDir, this.argument("name"))).filter(([cls]) => cls !== void 0);
2084
+ const classes = this.option("all") || !this.argument("name") ? await this.loadAllMigrations(migrationsDir) : (await this.loadNamedMigration(migrationsDir, this.argument("name"))).filter(([cls]) => cls !== void 0);
2085
2085
  if (classes.length === 0) return void this.error("Error: No migration classes found to run.");
2086
2086
  for (const [MigrationClassItem] of classes) await applyMigrationToPrismaSchema(MigrationClassItem, {
2087
2087
  schemaPath,
package/dist/index.mjs CHANGED
@@ -2052,7 +2052,7 @@ var MigrateCommand = class extends Command {
2052
2052
  const migrationsDir = this.app.resolveRuntimeDirectoryPath(configuredMigrationsDir);
2053
2053
  if (!existsSync$1(migrationsDir)) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
2054
2054
  const schemaPath = this.option("schema") ? resolve(String(this.option("schema"))) : join$1(process.cwd(), "prisma", "schema.prisma");
2055
- const classes = this.option("all") ? await this.loadAllMigrations(migrationsDir) : (await this.loadNamedMigration(migrationsDir, this.argument("name"))).filter(([cls]) => cls !== void 0);
2055
+ const classes = this.option("all") || !this.argument("name") ? await this.loadAllMigrations(migrationsDir) : (await this.loadNamedMigration(migrationsDir, this.argument("name"))).filter(([cls]) => cls !== void 0);
2056
2056
  if (classes.length === 0) return void this.error("Error: No migration classes found to run.");
2057
2057
  for (const [MigrationClassItem] of classes) await applyMigrationToPrismaSchema(MigrationClassItem, {
2058
2058
  schemaPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkormx",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Modern TypeScript-first ORM for Node.js.",
5
5
  "keywords": [
6
6
  "orm",