@arkstack/console 0.14.2 → 0.14.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 +8 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -49,9 +49,12 @@ var BuildCommand = class extends Command {
|
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region dist/commands/DevCommand.js
|
|
51
51
|
var DevCommand = class extends Command {
|
|
52
|
-
signature =
|
|
52
|
+
signature = `dev
|
|
53
|
+
{--t|tunnel : tunnel the dev server through Ngrok}
|
|
54
|
+
`;
|
|
53
55
|
description = "Run the development server";
|
|
54
56
|
async handle() {
|
|
57
|
+
const tunnel = this.option?.("tunnel");
|
|
55
58
|
await new Promise((resolve, reject) => {
|
|
56
59
|
const child = spawn(process.platform === "win32" ? "pnpm.cmd" : "pnpm", [
|
|
57
60
|
"exec",
|
|
@@ -61,7 +64,10 @@ var DevCommand = class extends Command {
|
|
|
61
64
|
], {
|
|
62
65
|
cwd: Arkstack.rootDir(),
|
|
63
66
|
stdio: "inherit",
|
|
64
|
-
env: Object.assign(process.env, {
|
|
67
|
+
env: Object.assign(process.env, {
|
|
68
|
+
NODE_ENV: "development",
|
|
69
|
+
TUNNEL: tunnel ? "true" : void 0
|
|
70
|
+
})
|
|
65
71
|
});
|
|
66
72
|
child.on("error", (error) => {
|
|
67
73
|
reject(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/console",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.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",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"chalk": "^5.6.2",
|
|
52
52
|
"resora": "^1.3.26",
|
|
53
53
|
"ts-morph": "^28.0.0",
|
|
54
|
-
"@arkstack/common": "^0.14.
|
|
55
|
-
"@arkstack/contract": "^0.14.
|
|
54
|
+
"@arkstack/common": "^0.14.3",
|
|
55
|
+
"@arkstack/contract": "^0.14.3"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsdown",
|