@arkstack/console 0.3.4 → 0.3.5
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/prepare.js +3 -2
- package/package.json +3 -3
package/dist/prepare.js
CHANGED
|
@@ -2,6 +2,7 @@ import { spawn } from "node:child_process";
|
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
|
|
4
4
|
//#region dist/prepare.js
|
|
5
|
+
const NODE_ENV = process.env.NODE_ENV || "development";
|
|
5
6
|
const child = spawn(process.platform === "win32" ? "pnpm.cmd" : "pnpm", [
|
|
6
7
|
"exec",
|
|
7
8
|
"tsdown",
|
|
@@ -10,7 +11,7 @@ const child = spawn(process.platform === "win32" ? "pnpm.cmd" : "pnpm", [
|
|
|
10
11
|
cwd: process.cwd(),
|
|
11
12
|
stdio: "inherit",
|
|
12
13
|
env: Object.assign({}, process.env, {
|
|
13
|
-
NODE_ENV
|
|
14
|
+
NODE_ENV,
|
|
14
15
|
CLI_BUILD: "true"
|
|
15
16
|
})
|
|
16
17
|
});
|
|
@@ -19,7 +20,7 @@ child.on("error", (error) => {
|
|
|
19
20
|
});
|
|
20
21
|
child.on("exit", (code) => {
|
|
21
22
|
if (code === 0 || code === null) {
|
|
22
|
-
console.log(chalk.green(`Arkstak is ready for ${
|
|
23
|
+
console.log(chalk.green(`Arkstak is ready for ${NODE_ENV === "production" ? "deployment" : NODE_ENV}!`));
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
26
|
throw new Error(`tsdown exited with code ${code}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/console",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Console package for Arkstack providing console-specific implementations of core Arkstack features such as routing, middleware, and database integration.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@h3ravel/musket": "^0.10.1",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
51
|
"resora": "^0.2.14",
|
|
52
|
-
"@arkstack/common": "^0.3.
|
|
53
|
-
"@arkstack/contract": "^0.3.
|
|
52
|
+
"@arkstack/common": "^0.3.5",
|
|
53
|
+
"@arkstack/contract": "^0.3.5"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsdown",
|