weapp-vite 5.7.1 → 5.7.2
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/auto-import-components/resolvers.cjs +5 -5
- package/dist/auto-import-components/resolvers.mjs +1 -1
- package/dist/auto-routes.cjs +8 -8
- package/dist/auto-routes.mjs +4 -4
- package/dist/{chunk-AXUA33LJ.mjs → chunk-3WGK7INY.mjs} +2 -2
- package/dist/{chunk-GGLONZVQ.cjs → chunk-AUQJOLJS.cjs} +6 -6
- package/dist/{chunk-ZMX6CFVX.mjs → chunk-ED4S52HS.mjs} +1 -1
- package/dist/{chunk-O4FBXXL3.mjs → chunk-FSDX3XLK.mjs} +311 -26
- package/dist/{chunk-T4OVF4GP.cjs → chunk-HKSOVHNE.cjs} +657 -372
- package/dist/{chunk-MQBCRXCD.cjs → chunk-JKNSNXOE.cjs} +2 -2
- package/dist/chunk-O3YXI56P.cjs +6 -0
- package/dist/{chunk-A5DD7GKX.cjs → chunk-QKFYCWOC.cjs} +2 -2
- package/dist/{chunk-N463WDOG.mjs → chunk-RJVVY5EI.mjs} +1 -1
- package/dist/{chunk-G6EZVEVT.cjs → chunk-RMHCFT5Q.cjs} +2 -2
- package/dist/{chunk-2SUWUB42.mjs → chunk-SSYIWHY2.mjs} +1 -1
- package/dist/{chunk-SSQGJIB5.mjs → chunk-TZWATIK3.mjs} +2 -2
- package/dist/cli.cjs +143 -99
- package/dist/cli.mjs +63 -19
- package/dist/config.cjs +4 -4
- package/dist/config.mjs +3 -3
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +6 -6
- package/dist/json.cjs +3 -3
- package/dist/json.mjs +2 -2
- package/dist/types.cjs +9 -9
- package/dist/types.mjs +2 -2
- package/dist/volar.cjs +2 -2
- package/dist/volar.mjs +1 -1
- package/modules/analyze-dashboard/assets/echarts.js +11 -25
- package/modules/analyze-dashboard/assets/index.js +1 -1
- package/modules/analyze-dashboard/assets/rolldown-runtime.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-FOWFAOSV.cjs +0 -6
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAUQJOLJScjs = require('./chunk-AUQJOLJS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -11,17 +11,17 @@ var _chunkGGLONZVQcjs = require('./chunk-GGLONZVQ.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHKSOVHNEcjs = require('./chunk-HKSOVHNE.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkQKFYCWOCcjs = require('./chunk-QKFYCWOC.cjs');
|
|
19
19
|
|
|
20
20
|
// src/cli.ts
|
|
21
|
-
|
|
21
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
// ../../node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs
|
|
24
|
-
|
|
24
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
var _events = require('events');
|
|
26
26
|
function toArr(any) {
|
|
27
27
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -607,18 +607,18 @@ var CAC = class extends _events.EventEmitter {
|
|
|
607
607
|
var cac = (name = "") => new CAC(name);
|
|
608
608
|
|
|
609
609
|
// src/cli/commands/analyze.ts
|
|
610
|
-
|
|
610
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
611
611
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
612
612
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
613
613
|
var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);
|
|
614
614
|
|
|
615
615
|
// src/analyze/subpackages.ts
|
|
616
|
-
|
|
616
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
617
617
|
var _buffer = require('buffer');
|
|
618
618
|
|
|
619
619
|
var _vite = require('vite');
|
|
620
620
|
var VIRTUAL_MODULE_INDICATOR = "\0";
|
|
621
|
-
var VIRTUAL_PREFIX = `${
|
|
621
|
+
var VIRTUAL_PREFIX = `${_chunkHKSOVHNEcjs.SHARED_CHUNK_VIRTUAL_PREFIX}/`;
|
|
622
622
|
function isPathInside(parent, candidate) {
|
|
623
623
|
if (!parent) {
|
|
624
624
|
return false;
|
|
@@ -981,7 +981,7 @@ async function analyzeSubpackages(ctx) {
|
|
|
981
981
|
};
|
|
982
982
|
const analysisConfig = configService.merge(
|
|
983
983
|
void 0,
|
|
984
|
-
|
|
984
|
+
_chunkHKSOVHNEcjs.createSharedBuildConfig.call(void 0, configService, scanService),
|
|
985
985
|
{
|
|
986
986
|
build: {
|
|
987
987
|
write: false,
|
|
@@ -1009,21 +1009,40 @@ async function analyzeSubpackages(ctx) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
// src/cli/analyze/dashboard.ts
|
|
1012
|
-
|
|
1013
|
-
|
|
1012
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1013
|
+
|
|
1014
|
+
|
|
1014
1015
|
|
|
1016
|
+
|
|
1017
|
+
// src/packagePaths.ts
|
|
1018
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1019
|
+
var _path = require('path');
|
|
1015
1020
|
var _url = require('url');
|
|
1016
1021
|
|
|
1022
|
+
function findPackageRoot(from) {
|
|
1023
|
+
let current = from;
|
|
1024
|
+
while (true) {
|
|
1025
|
+
if (_fsextra2.default.existsSync(_path.join.call(void 0, current, "package.json"))) {
|
|
1026
|
+
return current;
|
|
1027
|
+
}
|
|
1028
|
+
const parent = _path.dirname.call(void 0, current);
|
|
1029
|
+
if (parent === current) {
|
|
1030
|
+
break;
|
|
1031
|
+
}
|
|
1032
|
+
current = parent;
|
|
1033
|
+
}
|
|
1034
|
+
throw new Error("\u65E0\u6CD5\u5B9A\u4F4D weapp-vite \u5305\u6839\u76EE\u5F55\uFF0C\u8BF7\u68C0\u67E5\u5B89\u88C5\u8DEF\u5F84\u3002");
|
|
1035
|
+
}
|
|
1036
|
+
var CURRENT_DIR = _path.dirname.call(void 0, _url.fileURLToPath.call(void 0, _chunkQKFYCWOCcjs.importMetaUrl));
|
|
1037
|
+
var PACKAGE_ROOT = findPackageRoot(CURRENT_DIR);
|
|
1038
|
+
var ANALYZE_DASHBOARD_ROOT = _path.join.call(void 0, PACKAGE_ROOT, "modules/analyze-dashboard");
|
|
1017
1039
|
|
|
1018
|
-
|
|
1019
|
-
var __dirname = _path.dirname.call(void 0, __filename);
|
|
1020
|
-
var PACKAGE_ROOT = _path.resolve.call(void 0, __dirname, "../../..");
|
|
1021
|
-
var BUILD_DASHBOARD_ROOT = _path.resolve.call(void 0, PACKAGE_ROOT, "modules/analyze-dashboard");
|
|
1040
|
+
// src/cli/analyze/dashboard.ts
|
|
1022
1041
|
var ANALYZE_GLOBAL_KEY = "__WEAPP_VITE_ANALYZE_RESULT__";
|
|
1023
1042
|
function resolveDashboardRoot() {
|
|
1024
|
-
if (_fsextra2.default.existsSync(
|
|
1043
|
+
if (_fsextra2.default.existsSync(ANALYZE_DASHBOARD_ROOT)) {
|
|
1025
1044
|
return {
|
|
1026
|
-
root:
|
|
1045
|
+
root: ANALYZE_DASHBOARD_ROOT
|
|
1027
1046
|
};
|
|
1028
1047
|
}
|
|
1029
1048
|
throw new Error(
|
|
@@ -1060,7 +1079,7 @@ async function waitForServerExit(server) {
|
|
|
1060
1079
|
try {
|
|
1061
1080
|
await server.close();
|
|
1062
1081
|
} catch (error) {
|
|
1063
|
-
|
|
1082
|
+
_chunkHKSOVHNEcjs.logger_default.error(error);
|
|
1064
1083
|
}
|
|
1065
1084
|
};
|
|
1066
1085
|
const signals = ["SIGINT", "SIGTERM"];
|
|
@@ -1102,8 +1121,24 @@ async function startAnalyzeDashboard(result, options) {
|
|
|
1102
1121
|
await server.listen();
|
|
1103
1122
|
serverRef ??= server;
|
|
1104
1123
|
server.printUrls();
|
|
1105
|
-
|
|
1124
|
+
const urls = (() => {
|
|
1125
|
+
const resolved = server.resolvedUrls;
|
|
1126
|
+
if (!resolved) {
|
|
1127
|
+
return [];
|
|
1128
|
+
}
|
|
1129
|
+
return [
|
|
1130
|
+
..._nullishCoalesce(resolved.local, () => ( [])),
|
|
1131
|
+
..._nullishCoalesce(resolved.network, () => ( []))
|
|
1132
|
+
];
|
|
1133
|
+
})();
|
|
1106
1134
|
const waitPromise = waitForServerExit(server);
|
|
1135
|
+
if (_optionalChain([serverRef, 'optionalAccess', _8 => _8.ws])) {
|
|
1136
|
+
serverRef.ws.send({
|
|
1137
|
+
type: "custom",
|
|
1138
|
+
event: "weapp-analyze:update",
|
|
1139
|
+
data: state.current
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1107
1142
|
const handle = {
|
|
1108
1143
|
async update(nextResult) {
|
|
1109
1144
|
state.current = nextResult;
|
|
@@ -1118,17 +1153,26 @@ async function startAnalyzeDashboard(result, options) {
|
|
|
1118
1153
|
waitForExit: () => waitPromise,
|
|
1119
1154
|
close: async () => {
|
|
1120
1155
|
await server.close();
|
|
1121
|
-
}
|
|
1156
|
+
},
|
|
1157
|
+
urls
|
|
1122
1158
|
};
|
|
1123
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
1159
|
+
if (_optionalChain([options, 'optionalAccess', _9 => _9.watch])) {
|
|
1160
|
+
_chunkHKSOVHNEcjs.logger_default.info("\u5206\u6790\u4EEA\u8868\u76D8\u5DF2\u542F\u52A8\uFF08\u5B9E\u65F6\u6A21\u5F0F\uFF09\uFF0C\u6309 Ctrl+C \u9000\u51FA\u3002");
|
|
1161
|
+
for (const url of handle.urls) {
|
|
1162
|
+
_chunkHKSOVHNEcjs.logger_default.info(`\u5206\u5305\u5206\u6790\u4EEA\u8868\u76D8\uFF1A${url}`);
|
|
1163
|
+
}
|
|
1124
1164
|
void waitPromise;
|
|
1125
1165
|
return handle;
|
|
1126
1166
|
}
|
|
1167
|
+
_chunkHKSOVHNEcjs.logger_default.info("\u5206\u6790\u4EEA\u8868\u76D8\u5DF2\u542F\u52A8\uFF08\u9759\u6001\u6A21\u5F0F\uFF09\uFF0C\u6309 Ctrl+C \u9000\u51FA\u3002");
|
|
1168
|
+
for (const url of handle.urls) {
|
|
1169
|
+
_chunkHKSOVHNEcjs.logger_default.info(`\u5206\u5305\u5206\u6790\u4EEA\u8868\u76D8\uFF1A${url}`);
|
|
1170
|
+
}
|
|
1127
1171
|
await waitPromise;
|
|
1128
1172
|
}
|
|
1129
1173
|
|
|
1130
1174
|
// src/cli/options.ts
|
|
1131
|
-
|
|
1175
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1132
1176
|
function filterDuplicateOptions(options) {
|
|
1133
1177
|
for (const [key, value] of Object.entries(options)) {
|
|
1134
1178
|
if (Array.isArray(value)) {
|
|
@@ -1177,9 +1221,9 @@ function coerceBooleanOption(value) {
|
|
|
1177
1221
|
}
|
|
1178
1222
|
|
|
1179
1223
|
// src/cli/runtime.ts
|
|
1180
|
-
|
|
1224
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1181
1225
|
function logRuntimeTarget(targets) {
|
|
1182
|
-
|
|
1226
|
+
_chunkHKSOVHNEcjs.logger_default.info(`\u76EE\u6807\u5E73\u53F0\uFF1A${targets.label}`);
|
|
1183
1227
|
}
|
|
1184
1228
|
function resolveRuntimeTargets(options) {
|
|
1185
1229
|
const rawPlatform = typeof options.platform === "string" ? options.platform : typeof options.p === "string" ? options.p : void 0;
|
|
@@ -1187,17 +1231,17 @@ function resolveRuntimeTargets(options) {
|
|
|
1187
1231
|
return {
|
|
1188
1232
|
runMini: true,
|
|
1189
1233
|
runWeb: false,
|
|
1190
|
-
mpPlatform:
|
|
1191
|
-
label:
|
|
1234
|
+
mpPlatform: _chunkHKSOVHNEcjs.DEFAULT_MP_PLATFORM,
|
|
1235
|
+
label: _chunkHKSOVHNEcjs.DEFAULT_MP_PLATFORM
|
|
1192
1236
|
};
|
|
1193
1237
|
}
|
|
1194
|
-
const normalized =
|
|
1238
|
+
const normalized = _chunkHKSOVHNEcjs.normalizeMiniPlatform.call(void 0, rawPlatform);
|
|
1195
1239
|
if (!normalized) {
|
|
1196
1240
|
return {
|
|
1197
1241
|
runMini: true,
|
|
1198
1242
|
runWeb: false,
|
|
1199
|
-
mpPlatform:
|
|
1200
|
-
label:
|
|
1243
|
+
mpPlatform: _chunkHKSOVHNEcjs.DEFAULT_MP_PLATFORM,
|
|
1244
|
+
label: _chunkHKSOVHNEcjs.DEFAULT_MP_PLATFORM
|
|
1201
1245
|
};
|
|
1202
1246
|
}
|
|
1203
1247
|
if (normalized === "h5" || normalized === "web") {
|
|
@@ -1208,7 +1252,7 @@ function resolveRuntimeTargets(options) {
|
|
|
1208
1252
|
label: normalized === "h5" ? "h5" : "web"
|
|
1209
1253
|
};
|
|
1210
1254
|
}
|
|
1211
|
-
const mpPlatform =
|
|
1255
|
+
const mpPlatform = _chunkHKSOVHNEcjs.resolveMiniPlatform.call(void 0, normalized);
|
|
1212
1256
|
if (mpPlatform) {
|
|
1213
1257
|
return {
|
|
1214
1258
|
runMini: true,
|
|
@@ -1217,12 +1261,12 @@ function resolveRuntimeTargets(options) {
|
|
|
1217
1261
|
label: mpPlatform
|
|
1218
1262
|
};
|
|
1219
1263
|
}
|
|
1220
|
-
|
|
1264
|
+
_chunkHKSOVHNEcjs.logger_default.warn(`\u672A\u8BC6\u522B\u7684\u5E73\u53F0 "${rawPlatform}"\uFF0C\u5DF2\u56DE\u9000\u5230 ${_chunkHKSOVHNEcjs.DEFAULT_MP_PLATFORM}`);
|
|
1221
1265
|
return {
|
|
1222
1266
|
runMini: true,
|
|
1223
1267
|
runWeb: false,
|
|
1224
|
-
mpPlatform:
|
|
1225
|
-
label:
|
|
1268
|
+
mpPlatform: _chunkHKSOVHNEcjs.DEFAULT_MP_PLATFORM,
|
|
1269
|
+
label: _chunkHKSOVHNEcjs.DEFAULT_MP_PLATFORM
|
|
1226
1270
|
};
|
|
1227
1271
|
}
|
|
1228
1272
|
function createInlineConfig(mpPlatform) {
|
|
@@ -1250,15 +1294,15 @@ function printAnalysisSummary(result) {
|
|
|
1250
1294
|
packageModuleSet.set(pkgRef.packageId, set);
|
|
1251
1295
|
}
|
|
1252
1296
|
}
|
|
1253
|
-
|
|
1297
|
+
_chunkHKSOVHNEcjs.logger_default.success("\u5206\u5305\u5206\u6790\u5B8C\u6210");
|
|
1254
1298
|
for (const pkg of result.packages) {
|
|
1255
1299
|
const chunkCount = pkg.files.filter((file) => file.type === "chunk").length;
|
|
1256
1300
|
const assetCount = pkg.files.length - chunkCount;
|
|
1257
|
-
const moduleCount = _nullishCoalesce(_optionalChain([packageModuleSet, 'access',
|
|
1258
|
-
|
|
1301
|
+
const moduleCount = _nullishCoalesce(_optionalChain([packageModuleSet, 'access', _10 => _10.get, 'call', _11 => _11(pkg.id), 'optionalAccess', _12 => _12.size]), () => ( 0));
|
|
1302
|
+
_chunkHKSOVHNEcjs.logger_default.info(`- ${pkg.label}\uFF1A${chunkCount} \u4E2A\u6A21\u5757\u4EA7\u7269\uFF0C${assetCount} \u4E2A\u8D44\u6E90\uFF0C\u8986\u76D6 ${moduleCount} \u4E2A\u6E90\u7801\u6A21\u5757`);
|
|
1259
1303
|
}
|
|
1260
1304
|
if (result.subPackages.length > 0) {
|
|
1261
|
-
|
|
1305
|
+
_chunkHKSOVHNEcjs.logger_default.info("\u5206\u5305\u914D\u7F6E\uFF1A");
|
|
1262
1306
|
for (const descriptor of result.subPackages) {
|
|
1263
1307
|
const segments = [descriptor.root];
|
|
1264
1308
|
if (descriptor.name) {
|
|
@@ -1267,15 +1311,15 @@ function printAnalysisSummary(result) {
|
|
|
1267
1311
|
if (descriptor.independent) {
|
|
1268
1312
|
segments.push("\u72EC\u7ACB\u6784\u5EFA");
|
|
1269
1313
|
}
|
|
1270
|
-
|
|
1314
|
+
_chunkHKSOVHNEcjs.logger_default.info(`- ${segments.join("\uFF0C")}`);
|
|
1271
1315
|
}
|
|
1272
1316
|
}
|
|
1273
1317
|
const duplicates = result.modules.filter((module) => module.packages.length > 1);
|
|
1274
1318
|
if (duplicates.length === 0) {
|
|
1275
|
-
|
|
1319
|
+
_chunkHKSOVHNEcjs.logger_default.info("\u672A\u68C0\u6D4B\u5230\u8DE8\u5305\u590D\u7528\u7684\u6E90\u7801\u6A21\u5757\u3002");
|
|
1276
1320
|
return;
|
|
1277
1321
|
}
|
|
1278
|
-
|
|
1322
|
+
_chunkHKSOVHNEcjs.logger_default.info(`\u8DE8\u5305\u590D\u7528/\u590D\u5236\u6E90\u7801\u5171 ${duplicates.length} \u9879\uFF1A`);
|
|
1279
1323
|
const limit = 10;
|
|
1280
1324
|
const entries = duplicates.slice(0, limit);
|
|
1281
1325
|
for (const module of entries) {
|
|
@@ -1283,10 +1327,10 @@ function printAnalysisSummary(result) {
|
|
|
1283
1327
|
const label = _nullishCoalesce(packageLabelMap.get(pkgRef.packageId), () => ( pkgRef.packageId));
|
|
1284
1328
|
return `${label} \u2192 ${pkgRef.files.join(", ")}`;
|
|
1285
1329
|
}).join("\uFF1B");
|
|
1286
|
-
|
|
1330
|
+
_chunkHKSOVHNEcjs.logger_default.info(`- ${module.source} (${module.sourceType})\uFF1A${placements}`);
|
|
1287
1331
|
}
|
|
1288
1332
|
if (duplicates.length > limit) {
|
|
1289
|
-
|
|
1333
|
+
_chunkHKSOVHNEcjs.logger_default.info(`- \u2026\u5176\u4F59 ${duplicates.length - limit} \u9879\u8BF7\u4F7F\u7528 \`weapp-vite analyze --json\` \u67E5\u770B`);
|
|
1290
1334
|
}
|
|
1291
1335
|
}
|
|
1292
1336
|
function registerAnalyzeCommand(cli2) {
|
|
@@ -1296,15 +1340,15 @@ function registerAnalyzeCommand(cli2) {
|
|
|
1296
1340
|
const targets = resolveRuntimeTargets(options);
|
|
1297
1341
|
logRuntimeTarget(targets);
|
|
1298
1342
|
if (!targets.runMini) {
|
|
1299
|
-
|
|
1343
|
+
_chunkHKSOVHNEcjs.logger_default.warn("\u5F53\u524D\u547D\u4EE4\u4EC5\u652F\u6301\u5C0F\u7A0B\u5E8F\u5E73\u53F0\uFF0C\u8BF7\u901A\u8FC7 --platform weapp \u6307\u5B9A\u76EE\u6807\u3002");
|
|
1300
1344
|
return;
|
|
1301
1345
|
}
|
|
1302
1346
|
if (targets.runWeb) {
|
|
1303
|
-
|
|
1347
|
+
_chunkHKSOVHNEcjs.logger_default.warn("\u5206\u6790\u547D\u4EE4\u6682\u4E0D\u652F\u6301 Web \u5E73\u53F0\uFF0C\u5C06\u5FFD\u7565\u76F8\u5173\u914D\u7F6E\u3002");
|
|
1304
1348
|
}
|
|
1305
1349
|
const inlineConfig = createInlineConfig(targets.mpPlatform);
|
|
1306
1350
|
try {
|
|
1307
|
-
const ctx = await
|
|
1351
|
+
const ctx = await _chunkAUQJOLJScjs.createCompilerContext.call(void 0, {
|
|
1308
1352
|
cwd: root,
|
|
1309
1353
|
mode: _nullishCoalesce(options.mode, () => ( "production")),
|
|
1310
1354
|
configFile,
|
|
@@ -1316,13 +1360,13 @@ function registerAnalyzeCommand(cli2) {
|
|
|
1316
1360
|
let writtenPath;
|
|
1317
1361
|
if (outputOption) {
|
|
1318
1362
|
const configService = ctx.configService;
|
|
1319
|
-
const baseDir = _nullishCoalesce(_optionalChain([configService, 'optionalAccess',
|
|
1363
|
+
const baseDir = _nullishCoalesce(_optionalChain([configService, 'optionalAccess', _13 => _13.cwd]), () => ( _process2.default.cwd()));
|
|
1320
1364
|
const resolvedOutputPath = _pathe2.default.isAbsolute(outputOption) ? outputOption : _pathe2.default.resolve(baseDir, outputOption);
|
|
1321
1365
|
await _fsextra2.default.ensureDir(_pathe2.default.dirname(resolvedOutputPath));
|
|
1322
1366
|
await _fsextra2.default.writeFile(resolvedOutputPath, `${JSON.stringify(result, null, 2)}
|
|
1323
1367
|
`, "utf8");
|
|
1324
1368
|
const relativeOutput = configService ? configService.relativeCwd(resolvedOutputPath) : resolvedOutputPath;
|
|
1325
|
-
|
|
1369
|
+
_chunkHKSOVHNEcjs.logger_default.success(`\u5206\u6790\u7ED3\u679C\u5DF2\u5199\u5165 ${relativeOutput}`);
|
|
1326
1370
|
writtenPath = resolvedOutputPath;
|
|
1327
1371
|
}
|
|
1328
1372
|
if (outputJson) {
|
|
@@ -1335,20 +1379,20 @@ function registerAnalyzeCommand(cli2) {
|
|
|
1335
1379
|
await startAnalyzeDashboard(result);
|
|
1336
1380
|
}
|
|
1337
1381
|
} catch (error) {
|
|
1338
|
-
|
|
1382
|
+
_chunkHKSOVHNEcjs.logger_default.error(error);
|
|
1339
1383
|
_process2.default.exitCode = 1;
|
|
1340
1384
|
}
|
|
1341
1385
|
});
|
|
1342
1386
|
}
|
|
1343
1387
|
|
|
1344
1388
|
// src/cli/commands/build.ts
|
|
1345
|
-
|
|
1389
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1346
1390
|
|
|
1347
1391
|
// src/cli/logBuildAppFinish.ts
|
|
1348
|
-
|
|
1392
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1349
1393
|
|
|
1350
1394
|
// ../../node_modules/.pnpm/package-manager-detector@1.5.0/node_modules/package-manager-detector/dist/commands.mjs
|
|
1351
|
-
|
|
1395
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1352
1396
|
function dashDashArg(agent, agentCommand) {
|
|
1353
1397
|
return (args) => {
|
|
1354
1398
|
if (args.length > 1) {
|
|
@@ -1493,15 +1537,15 @@ function logBuildAppFinish(configService, webServer, options = {}) {
|
|
|
1493
1537
|
const urls = webServer.resolvedUrls;
|
|
1494
1538
|
const candidates = urls ? [..._nullishCoalesce(urls.local, () => ( [])), ..._nullishCoalesce(urls.network, () => ( []))] : [];
|
|
1495
1539
|
if (candidates.length > 0) {
|
|
1496
|
-
|
|
1540
|
+
_chunkHKSOVHNEcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8\uFF0C\u6D4F\u89C8\u5668\u8BBF\u95EE\uFF1A");
|
|
1497
1541
|
for (const url of candidates) {
|
|
1498
|
-
|
|
1542
|
+
_chunkHKSOVHNEcjs.logger_default.info(` \u279C ${url}`);
|
|
1499
1543
|
}
|
|
1500
1544
|
} else {
|
|
1501
|
-
|
|
1545
|
+
_chunkHKSOVHNEcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
|
|
1502
1546
|
}
|
|
1503
1547
|
} else {
|
|
1504
|
-
|
|
1548
|
+
_chunkHKSOVHNEcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
|
|
1505
1549
|
}
|
|
1506
1550
|
logBuildAppFinishOnlyShowOnce = true;
|
|
1507
1551
|
return;
|
|
@@ -1515,32 +1559,32 @@ function logBuildAppFinish(configService, webServer, options = {}) {
|
|
|
1515
1559
|
args: ["run", "open"]
|
|
1516
1560
|
}));
|
|
1517
1561
|
const devCommand = `${command} ${args.join(" ")}`;
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1562
|
+
_chunkHKSOVHNEcjs.logger_default.success("\u5E94\u7528\u6784\u5EFA\u5B8C\u6210\uFF01\u9884\u89C8\u65B9\u5F0F ( `2` \u79CD\u9009\u5176\u4E00\u5373\u53EF)\uFF1A");
|
|
1563
|
+
_chunkHKSOVHNEcjs.logger_default.info(`\u6267\u884C \`${devCommand}\` \u53EF\u4EE5\u76F4\u63A5\u5728 \`\u5FAE\u4FE1\u5F00\u53D1\u8005\u5DE5\u5177\` \u91CC\u6253\u5F00\u5F53\u524D\u5E94\u7528`);
|
|
1564
|
+
_chunkHKSOVHNEcjs.logger_default.info("\u6216\u624B\u52A8\u6253\u5F00\u5FAE\u4FE1\u5F00\u53D1\u8005\u5DE5\u5177\uFF0C\u5BFC\u5165\u6839\u76EE\u5F55(`project.config.json` \u6587\u4EF6\u6240\u5728\u7684\u76EE\u5F55)\uFF0C\u5373\u53EF\u9884\u89C8\u6548\u679C");
|
|
1521
1565
|
if (!skipWeb && webServer) {
|
|
1522
1566
|
const urls = webServer.resolvedUrls;
|
|
1523
1567
|
const candidates = urls ? [..._nullishCoalesce(urls.local, () => ( [])), ..._nullishCoalesce(urls.network, () => ( []))] : [];
|
|
1524
1568
|
if (candidates.length > 0) {
|
|
1525
|
-
|
|
1569
|
+
_chunkHKSOVHNEcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8\uFF0C\u6D4F\u89C8\u5668\u8BBF\u95EE\uFF1A");
|
|
1526
1570
|
for (const url of candidates) {
|
|
1527
|
-
|
|
1571
|
+
_chunkHKSOVHNEcjs.logger_default.info(` \u279C ${url}`);
|
|
1528
1572
|
}
|
|
1529
1573
|
} else {
|
|
1530
|
-
|
|
1574
|
+
_chunkHKSOVHNEcjs.logger_default.success("Web \u8FD0\u884C\u65F6\u5DF2\u542F\u52A8");
|
|
1531
1575
|
}
|
|
1532
1576
|
}
|
|
1533
1577
|
logBuildAppFinishOnlyShowOnce = true;
|
|
1534
1578
|
}
|
|
1535
1579
|
|
|
1536
1580
|
// src/cli/openIde.ts
|
|
1537
|
-
|
|
1581
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1538
1582
|
var _weappidecli = require('weapp-ide-cli');
|
|
1539
1583
|
async function openIde() {
|
|
1540
1584
|
try {
|
|
1541
1585
|
await _weappidecli.parse.call(void 0, ["open", "-p"]);
|
|
1542
1586
|
} catch (error) {
|
|
1543
|
-
|
|
1587
|
+
_chunkHKSOVHNEcjs.logger_default.error(error);
|
|
1544
1588
|
}
|
|
1545
1589
|
}
|
|
1546
1590
|
|
|
@@ -1561,7 +1605,7 @@ function registerBuildCommand(cli2) {
|
|
|
1561
1605
|
const targets = resolveRuntimeTargets(options);
|
|
1562
1606
|
logRuntimeTarget(targets);
|
|
1563
1607
|
const inlineConfig = createInlineConfig(targets.mpPlatform);
|
|
1564
|
-
const ctx = await
|
|
1608
|
+
const ctx = await _chunkAUQJOLJScjs.createCompilerContext.call(void 0, {
|
|
1565
1609
|
cwd: root,
|
|
1566
1610
|
mode: _nullishCoalesce(options.mode, () => ( "production")),
|
|
1567
1611
|
configFile,
|
|
@@ -1578,12 +1622,12 @@ function registerBuildCommand(cli2) {
|
|
|
1578
1622
|
}
|
|
1579
1623
|
}
|
|
1580
1624
|
const webConfig = configService.weappWebConfig;
|
|
1581
|
-
if (targets.runWeb && _optionalChain([webConfig, 'optionalAccess',
|
|
1625
|
+
if (targets.runWeb && _optionalChain([webConfig, 'optionalAccess', _14 => _14.enabled])) {
|
|
1582
1626
|
try {
|
|
1583
|
-
await _optionalChain([webService, 'optionalAccess',
|
|
1584
|
-
|
|
1627
|
+
await _optionalChain([webService, 'optionalAccess', _15 => _15.build, 'call', _16 => _16()]);
|
|
1628
|
+
_chunkHKSOVHNEcjs.logger_default.success(`Web \u6784\u5EFA\u5B8C\u6210\uFF0C\u8F93\u51FA\u76EE\u5F55\uFF1A${configService.relativeCwd(webConfig.outDir)}`);
|
|
1585
1629
|
} catch (error) {
|
|
1586
|
-
|
|
1630
|
+
_chunkHKSOVHNEcjs.logger_default.error(error);
|
|
1587
1631
|
throw error;
|
|
1588
1632
|
}
|
|
1589
1633
|
}
|
|
@@ -1600,7 +1644,7 @@ function registerBuildCommand(cli2) {
|
|
|
1600
1644
|
}
|
|
1601
1645
|
|
|
1602
1646
|
// src/cli/commands/create.ts
|
|
1603
|
-
|
|
1647
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1604
1648
|
var _init = require('@weapp-core/init');
|
|
1605
1649
|
function registerCreateCommand(cli2) {
|
|
1606
1650
|
cli2.command("create [outDir]", "create project").option("-t, --template <type>", "template type").action(async (outDir, options) => {
|
|
@@ -1609,11 +1653,11 @@ function registerCreateCommand(cli2) {
|
|
|
1609
1653
|
}
|
|
1610
1654
|
|
|
1611
1655
|
// src/cli/commands/generate.ts
|
|
1612
|
-
|
|
1656
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1613
1657
|
|
|
1614
1658
|
|
|
1615
1659
|
// src/schematics.ts
|
|
1616
|
-
|
|
1660
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1617
1661
|
|
|
1618
1662
|
var _schematics = require('@weapp-core/schematics');
|
|
1619
1663
|
var _shared = require('@weapp-core/shared');
|
|
@@ -1655,11 +1699,11 @@ async function loadTemplate(template, context) {
|
|
|
1655
1699
|
return void 0;
|
|
1656
1700
|
}
|
|
1657
1701
|
function resolveTemplate(templates, type, fileType) {
|
|
1658
|
-
const scoped = _optionalChain([templates, 'optionalAccess',
|
|
1702
|
+
const scoped = _optionalChain([templates, 'optionalAccess', _17 => _17[type], 'optionalAccess', _18 => _18[fileType]]);
|
|
1659
1703
|
if (scoped !== void 0) {
|
|
1660
1704
|
return scoped;
|
|
1661
1705
|
}
|
|
1662
|
-
return _optionalChain([templates, 'optionalAccess',
|
|
1706
|
+
return _optionalChain([templates, 'optionalAccess', _19 => _19.shared, 'optionalAccess', _20 => _20[fileType]]);
|
|
1663
1707
|
}
|
|
1664
1708
|
async function generate(options) {
|
|
1665
1709
|
let { fileName, outDir, extensions, type, cwd, templates } = _shared.defu.call(void 0, options, {
|
|
@@ -1714,13 +1758,13 @@ async function generate(options) {
|
|
|
1714
1758
|
for (const { code, fileName: fileName2 } of files) {
|
|
1715
1759
|
if (code !== void 0) {
|
|
1716
1760
|
await _fsextra2.default.outputFile(_pathe2.default.resolve(basepath, fileName2), code, "utf8");
|
|
1717
|
-
|
|
1761
|
+
_chunkHKSOVHNEcjs.logger_default.success(`${composePath(outDir, fileName2)} \u521B\u5EFA\u6210\u529F\uFF01`);
|
|
1718
1762
|
}
|
|
1719
1763
|
}
|
|
1720
1764
|
}
|
|
1721
1765
|
|
|
1722
1766
|
// src/cli/loadConfig.ts
|
|
1723
|
-
|
|
1767
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1724
1768
|
|
|
1725
1769
|
|
|
1726
1770
|
|
|
@@ -1736,14 +1780,14 @@ async function loadConfig(configFile) {
|
|
|
1736
1780
|
mode: "development"
|
|
1737
1781
|
};
|
|
1738
1782
|
const loaded = await _vite.loadConfigFromFile.call(void 0, configEnv, resolvedConfigFile, cwd);
|
|
1739
|
-
const weappConfigFilePath = await
|
|
1783
|
+
const weappConfigFilePath = await _chunkHKSOVHNEcjs.resolveWeappConfigFile.call(void 0, {
|
|
1740
1784
|
root: cwd,
|
|
1741
1785
|
specified: resolvedConfigFile
|
|
1742
1786
|
});
|
|
1743
1787
|
let weappLoaded;
|
|
1744
1788
|
if (weappConfigFilePath) {
|
|
1745
1789
|
const normalizedWeappPath = _pathe2.default.resolve(weappConfigFilePath);
|
|
1746
|
-
const normalizedLoadedPath = _optionalChain([loaded, 'optionalAccess',
|
|
1790
|
+
const normalizedLoadedPath = _optionalChain([loaded, 'optionalAccess', _21 => _21.path]) ? _pathe2.default.resolve(loaded.path) : void 0;
|
|
1747
1791
|
if (normalizedLoadedPath && normalizedLoadedPath === normalizedWeappPath) {
|
|
1748
1792
|
weappLoaded = loaded;
|
|
1749
1793
|
} else {
|
|
@@ -1753,23 +1797,23 @@ async function loadConfig(configFile) {
|
|
|
1753
1797
|
if (!loaded && !weappLoaded) {
|
|
1754
1798
|
return void 0;
|
|
1755
1799
|
}
|
|
1756
|
-
const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess',
|
|
1757
|
-
if (_optionalChain([weappLoaded, 'optionalAccess',
|
|
1800
|
+
const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess', _22 => _22.config]), () => ( (_nullishCoalesce(_optionalChain([weappLoaded, 'optionalAccess', _23 => _23.config]), () => ( {})))));
|
|
1801
|
+
if (_optionalChain([weappLoaded, 'optionalAccess', _24 => _24.config, 'optionalAccess', _25 => _25.weapp])) {
|
|
1758
1802
|
config.weapp = _shared.defu.call(void 0,
|
|
1759
1803
|
weappLoaded.config.weapp,
|
|
1760
1804
|
_nullishCoalesce(config.weapp, () => ( {}))
|
|
1761
1805
|
);
|
|
1762
1806
|
}
|
|
1763
1807
|
const dependencySet = /* @__PURE__ */ new Set();
|
|
1764
|
-
for (const dependency of _nullishCoalesce(_optionalChain([loaded, 'optionalAccess',
|
|
1808
|
+
for (const dependency of _nullishCoalesce(_optionalChain([loaded, 'optionalAccess', _26 => _26.dependencies]), () => ( []))) {
|
|
1765
1809
|
dependencySet.add(dependency);
|
|
1766
1810
|
}
|
|
1767
|
-
for (const dependency of _nullishCoalesce(_optionalChain([weappLoaded, 'optionalAccess',
|
|
1811
|
+
for (const dependency of _nullishCoalesce(_optionalChain([weappLoaded, 'optionalAccess', _27 => _27.dependencies]), () => ( []))) {
|
|
1768
1812
|
dependencySet.add(dependency);
|
|
1769
1813
|
}
|
|
1770
1814
|
return {
|
|
1771
1815
|
config,
|
|
1772
|
-
path: _nullishCoalesce(_nullishCoalesce(_optionalChain([weappLoaded, 'optionalAccess',
|
|
1816
|
+
path: _nullishCoalesce(_nullishCoalesce(_optionalChain([weappLoaded, 'optionalAccess', _28 => _28.path]), () => ( _optionalChain([loaded, 'optionalAccess', _29 => _29.path]))), () => ( resolvedConfigFile)),
|
|
1773
1817
|
dependencies: Array.from(dependencySet)
|
|
1774
1818
|
};
|
|
1775
1819
|
}
|
|
@@ -1789,26 +1833,26 @@ function registerGenerateCommand(cli2) {
|
|
|
1789
1833
|
fileName = "app";
|
|
1790
1834
|
}
|
|
1791
1835
|
if (filepath === void 0) {
|
|
1792
|
-
|
|
1836
|
+
_chunkHKSOVHNEcjs.logger_default.error("weapp-vite generate <outDir> \u547D\u4EE4\u5FC5\u987B\u4F20\u5165\u8DEF\u5F84\u53C2\u6570 outDir");
|
|
1793
1837
|
return;
|
|
1794
1838
|
}
|
|
1795
1839
|
if (options.page) {
|
|
1796
1840
|
type = "page";
|
|
1797
1841
|
}
|
|
1798
|
-
const generateOptions = _optionalChain([config, 'optionalAccess',
|
|
1799
|
-
fileName = _nullishCoalesce(_optionalChain([generateOptions, 'optionalAccess',
|
|
1842
|
+
const generateOptions = _optionalChain([config, 'optionalAccess', _30 => _30.config, 'access', _31 => _31.weapp, 'optionalAccess', _32 => _32.generate]);
|
|
1843
|
+
fileName = _nullishCoalesce(_optionalChain([generateOptions, 'optionalAccess', _33 => _33.filenames, 'optionalAccess', _34 => _34[type]]), () => ( fileName));
|
|
1800
1844
|
await generate({
|
|
1801
|
-
outDir: _pathe2.default.join(_nullishCoalesce(_optionalChain([generateOptions, 'optionalAccess',
|
|
1845
|
+
outDir: _pathe2.default.join(_nullishCoalesce(_optionalChain([generateOptions, 'optionalAccess', _35 => _35.dirs, 'optionalAccess', _36 => _36[type]]), () => ( "")), filepath),
|
|
1802
1846
|
type,
|
|
1803
1847
|
fileName,
|
|
1804
|
-
extensions: _optionalChain([generateOptions, 'optionalAccess',
|
|
1805
|
-
templates: _optionalChain([generateOptions, 'optionalAccess',
|
|
1848
|
+
extensions: _optionalChain([generateOptions, 'optionalAccess', _37 => _37.extensions]),
|
|
1849
|
+
templates: _optionalChain([generateOptions, 'optionalAccess', _38 => _38.templates])
|
|
1806
1850
|
});
|
|
1807
1851
|
});
|
|
1808
1852
|
}
|
|
1809
1853
|
|
|
1810
1854
|
// src/cli/commands/init.ts
|
|
1811
|
-
|
|
1855
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1812
1856
|
|
|
1813
1857
|
function registerInitCommand(cli2) {
|
|
1814
1858
|
cli2.command("init").action(async () => {
|
|
@@ -1817,26 +1861,26 @@ function registerInitCommand(cli2) {
|
|
|
1817
1861
|
command: "weapp-vite"
|
|
1818
1862
|
});
|
|
1819
1863
|
} catch (error) {
|
|
1820
|
-
|
|
1864
|
+
_chunkHKSOVHNEcjs.logger_default.error(error);
|
|
1821
1865
|
}
|
|
1822
1866
|
});
|
|
1823
1867
|
}
|
|
1824
1868
|
|
|
1825
1869
|
// src/cli/commands/npm.ts
|
|
1826
|
-
|
|
1870
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1827
1871
|
|
|
1828
1872
|
function registerNpmCommand(cli2) {
|
|
1829
1873
|
cli2.command("npm").alias("build:npm").alias("build-npm").action(async () => {
|
|
1830
1874
|
try {
|
|
1831
1875
|
await _weappidecli.parse.call(void 0, ["build-npm", "-p"]);
|
|
1832
1876
|
} catch (error) {
|
|
1833
|
-
|
|
1877
|
+
_chunkHKSOVHNEcjs.logger_default.error(error);
|
|
1834
1878
|
}
|
|
1835
1879
|
});
|
|
1836
1880
|
}
|
|
1837
1881
|
|
|
1838
1882
|
// src/cli/commands/open.ts
|
|
1839
|
-
|
|
1883
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1840
1884
|
function registerOpenCommand(cli2) {
|
|
1841
1885
|
cli2.command("open").action(async () => {
|
|
1842
1886
|
await openIde();
|
|
@@ -1844,7 +1888,7 @@ function registerOpenCommand(cli2) {
|
|
|
1844
1888
|
}
|
|
1845
1889
|
|
|
1846
1890
|
// src/cli/commands/serve.ts
|
|
1847
|
-
|
|
1891
|
+
_chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
1848
1892
|
function registerServeCommand(cli2) {
|
|
1849
1893
|
cli2.command("[root]", "start dev server").alias("serve").alias("dev").option("--skipNpm", `[boolean] if skip npm build`).option("-o, --open", `[boolean] open ide`).option("-p, --platform <platform>", `[string] target platform (weapp | h5)`).option("--analyze", `[boolean] \u542F\u52A8\u5206\u5305\u5206\u6790\u4EEA\u8868\u76D8 (\u5B9E\u9A8C\u7279\u6027)`, { default: false }).action(async (root, options) => {
|
|
1850
1894
|
filterDuplicateOptions(options);
|
|
@@ -1852,7 +1896,7 @@ function registerServeCommand(cli2) {
|
|
|
1852
1896
|
const targets = resolveRuntimeTargets(options);
|
|
1853
1897
|
logRuntimeTarget(targets);
|
|
1854
1898
|
const inlineConfig = createInlineConfig(targets.mpPlatform);
|
|
1855
|
-
const ctx = await
|
|
1899
|
+
const ctx = await _chunkAUQJOLJScjs.createCompilerContext.call(void 0, {
|
|
1856
1900
|
cwd: root,
|
|
1857
1901
|
mode: _nullishCoalesce(options.mode, () => ( "development")),
|
|
1858
1902
|
isDev: true,
|
|
@@ -1894,9 +1938,9 @@ function registerServeCommand(cli2) {
|
|
|
1894
1938
|
let webServer;
|
|
1895
1939
|
if (targets.runWeb) {
|
|
1896
1940
|
try {
|
|
1897
|
-
webServer = await _optionalChain([webService, 'optionalAccess',
|
|
1941
|
+
webServer = await _optionalChain([webService, 'optionalAccess', _39 => _39.startDevServer, 'call', _40 => _40()]);
|
|
1898
1942
|
} catch (error) {
|
|
1899
|
-
|
|
1943
|
+
_chunkHKSOVHNEcjs.logger_default.error(error);
|
|
1900
1944
|
throw error;
|
|
1901
1945
|
}
|
|
1902
1946
|
}
|
|
@@ -1917,7 +1961,7 @@ function registerServeCommand(cli2) {
|
|
|
1917
1961
|
// src/cli.ts
|
|
1918
1962
|
var cli = cac("weapp-vite");
|
|
1919
1963
|
try {
|
|
1920
|
-
|
|
1964
|
+
_chunkHKSOVHNEcjs.checkRuntime.call(void 0, {
|
|
1921
1965
|
bun: "0.0.0",
|
|
1922
1966
|
deno: "0.0.0",
|
|
1923
1967
|
node: "20.19.0"
|
|
@@ -1936,5 +1980,5 @@ registerNpmCommand(cli);
|
|
|
1936
1980
|
registerGenerateCommand(cli);
|
|
1937
1981
|
registerCreateCommand(cli);
|
|
1938
1982
|
cli.help();
|
|
1939
|
-
cli.version(
|
|
1983
|
+
cli.version(_chunkHKSOVHNEcjs.VERSION);
|
|
1940
1984
|
cli.parse();
|