commandkit 1.0.0-dev.20250728022503 → 1.0.0-dev.20250728045135
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-process-CKLJAmil.js → app-process-BnB1YZV6.js} +15 -6
- package/dist/app-process-BnB1YZV6.js.map +1 -0
- package/dist/cli/app-process.js +1 -1
- package/dist/cli/development.js +1 -1
- package/dist/cli/information.js +1 -1
- package/dist/cli/production.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{version-CykxYjeH.js → version-DlZKrAP6.js} +2 -2
- package/dist/{version-CykxYjeH.js.map → version-DlZKrAP6.js.map} +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/app-process-CKLJAmil.js.map +0 -1
|
@@ -31,11 +31,20 @@ function createAppProcess(fileName, cwd, isDev) {
|
|
|
31
31
|
var _ps$stdout, _ps$stderr;
|
|
32
32
|
if (!(0, node_fs.existsSync)((0, node_path.join)(cwd, fileName))) require_common.panic(`Could not locate the entrypoint file: ${fileName}`);
|
|
33
33
|
const stdio = getStdio(isDev);
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
const baseArgs = [`--title="CommandKit ${isDev ? "Development" : "Production"}"`, "--enable-source-maps"];
|
|
35
|
+
const nodeOptions = process.env.NODE_OPTIONS;
|
|
36
|
+
let nodeArgs = [...baseArgs];
|
|
37
|
+
if (nodeOptions) {
|
|
38
|
+
const options = nodeOptions.trim().split(/\s+/);
|
|
39
|
+
for (const option of options) {
|
|
40
|
+
const optionName = option.split("=")[0];
|
|
41
|
+
const existingIndex = nodeArgs.findIndex((arg) => arg.startsWith(optionName));
|
|
42
|
+
if (existingIndex !== -1) nodeArgs[existingIndex] = option;
|
|
43
|
+
else nodeArgs.push(option);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
nodeArgs.push(fileName);
|
|
47
|
+
const ps = (0, node_child_process.spawn)("node", nodeArgs, {
|
|
39
48
|
cwd,
|
|
40
49
|
windowsHide: true,
|
|
41
50
|
env: isDev ? require_env.DevEnv() : require_env.ProdEnv(),
|
|
@@ -53,4 +62,4 @@ Object.defineProperty(exports, 'createAppProcess', {
|
|
|
53
62
|
return createAppProcess;
|
|
54
63
|
}
|
|
55
64
|
});
|
|
56
|
-
//# sourceMappingURL=app-process-
|
|
65
|
+
//# sourceMappingURL=app-process-BnB1YZV6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-process-BnB1YZV6.js","names":[],"sources":["../src/cli/app-process.ts"],"sourcesContent":["import { IOType, spawn } from 'node:child_process';\nimport { DevEnv, ProdEnv } from './env';\nimport { join } from 'node:path';\nimport { existsSync } from 'node:fs';\nimport { panic } from './common';\n\n/**\n * @private\n * @internal\n */\nfunction getStdio(supportsCommands: boolean) {\n if (supportsCommands) {\n return ['pipe', 'pipe', 'pipe', 'ipc'];\n }\n\n return ['pipe', 'pipe', 'pipe'];\n}\n\n/**\n * @private\n * @internal\n */\nexport function createAppProcess(\n fileName: string,\n cwd: string,\n isDev: boolean,\n) {\n if (!existsSync(join(cwd, fileName))) {\n panic(`Could not locate the entrypoint file: ${fileName}`);\n }\n\n const stdio = getStdio(isDev) as IOType[];\n\n const baseArgs = [\n `--title=\"CommandKit ${isDev ? 'Development' : 'Production'}\"`,\n '--enable-source-maps',\n ];\n\n const nodeOptions = process.env.NODE_OPTIONS;\n let nodeArgs = [...baseArgs];\n\n if (nodeOptions) {\n const options = nodeOptions.trim().split(/\\s+/);\n\n for (const option of options) {\n const optionName = option.split('=')[0];\n const existingIndex = nodeArgs.findIndex((arg) =>\n arg.startsWith(optionName),\n );\n\n if (existingIndex !== -1) {\n nodeArgs[existingIndex] = option;\n } else {\n nodeArgs.push(option);\n }\n }\n }\n\n nodeArgs.push(fileName);\n\n const ps = spawn('node', nodeArgs, {\n cwd,\n windowsHide: true,\n env: isDev ? DevEnv() : ProdEnv(),\n stdio,\n });\n\n ps.stdout?.pipe(process.stdout);\n ps.stderr?.pipe(process.stderr);\n\n return ps;\n}\n"],"mappings":";;;;;;;;;;;;AAUA,SAAS,SAAS,kBAA2B;AAC3C,KAAI,iBACF,QAAO;EAAC;EAAQ;EAAQ;EAAQ;CAAM;AAGxC,QAAO;EAAC;EAAQ;EAAQ;CAAO;AACjC;;;;;AAMA,SAAgB,iBAChB,UACA,KACA,OACA;;AACE,KAAI,6CAAiB,KAAK,SAAS,CAAC,EAClC,qBAAM,CAAC,sCAAsC,EAAE,UAAU,CAAC;CAG5D,MAAM,QAAQ,SAAS,MAAM;CAE7B,MAAM,WAAW,CACjB,CAAC,oBAAoB,EAAE,QAAQ,gBAAgB,aAAa,CAAC,CAAC,EAC9D,sBAAuB;CAGvB,MAAM,cAAc,QAAQ,IAAI;CAChC,IAAI,WAAW,CAAC,GAAG,QAAS;AAE5B,KAAI,aAAa;EACf,MAAM,UAAU,YAAY,MAAM,CAAC,MAAM,MAAM;AAE/C,OAAK,MAAM,UAAU,SAAS;GAC5B,MAAM,aAAa,OAAO,MAAM,IAAI,CAAC;GACrC,MAAM,gBAAgB,SAAS,UAAU,CAAC,QAC1C,IAAI,WAAW,WAAW,CACzB;AAED,OAAI,kBAAkB,IACpB,SAAS,iBAAiB;QAE1B,SAAS,KAAK,OAAO;EAEzB;CACF;CAEA,SAAS,KAAK,SAAS;CAEvB,MAAM,mCAAW,QAAQ,UAAU;EACjC;EACA,aAAa;EACb,KAAK,QAAQ,oBAAQ,GAAG,qBAAS;EACjC;CACD,EAAC;eAEF,GAAG,wDAAQ,KAAK,QAAQ,OAAO;eAC/B,GAAG,wDAAQ,KAAK,QAAQ,OAAO;AAE/B,QAAO;AACT"}
|
package/dist/cli/app-process.js
CHANGED
|
@@ -3,6 +3,6 @@ require('../constants-B5_Ta7PR.js');
|
|
|
3
3
|
require('../types-package-Dwub9JsW.js');
|
|
4
4
|
require('../common-DoZjgUs0.js');
|
|
5
5
|
require('../env-DakvrBzy.js');
|
|
6
|
-
const require_app_process = require('../app-process-
|
|
6
|
+
const require_app_process = require('../app-process-BnB1YZV6.js');
|
|
7
7
|
|
|
8
8
|
exports.createAppProcess = require_app_process.createAppProcess;
|
package/dist/cli/development.js
CHANGED
|
@@ -34,7 +34,7 @@ const require_common$2 = require('../common-DoZjgUs0.js');
|
|
|
34
34
|
require('../CommandKitEventsChannel-BSdcgY3Q.js');
|
|
35
35
|
require('../store-CyzliDXj.js');
|
|
36
36
|
require('../env-DakvrBzy.js');
|
|
37
|
-
const require_app_process = require('../app-process-
|
|
37
|
+
const require_app_process = require('../app-process-BnB1YZV6.js');
|
|
38
38
|
require('../type-checker-DDHZIEBi.js');
|
|
39
39
|
const require_build = require('../build-D8P0ENm6.js');
|
|
40
40
|
const node_crypto = require_chunk.__toESM(require("node:crypto"));
|
package/dist/cli/information.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-nOFOJqeH.js');
|
|
2
2
|
const require_constants = require('../constants-B5_Ta7PR.js');
|
|
3
|
-
const require_version = require('../version-
|
|
3
|
+
const require_version = require('../version-DlZKrAP6.js');
|
|
4
4
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const node_child_process = require_chunk.__toESM(require("node:child_process"));
|
package/dist/cli/production.js
CHANGED
|
@@ -34,7 +34,7 @@ const require_common$2 = require('../common-DoZjgUs0.js');
|
|
|
34
34
|
require('../CommandKitEventsChannel-BSdcgY3Q.js');
|
|
35
35
|
require('../store-CyzliDXj.js');
|
|
36
36
|
require('../env-DakvrBzy.js');
|
|
37
|
-
const require_app_process = require('../app-process-
|
|
37
|
+
const require_app_process = require('../app-process-BnB1YZV6.js');
|
|
38
38
|
require('../type-checker-DDHZIEBi.js');
|
|
39
39
|
const require_build = require('../build-D8P0ENm6.js');
|
|
40
40
|
const require_utils = require('../utils-n4MoGDDR.js');
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ require('./store-CyzliDXj.js');
|
|
|
37
37
|
const require_helpers = require('./helpers-DfV6HlgI.js');
|
|
38
38
|
require('./app-gCenKq8k.js');
|
|
39
39
|
require('./ILogger-BMIMljYD.js');
|
|
40
|
-
const require_version = require('./version-
|
|
40
|
+
const require_version = require('./version-DlZKrAP6.js');
|
|
41
41
|
const require_feature_flags = require('./feature-flags-CNRFFY4k.js');
|
|
42
42
|
const require_init = require('./init-Dc4Qbgpg.js');
|
|
43
43
|
const discord_js = require_chunk.__toESM(require("discord.js"));
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* The current version of CommandKit.
|
|
8
8
|
*/
|
|
9
|
-
const version = "1.0.0-dev.
|
|
9
|
+
const version = "1.0.0-dev.20250728045135";
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
Object.defineProperty(exports, 'version', {
|
|
@@ -15,4 +15,4 @@ Object.defineProperty(exports, 'version', {
|
|
|
15
15
|
return version;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
//# sourceMappingURL=version-
|
|
18
|
+
//# sourceMappingURL=version-DlZKrAP6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-
|
|
1
|
+
{"version":3,"file":"version-DlZKrAP6.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["/**\n * @private\n */\nfunction $version(): string {\n 'use macro';\n return require('../package.json').version;\n}\n\n/**\n * The current version of CommandKit.\n */\nexport const version: string = $version();\n"],"mappings":";;;;;;;;AAWA,MAAa,UAA4B"}
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commandkit",
|
|
3
3
|
"description": "Beginner friendly command & event handler for Discord.js",
|
|
4
|
-
"version": "1.0.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.20250728045135",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"tsx": "^4.19.2",
|
|
179
179
|
"typescript": "^5.7.3",
|
|
180
180
|
"vitest": "^3.0.5",
|
|
181
|
-
"tsconfig": "0.0.0-dev.
|
|
181
|
+
"tsconfig": "0.0.0-dev.20250728045135"
|
|
182
182
|
},
|
|
183
183
|
"engines": {
|
|
184
184
|
"node": ">=24"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-process-CKLJAmil.js","names":[],"sources":["../src/cli/app-process.ts"],"sourcesContent":["import { IOType, spawn } from 'node:child_process';\nimport { DevEnv, ProdEnv } from './env';\nimport { join } from 'node:path';\nimport { existsSync } from 'node:fs';\nimport { panic } from './common';\n\n/**\n * @private\n * @internal\n */\nfunction getStdio(supportsCommands: boolean) {\n if (supportsCommands) {\n return ['pipe', 'pipe', 'pipe', 'ipc'];\n }\n\n return ['pipe', 'pipe', 'pipe'];\n}\n\n/**\n * @private\n * @internal\n */\nexport function createAppProcess(\n fileName: string,\n cwd: string,\n isDev: boolean,\n) {\n if (!existsSync(join(cwd, fileName))) {\n panic(`Could not locate the entrypoint file: ${fileName}`);\n }\n\n const stdio = getStdio(isDev) as IOType[];\n\n const ps = spawn(\n 'node',\n [\n `--title=\"CommandKit ${isDev ? 'Development' : 'Production'}\"`,\n '--enable-source-maps',\n fileName,\n ],\n {\n cwd,\n windowsHide: true,\n env: isDev ? DevEnv() : ProdEnv(),\n stdio,\n },\n );\n\n ps.stdout?.pipe(process.stdout);\n ps.stderr?.pipe(process.stderr);\n\n return ps;\n}\n"],"mappings":";;;;;;;;;;;;AAUA,SAAS,SAAS,kBAA2B;AAC3C,KAAI,iBACF,QAAO;EAAC;EAAQ;EAAQ;EAAQ;CAAM;AAGxC,QAAO;EAAC;EAAQ;EAAQ;CAAO;AACjC;;;;;AAMA,SAAgB,iBAChB,UACA,KACA,OACA;;AACE,KAAI,6CAAiB,KAAK,SAAS,CAAC,EAClC,qBAAM,CAAC,sCAAsC,EAAE,UAAU,CAAC;CAG5D,MAAM,QAAQ,SAAS,MAAM;CAE7B,MAAM,mCACJ,QACA;EACA,CAAC,oBAAoB,EAAE,QAAQ,gBAAgB,aAAa,CAAC,CAAC;EAC9D;EACA;CAAS,GAET;EACE;EACA,aAAa;EACb,KAAK,QAAQ,oBAAQ,GAAG,qBAAS;EACjC;CACD,EACF;eAED,GAAG,wDAAQ,KAAK,QAAQ,OAAO;eAC/B,GAAG,wDAAQ,KAAK,QAAQ,OAAO;AAE/B,QAAO;AACT"}
|