@arkstack/console 0.12.2 → 0.12.4

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +3 -3
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 = "build";
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, { NODE_ENV: "production" })
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.2",
3
+ "version": "0.12.4",
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",
@@ -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.2",
55
- "@arkstack/contract": "^0.12.2"
54
+ "@arkstack/common": "^0.12.4",
55
+ "@arkstack/contract": "^0.12.4"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown",