@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.
@@ -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
@@ -1,3 +1,3 @@
1
- import { n as resolveStubsDir, t as ArkstackConsoleApp } from "./app-DtecNuLP.js";
1
+ import { n as resolveStubsDir, t as ArkstackConsoleApp } from "./app-CNmh_S9c.js";
2
2
 
3
3
  export { ArkstackConsoleApp, resolveStubsDir };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as ArkstackConsoleApp } from "./app-DtecNuLP.js";
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
- const model = this.option("model") ? app.makeModel(this.argument("model"), {
127
- ...this.options(),
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.0",
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.10"
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.3",
53
- "@arkstack/common": "^0.5.0",
54
- "@arkstack/contract": "^0.5.0"
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",