arkormx 2.11.2 → 2.11.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/cli.mjs +5 -0
- package/dist/index.cjs +5 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -5156,6 +5156,7 @@ var MigrateFreshCommand = class extends Command {
|
|
|
5156
5156
|
}
|
|
5157
5157
|
async handle() {
|
|
5158
5158
|
this.app.command = this;
|
|
5159
|
+
await loadArkormConfig();
|
|
5159
5160
|
const configuredMigrationsDir = this.app.getConfig("paths")?.migrations ?? join(process.cwd(), "database", "migrations");
|
|
5160
5161
|
const migrationDirs = this.resolveMigrationDirectories(configuredMigrationsDir);
|
|
5161
5162
|
if (migrationDirs.length === 0 && getRegisteredMigrations().length === 0) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
|
|
@@ -5315,6 +5316,7 @@ var MigrateRollbackCommand = class extends Command {
|
|
|
5315
5316
|
}
|
|
5316
5317
|
async handle() {
|
|
5317
5318
|
this.app.command = this;
|
|
5319
|
+
await loadArkormConfig();
|
|
5318
5320
|
const configuredMigrationsDir = this.app.getConfig("paths")?.migrations ?? join(process.cwd(), "database", "migrations");
|
|
5319
5321
|
const migrationDirs = this.resolveMigrationDirectories(configuredMigrationsDir);
|
|
5320
5322
|
if (migrationDirs.length === 0 && getRegisteredMigrations().length === 0) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
|
|
@@ -5412,6 +5414,7 @@ var MigrationHistoryCommand = class extends Command {
|
|
|
5412
5414
|
}
|
|
5413
5415
|
async handle() {
|
|
5414
5416
|
this.app.command = this;
|
|
5417
|
+
await loadArkormConfig();
|
|
5415
5418
|
const stateFilePath = resolveMigrationStateFilePath(process.cwd(), this.option("state-file") ? String(this.option("state-file")) : void 0);
|
|
5416
5419
|
const adapter = this.app.getConfig("adapter");
|
|
5417
5420
|
const usesDatabaseState = supportsDatabaseMigrationState(adapter);
|
|
@@ -5470,6 +5473,7 @@ var ModelsSyncCommand = class extends Command {
|
|
|
5470
5473
|
}
|
|
5471
5474
|
async handle() {
|
|
5472
5475
|
this.app.command = this;
|
|
5476
|
+
await loadArkormConfig();
|
|
5473
5477
|
let result;
|
|
5474
5478
|
try {
|
|
5475
5479
|
result = await this.app.syncModels({
|
|
@@ -5587,6 +5591,7 @@ var SeedCommand = class extends Command {
|
|
|
5587
5591
|
*/
|
|
5588
5592
|
async handle() {
|
|
5589
5593
|
this.app.command = this;
|
|
5594
|
+
await loadArkormConfig();
|
|
5590
5595
|
const configuredSeedersDir = this.app.getConfig("paths")?.seeders ?? join(process.cwd(), "database", "seeders");
|
|
5591
5596
|
const seederDirs = this.resolveSeederDirectories(configuredSeedersDir);
|
|
5592
5597
|
if (seederDirs.length === 0 && getRegisteredSeeders().length === 0) return void this.error(`ERROR: Seeders directory not found: ${this.app.formatPathForLog(configuredSeedersDir)}`);
|
package/dist/index.cjs
CHANGED
|
@@ -3929,6 +3929,7 @@ var MigrateFreshCommand = class extends _h3ravel_musket.Command {
|
|
|
3929
3929
|
}
|
|
3930
3930
|
async handle() {
|
|
3931
3931
|
this.app.command = this;
|
|
3932
|
+
await require_relationship.loadArkormConfig();
|
|
3932
3933
|
const configuredMigrationsDir = this.app.getConfig("paths")?.migrations ?? (0, node_path.join)(process.cwd(), "database", "migrations");
|
|
3933
3934
|
const migrationDirs = this.resolveMigrationDirectories(configuredMigrationsDir);
|
|
3934
3935
|
if (migrationDirs.length === 0 && require_relationship.getRegisteredMigrations().length === 0) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
|
|
@@ -4088,6 +4089,7 @@ var MigrateRollbackCommand = class extends _h3ravel_musket.Command {
|
|
|
4088
4089
|
}
|
|
4089
4090
|
async handle() {
|
|
4090
4091
|
this.app.command = this;
|
|
4092
|
+
await require_relationship.loadArkormConfig();
|
|
4091
4093
|
const configuredMigrationsDir = this.app.getConfig("paths")?.migrations ?? (0, node_path.join)(process.cwd(), "database", "migrations");
|
|
4092
4094
|
const migrationDirs = this.resolveMigrationDirectories(configuredMigrationsDir);
|
|
4093
4095
|
if (migrationDirs.length === 0 && require_relationship.getRegisteredMigrations().length === 0) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
|
|
@@ -4185,6 +4187,7 @@ var MigrationHistoryCommand = class extends _h3ravel_musket.Command {
|
|
|
4185
4187
|
}
|
|
4186
4188
|
async handle() {
|
|
4187
4189
|
this.app.command = this;
|
|
4190
|
+
await require_relationship.loadArkormConfig();
|
|
4188
4191
|
const stateFilePath = require_relationship.resolveMigrationStateFilePath(process.cwd(), this.option("state-file") ? String(this.option("state-file")) : void 0);
|
|
4189
4192
|
const adapter = this.app.getConfig("adapter");
|
|
4190
4193
|
const usesDatabaseState = require_relationship.supportsDatabaseMigrationState(adapter);
|
|
@@ -4243,6 +4246,7 @@ var ModelsSyncCommand = class extends _h3ravel_musket.Command {
|
|
|
4243
4246
|
}
|
|
4244
4247
|
async handle() {
|
|
4245
4248
|
this.app.command = this;
|
|
4249
|
+
await require_relationship.loadArkormConfig();
|
|
4246
4250
|
let result;
|
|
4247
4251
|
try {
|
|
4248
4252
|
result = await this.app.syncModels({
|
|
@@ -4360,6 +4364,7 @@ var SeedCommand = class extends _h3ravel_musket.Command {
|
|
|
4360
4364
|
*/
|
|
4361
4365
|
async handle() {
|
|
4362
4366
|
this.app.command = this;
|
|
4367
|
+
await require_relationship.loadArkormConfig();
|
|
4363
4368
|
const configuredSeedersDir = this.app.getConfig("paths")?.seeders ?? (0, node_path.join)(process.cwd(), "database", "seeders");
|
|
4364
4369
|
const seederDirs = this.resolveSeederDirectories(configuredSeedersDir);
|
|
4365
4370
|
if (seederDirs.length === 0 && require_relationship.getRegisteredSeeders().length === 0) return void this.error(`ERROR: Seeders directory not found: ${this.app.formatPathForLog(configuredSeedersDir)}`);
|
package/dist/index.mjs
CHANGED
|
@@ -3928,6 +3928,7 @@ var MigrateFreshCommand = class extends Command {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
async handle() {
|
|
3930
3930
|
this.app.command = this;
|
|
3931
|
+
await loadArkormConfig();
|
|
3931
3932
|
const configuredMigrationsDir = this.app.getConfig("paths")?.migrations ?? join(process.cwd(), "database", "migrations");
|
|
3932
3933
|
const migrationDirs = this.resolveMigrationDirectories(configuredMigrationsDir);
|
|
3933
3934
|
if (migrationDirs.length === 0 && getRegisteredMigrations().length === 0) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
|
|
@@ -4087,6 +4088,7 @@ var MigrateRollbackCommand = class extends Command {
|
|
|
4087
4088
|
}
|
|
4088
4089
|
async handle() {
|
|
4089
4090
|
this.app.command = this;
|
|
4091
|
+
await loadArkormConfig();
|
|
4090
4092
|
const configuredMigrationsDir = this.app.getConfig("paths")?.migrations ?? join(process.cwd(), "database", "migrations");
|
|
4091
4093
|
const migrationDirs = this.resolveMigrationDirectories(configuredMigrationsDir);
|
|
4092
4094
|
if (migrationDirs.length === 0 && getRegisteredMigrations().length === 0) return void this.error(`Error: Migrations directory not found: ${this.app.formatPathForLog(configuredMigrationsDir)}`);
|
|
@@ -4184,6 +4186,7 @@ var MigrationHistoryCommand = class extends Command {
|
|
|
4184
4186
|
}
|
|
4185
4187
|
async handle() {
|
|
4186
4188
|
this.app.command = this;
|
|
4189
|
+
await loadArkormConfig();
|
|
4187
4190
|
const stateFilePath = resolveMigrationStateFilePath(process.cwd(), this.option("state-file") ? String(this.option("state-file")) : void 0);
|
|
4188
4191
|
const adapter = this.app.getConfig("adapter");
|
|
4189
4192
|
const usesDatabaseState = supportsDatabaseMigrationState(adapter);
|
|
@@ -4242,6 +4245,7 @@ var ModelsSyncCommand = class extends Command {
|
|
|
4242
4245
|
}
|
|
4243
4246
|
async handle() {
|
|
4244
4247
|
this.app.command = this;
|
|
4248
|
+
await loadArkormConfig();
|
|
4245
4249
|
let result;
|
|
4246
4250
|
try {
|
|
4247
4251
|
result = await this.app.syncModels({
|
|
@@ -4359,6 +4363,7 @@ var SeedCommand = class extends Command {
|
|
|
4359
4363
|
*/
|
|
4360
4364
|
async handle() {
|
|
4361
4365
|
this.app.command = this;
|
|
4366
|
+
await loadArkormConfig();
|
|
4362
4367
|
const configuredSeedersDir = this.app.getConfig("paths")?.seeders ?? join(process.cwd(), "database", "seeders");
|
|
4363
4368
|
const seederDirs = this.resolveSeederDirectories(configuredSeedersDir);
|
|
4364
4369
|
if (seederDirs.length === 0 && getRegisteredSeeders().length === 0) return void this.error(`ERROR: Seeders directory not found: ${this.app.formatPathForLog(configuredSeedersDir)}`);
|