@arkstack/console 0.12.1 → 0.12.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/index.js +7 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -17,14 +17,19 @@ import { str } from "@h3ravel/support";
|
|
|
17
17
|
|
|
18
18
|
//#region dist/commands/BuildCommand.js
|
|
19
19
|
var BuildCommand = class extends Command {
|
|
20
|
-
signature =
|
|
20
|
+
signature = `build
|
|
21
|
+
{--d|dev : Run the build in dev mode, the dev server will not be fired}
|
|
22
|
+
`;
|
|
21
23
|
description = "Build the application for production";
|
|
22
24
|
async handle() {
|
|
23
25
|
await new Promise((resolve, reject) => {
|
|
24
26
|
const child = spawn(process.platform === "win32" ? "pnpm.cmd" : "pnpm", ["exec", "tsdown"], {
|
|
25
27
|
cwd: Arkstack.rootDir(),
|
|
26
28
|
stdio: "inherit",
|
|
27
|
-
env: Object.assign(process.env, {
|
|
29
|
+
env: Object.assign(process.env, {
|
|
30
|
+
NODE_ENV: this.option("dev") ? "development" : "production",
|
|
31
|
+
CLI_BUILD: this.option("dev") ? "true" : void 0
|
|
32
|
+
})
|
|
28
33
|
});
|
|
29
34
|
child.on("error", (error) => {
|
|
30
35
|
reject(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/console",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
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,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"arkormx": "^ 2.4.1",
|
|
46
|
-
"clear-router": "^2.
|
|
46
|
+
"clear-router": "^2.8.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@h3ravel/musket": "^0.10.1",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"chalk": "^5.6.2",
|
|
52
52
|
"resora": "^1.3.6",
|
|
53
53
|
"ts-morph": "^28.0.0",
|
|
54
|
-
"@arkstack/common": "^0.12.
|
|
55
|
-
"@arkstack/contract": "^0.12.
|
|
54
|
+
"@arkstack/common": "^0.12.3",
|
|
55
|
+
"@arkstack/contract": "^0.12.3"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsdown",
|