@arkstack/console 0.3.12 → 0.3.13
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 +12 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Command, Kernel } from "@h3ravel/musket";
|
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
import { resolve } from "path";
|
|
11
11
|
import { writeFile } from "fs/promises";
|
|
12
|
-
import { CliApp as CliApp$1, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateRollbackCommand, MigrationHistoryCommand, ModelsSyncCommand, SeedCommand } from "arkormx";
|
|
12
|
+
import { CliApp as CliApp$1, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, MigrationHistoryCommand, ModelsSyncCommand, SeedCommand } from "arkormx";
|
|
13
13
|
import chalk from "chalk";
|
|
14
14
|
|
|
15
15
|
//#region dist/commands/BuildCommand.js
|
|
@@ -130,7 +130,6 @@ var MakeController = class extends Command {
|
|
|
130
130
|
[
|
|
131
131
|
["Controller", name],
|
|
132
132
|
model ? ["Model", model.model.path] : "",
|
|
133
|
-
model ? [`Prisma schema ${model.prisma.updated ? "(updated)" : "(already up to date)"}`, model?.prisma.path] : "",
|
|
134
133
|
model?.factory ? ["Factory", model.factory.path] : "",
|
|
135
134
|
model?.seeder ? ["Seeder", model.seeder.path] : "",
|
|
136
135
|
model?.migration ? ["Migration", model.migration.path] : ""
|
|
@@ -182,7 +181,6 @@ var MakeFullResource = class extends Command {
|
|
|
182
181
|
["Collection", col.path],
|
|
183
182
|
["Controller", cont],
|
|
184
183
|
model ? ["Model", model.model.path] : "",
|
|
185
|
-
model ? [`Prisma schema ${model.prisma.updated ? "(updated)" : "(already up to date)"}`, model.prisma.path] : "",
|
|
186
184
|
model?.factory ? ["Factory", model.factory.path] : "",
|
|
187
185
|
model?.seeder ? ["Seeder", model.seeder.path] : "",
|
|
188
186
|
model?.migration ? ["Migration", model.migration.path] : ""
|
|
@@ -234,6 +232,16 @@ var MigrateCommand$1 = class extends MigrateCommand {
|
|
|
234
232
|
}
|
|
235
233
|
};
|
|
236
234
|
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region dist/commands/MigrateFreshCommand.js
|
|
237
|
+
var MigrateFreshCommand$1 = class extends MigrateFreshCommand {
|
|
238
|
+
async handle() {
|
|
239
|
+
this.app.command = this;
|
|
240
|
+
this.app = new CliApp$1();
|
|
241
|
+
return super.handle();
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
237
245
|
//#endregion
|
|
238
246
|
//#region dist/commands/MigrateRollbackCommand.js
|
|
239
247
|
var MigrateRollbackCommand$1 = class extends MigrateRollbackCommand {
|
|
@@ -387,6 +395,7 @@ const runConsoleKernel = async (options = {}) => {
|
|
|
387
395
|
ModelsSyncCommand$1,
|
|
388
396
|
SeedCommand$1,
|
|
389
397
|
MakeCommand,
|
|
398
|
+
MigrateFreshCommand$1,
|
|
390
399
|
MigrateRollbackCommand$1,
|
|
391
400
|
MigrationHistoryCommand$1
|
|
392
401
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/console",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Console package for Arkstack providing console-specific implementations of core Arkstack features such as routing, middleware, and database integration.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"clear-router": "^2.3.3",
|
|
46
|
-
"arkormx": "^
|
|
46
|
+
"arkormx": "^2.0.6"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@h3ravel/musket": "^0.10.1",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
51
|
"resora": "^1.1.0",
|
|
52
|
-
"@arkstack/common": "^0.3.
|
|
53
|
-
"@arkstack/contract": "^0.3.
|
|
52
|
+
"@arkstack/common": "^0.3.13",
|
|
53
|
+
"@arkstack/contract": "^0.3.13"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown",
|