@arkstack/console-slim 0.17.16 → 0.17.17
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-DJKJAMfO.js → app-6meKYtnp.js} +3 -1
- package/dist/app.d.ts +0 -1
- package/dist/app.js +1 -1
- package/dist/index.js +5 -3
- package/dist/prepare.d.ts +1 -1
- package/dist/prepare.js +2 -1
- package/package.json +6 -6
|
@@ -45,7 +45,9 @@ var ArkstackConsoleApp = class extends CliApp {
|
|
|
45
45
|
this.mergeConfig();
|
|
46
46
|
const normalized = name.endsWith("Controller") ? name.replace(/controller/i, "") : name;
|
|
47
47
|
let controllerName = normalized.endsWith("Controller") ? normalized : `${normalized}Controller`;
|
|
48
|
-
const
|
|
48
|
+
const controllersDir = path.resolve(Arkstack.rootDir(), "src", "app/http/controllers");
|
|
49
|
+
const fileName = `${controllerName}.${opts?.ext ?? "ts"}`;
|
|
50
|
+
const outputPath = join(controllersDir, fileName);
|
|
49
51
|
const stubsDir = resolveStubsDir(this.config, this.options, this.core);
|
|
50
52
|
if (!stubsDir) {
|
|
51
53
|
console.error("Error: stubsDir is not configured. Set stubsDir in resora.config.js.");
|
package/dist/app.d.ts
CHANGED
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-6meKYtnp.js";
|
|
3
3
|
import { config, discoverCommands, env, importFile, loadPrototypes, outputDir, rebuildOutput } from "@arkstack/common";
|
|
4
4
|
import { existsSync, realpathSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -18,7 +18,8 @@ var BuildCommand = class extends Command {
|
|
|
18
18
|
description = "Build the application for production";
|
|
19
19
|
async handle() {
|
|
20
20
|
await new Promise((resolve, reject) => {
|
|
21
|
-
const
|
|
21
|
+
const command = process.platform === "win32" ? "pnpm.cmd" : "pnpm";
|
|
22
|
+
const child = spawn(command, ["exec", "tsdown"], {
|
|
22
23
|
cwd: Arkstack.rootDir(),
|
|
23
24
|
stdio: "inherit",
|
|
24
25
|
env: Object.assign({}, process.env, { NODE_ENV: "production" })
|
|
@@ -47,7 +48,8 @@ var DevCommand = class extends Command {
|
|
|
47
48
|
async handle() {
|
|
48
49
|
const tunnel = this.option?.("tunnel");
|
|
49
50
|
await new Promise((resolve, reject) => {
|
|
50
|
-
const
|
|
51
|
+
const command = process.platform === "win32" ? "pnpm.cmd" : "pnpm";
|
|
52
|
+
const child = spawn(command, [
|
|
51
53
|
"exec",
|
|
52
54
|
"tsdown",
|
|
53
55
|
"--log-level",
|
package/dist/prepare.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/dist/prepare.js
CHANGED
|
@@ -4,7 +4,8 @@ import chalk from "chalk";
|
|
|
4
4
|
|
|
5
5
|
//#region dist/prepare.js
|
|
6
6
|
const NODE_ENV = process.env.NODE_ENV || "development";
|
|
7
|
-
const
|
|
7
|
+
const command = process.platform === "win32" ? "pnpm.cmd" : "pnpm";
|
|
8
|
+
const child = spawn(command, [
|
|
8
9
|
"exec",
|
|
9
10
|
"tsdown",
|
|
10
11
|
"--log-level=silent"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/console-slim",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Slim console module for Arkstack, providing the command-line runtime and console integration layer.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"clear-router": "^2.9.
|
|
46
|
+
"clear-router": "^2.9.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@h3ravel/musket": "^2.2.
|
|
49
|
+
"@h3ravel/musket": "^2.2.13",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
|
-
"resora": "^1.3.
|
|
52
|
-
"@arkstack/
|
|
53
|
-
"@arkstack/
|
|
51
|
+
"resora": "^1.3.34",
|
|
52
|
+
"@arkstack/contract": "^0.17.17",
|
|
53
|
+
"@arkstack/common": "^0.17.17"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown",
|