@arkstack/console 0.5.0 → 0.5.2
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/{app-DtecNuLP.js → app-CNmh_S9c.js} +1 -0
- package/dist/app.js +1 -1
- package/dist/index.js +3 -5
- package/package.json +5 -5
|
@@ -59,6 +59,7 @@ var ArkstackConsoleApp = class extends CliApp {
|
|
|
59
59
|
this.generateFile(stubPath, outputPath, {
|
|
60
60
|
ControllerName: controllerName,
|
|
61
61
|
Model: opts.model?.pascalCase(),
|
|
62
|
+
Param: opts.model?.toLowerCase(),
|
|
62
63
|
ModelName: opts.model?.camelCase(),
|
|
63
64
|
Name: controllerName.replace(/controller/i, "")
|
|
64
65
|
}, opts);
|
package/dist/app.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as ArkstackConsoleApp } from "./app-
|
|
2
|
+
import { t as ArkstackConsoleApp } from "./app-CNmh_S9c.js";
|
|
3
3
|
import { config, env, importFile, loadPrototypes, outputDir } from "@arkstack/common";
|
|
4
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
5
|
import path, { join } from "node:path";
|
|
@@ -123,10 +123,8 @@ var MakeController = class extends Command {
|
|
|
123
123
|
if (!this.argument("name")) return void this.error("Error: Controller name is required.");
|
|
124
124
|
const name = this.app.makeController(this.argument("name"), this.options());
|
|
125
125
|
const app = new CliApp$1();
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
force: false
|
|
129
|
-
}) : null;
|
|
126
|
+
app.command = this;
|
|
127
|
+
const model = this.option("model") ? app.makeModel(this.option("model"), this.options()) : null;
|
|
130
128
|
this.success("Controller created successfully!");
|
|
131
129
|
[
|
|
132
130
|
["Controller", name],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/console",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Console module for Arkstack, providing the command-line runtime and console integration layer.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net/guide/cli",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"clear-router": "^2.6.4",
|
|
46
|
-
"arkormx": "^2.0.
|
|
46
|
+
"arkormx": "^2.0.11"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@h3ravel/musket": "^0.10.1",
|
|
50
50
|
"@h3ravel/support": "^0.15.11",
|
|
51
51
|
"chalk": "^5.6.2",
|
|
52
|
-
"resora": "^1.2.
|
|
53
|
-
"@arkstack/
|
|
54
|
-
"@arkstack/
|
|
52
|
+
"resora": "^1.2.4",
|
|
53
|
+
"@arkstack/contract": "^0.5.2",
|
|
54
|
+
"@arkstack/common": "^0.5.2"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "tsdown",
|