@modern-js/server-generator 3.0.8 → 3.0.10
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/README.md +2 -2
- package/dist/index.js +221 -243
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -19,8 +19,8 @@ Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-sta
|
|
|
19
19
|
|
|
20
20
|
## Contributing
|
|
21
21
|
|
|
22
|
-
Please read the [Contributing Guide](https://github.com/
|
|
22
|
+
Please read the [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md).
|
|
23
23
|
|
|
24
24
|
## License
|
|
25
25
|
|
|
26
|
-
Modern.js is [MIT licensed](https://github.com/
|
|
26
|
+
Modern.js is [MIT licensed](https://github.com/web-infra-dev/modern.js/blob/main/LICENSE).
|
package/dist/index.js
CHANGED
|
@@ -34712,7 +34712,7 @@ var require_compiled = __commonJS({
|
|
|
34712
34712
|
semver: () => import_semver.default,
|
|
34713
34713
|
signale: () => import_signale.default,
|
|
34714
34714
|
slash: () => import_slash.default,
|
|
34715
|
-
stripAnsi: () =>
|
|
34715
|
+
stripAnsi: () => import_strip_ansi.default,
|
|
34716
34716
|
upath: () => import_upath.default,
|
|
34717
34717
|
urlJoin: () => import_url_join.default,
|
|
34718
34718
|
yaml: () => import_js_yaml.default
|
|
@@ -34742,7 +34742,7 @@ var require_compiled = __commonJS({
|
|
|
34742
34742
|
var import_fast_glob = __toESM2(require_fast_glob());
|
|
34743
34743
|
var import_filesize = __toESM2(require_filesize());
|
|
34744
34744
|
var import_gzip_size = __toESM2(require_gzip_size());
|
|
34745
|
-
var
|
|
34745
|
+
var import_strip_ansi = __toESM2(require_strip_ansi());
|
|
34746
34746
|
var import_dotenv_expand = __toESM2(require_dotenv_expand());
|
|
34747
34747
|
var import_browserslist = __toESM2(require_browserslist());
|
|
34748
34748
|
var import_recursive_readdir = __toESM2(require_recursive_readdir());
|
|
@@ -35348,9 +35348,9 @@ var require_findExists = __commonJS({
|
|
|
35348
35348
|
}
|
|
35349
35349
|
});
|
|
35350
35350
|
|
|
35351
|
-
// ../../../toolkit/utils/dist/is/
|
|
35352
|
-
var
|
|
35353
|
-
"../../../toolkit/utils/dist/is/
|
|
35351
|
+
// ../../../toolkit/utils/dist/is/nodeEnv.js
|
|
35352
|
+
var require_nodeEnv = __commonJS({
|
|
35353
|
+
"../../../toolkit/utils/dist/is/nodeEnv.js"(exports, module2) {
|
|
35354
35354
|
var __defProp2 = Object.defineProperty;
|
|
35355
35355
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
35356
35356
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -35368,15 +35368,15 @@ var require_node_env = __commonJS({
|
|
|
35368
35368
|
return to;
|
|
35369
35369
|
};
|
|
35370
35370
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
35371
|
-
var
|
|
35372
|
-
__export2(
|
|
35371
|
+
var nodeEnv_exports = {};
|
|
35372
|
+
__export2(nodeEnv_exports, {
|
|
35373
35373
|
getNodeEnv: () => getNodeEnv,
|
|
35374
35374
|
isDev: () => isDev,
|
|
35375
35375
|
isProd: () => isProd,
|
|
35376
35376
|
isProdProfile: () => isProdProfile,
|
|
35377
35377
|
isTest: () => isTest
|
|
35378
35378
|
});
|
|
35379
|
-
module2.exports = __toCommonJS2(
|
|
35379
|
+
module2.exports = __toCommonJS2(nodeEnv_exports);
|
|
35380
35380
|
var getNodeEnv = () => process.env.NODE_ENV || "development";
|
|
35381
35381
|
var isDev = () => getNodeEnv() === "development";
|
|
35382
35382
|
var isProd = () => getNodeEnv() === "production";
|
|
@@ -35512,8 +35512,10 @@ var require_is = __commonJS({
|
|
|
35512
35512
|
isEmpty: () => isEmpty2,
|
|
35513
35513
|
isFastRefresh: () => isFastRefresh,
|
|
35514
35514
|
isRouterV5: () => isRouterV5,
|
|
35515
|
+
isSSGEntry: () => isSSGEntry,
|
|
35515
35516
|
isSSR: () => isSSR,
|
|
35516
35517
|
isServiceWorker: () => isServiceWorker,
|
|
35518
|
+
isSingleEntry: () => isSingleEntry,
|
|
35517
35519
|
isTypescript: () => isTypescript,
|
|
35518
35520
|
isUseSSRBundle: () => isUseSSRBundle
|
|
35519
35521
|
});
|
|
@@ -35521,8 +35523,8 @@ var require_is = __commonJS({
|
|
|
35521
35523
|
var import_fs = __toESM2(require("fs"));
|
|
35522
35524
|
var import_path4 = __toESM2(require("path"));
|
|
35523
35525
|
var import_debug = require_debug2();
|
|
35524
|
-
var
|
|
35525
|
-
__reExport(is_exports,
|
|
35526
|
+
var import_nodeEnv = require_nodeEnv();
|
|
35527
|
+
__reExport(is_exports, require_nodeEnv(), module2.exports);
|
|
35526
35528
|
__reExport(is_exports, require_platform(), module2.exports);
|
|
35527
35529
|
__reExport(is_exports, require_type(), module2.exports);
|
|
35528
35530
|
var debug2 = (0, import_debug.createDebugger)("judge-depExists");
|
|
@@ -35566,11 +35568,17 @@ var require_is = __commonJS({
|
|
|
35566
35568
|
}
|
|
35567
35569
|
return false;
|
|
35568
35570
|
};
|
|
35569
|
-
var isFastRefresh = () => (0,
|
|
35571
|
+
var isFastRefresh = () => (0, import_nodeEnv.isDev)() && process.env.FAST_REFRESH !== "false";
|
|
35570
35572
|
var isRouterV5 = (config) => {
|
|
35571
35573
|
var _a2, _b, _c;
|
|
35572
35574
|
return typeof ((_a2 = config.runtime) == null ? void 0 : _a2.router) !== "boolean" && ((_c = (_b = config == null ? void 0 : config.runtime) == null ? void 0 : _b.router) == null ? void 0 : _c.mode) === "react-router-5";
|
|
35573
35575
|
};
|
|
35576
|
+
var isSSGEntry = (config, entryName, entrypoints) => {
|
|
35577
|
+
const ssgConfig = config.output.ssg;
|
|
35578
|
+
const useSSG = isSingleEntry(entrypoints) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig == null ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig == null ? void 0 : ssgConfig[entryName]);
|
|
35579
|
+
return useSSG;
|
|
35580
|
+
};
|
|
35581
|
+
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
|
35574
35582
|
}
|
|
35575
35583
|
});
|
|
35576
35584
|
|
|
@@ -36473,7 +36481,7 @@ var require_monorepo = __commonJS({
|
|
|
36473
36481
|
});
|
|
36474
36482
|
|
|
36475
36483
|
// ../../../toolkit/utils/dist/nodeEnv.js
|
|
36476
|
-
var
|
|
36484
|
+
var require_nodeEnv2 = __commonJS({
|
|
36477
36485
|
"../../../toolkit/utils/dist/nodeEnv.js"(exports, module2) {
|
|
36478
36486
|
var __defProp2 = Object.defineProperty;
|
|
36479
36487
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -36611,7 +36619,7 @@ var require_getPackageManager = __commonJS({
|
|
|
36611
36619
|
var import_os = __toESM2(require("os"));
|
|
36612
36620
|
var import_path4 = __toESM2(require("path"));
|
|
36613
36621
|
var import_compiled = require_compiled();
|
|
36614
|
-
var import_nodeEnv =
|
|
36622
|
+
var import_nodeEnv = require_nodeEnv2();
|
|
36615
36623
|
var MAX_TIMES = 5;
|
|
36616
36624
|
function getPackageManager2() {
|
|
36617
36625
|
return __async2(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -37022,14 +37030,12 @@ var require_prettyInstructions = __commonJS({
|
|
|
37022
37030
|
__export2(prettyInstructions_exports, {
|
|
37023
37031
|
getAddressUrls: () => getAddressUrls,
|
|
37024
37032
|
getIpv4Interfaces: () => getIpv4Interfaces,
|
|
37025
|
-
isSingleEntry: () => isSingleEntry,
|
|
37026
37033
|
prettyInstructions: () => prettyInstructions
|
|
37027
37034
|
});
|
|
37028
37035
|
module2.exports = __toCommonJS2(prettyInstructions_exports);
|
|
37029
37036
|
var import_os = __toESM2(require("os"));
|
|
37030
37037
|
var import_compiled = require_compiled();
|
|
37031
37038
|
var import_is = require_is();
|
|
37032
|
-
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
|
37033
37039
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
37034
37040
|
var getIpv4Interfaces = () => {
|
|
37035
37041
|
const interfaces = import_os.default.networkInterfaces();
|
|
@@ -37068,7 +37074,7 @@ var require_prettyInstructions = __commonJS({
|
|
|
37068
37074
|
);
|
|
37069
37075
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
37070
37076
|
let message = "App running at:\n\n";
|
|
37071
|
-
if (isSingleEntry(entrypoints) || apiOnly) {
|
|
37077
|
+
if ((0, import_is.isSingleEntry)(entrypoints) || apiOnly) {
|
|
37072
37078
|
message += urls.map(
|
|
37073
37079
|
({ type, url }) => ` ${import_compiled.chalk.bold(`> ${type.padEnd(10)}`)}${import_compiled.chalk.cyanBright(
|
|
37074
37080
|
normalizeUrl(`${url}/${routes[0].urlPath}`)
|
|
@@ -37457,114 +37463,6 @@ var require_getServerConfig = __commonJS({
|
|
|
37457
37463
|
}
|
|
37458
37464
|
});
|
|
37459
37465
|
|
|
37460
|
-
// ../../../toolkit/utils/dist/storage.js
|
|
37461
|
-
var require_storage = __commonJS({
|
|
37462
|
-
"../../../toolkit/utils/dist/storage.js"(exports, module2) {
|
|
37463
|
-
var __create2 = Object.create;
|
|
37464
|
-
var __defProp2 = Object.defineProperty;
|
|
37465
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
37466
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
37467
|
-
var __getProtoOf2 = Object.getPrototypeOf;
|
|
37468
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
37469
|
-
var __export2 = (target, all) => {
|
|
37470
|
-
for (var name in all)
|
|
37471
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
37472
|
-
};
|
|
37473
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
37474
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
37475
|
-
for (let key of __getOwnPropNames2(from))
|
|
37476
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
37477
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
37478
|
-
}
|
|
37479
|
-
return to;
|
|
37480
|
-
};
|
|
37481
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
37482
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
37483
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
37484
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
37485
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37486
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
37487
|
-
mod
|
|
37488
|
-
));
|
|
37489
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
37490
|
-
var storage_exports = {};
|
|
37491
|
-
__export2(storage_exports, {
|
|
37492
|
-
createStorage: () => createStorage
|
|
37493
|
-
});
|
|
37494
|
-
module2.exports = __toCommonJS2(storage_exports);
|
|
37495
|
-
var ah = __toESM2(require("async_hooks"));
|
|
37496
|
-
var createStorage = () => {
|
|
37497
|
-
let storage;
|
|
37498
|
-
if (typeof ah.AsyncLocalStorage !== "undefined") {
|
|
37499
|
-
storage = new ah.AsyncLocalStorage();
|
|
37500
|
-
}
|
|
37501
|
-
const run = (context, cb) => {
|
|
37502
|
-
if (!storage) {
|
|
37503
|
-
throw new Error(`Unable to use async_hook, please confirm the node version >= 12.17
|
|
37504
|
-
`);
|
|
37505
|
-
}
|
|
37506
|
-
return new Promise((resolve, reject) => {
|
|
37507
|
-
storage.run(context, () => {
|
|
37508
|
-
try {
|
|
37509
|
-
return resolve(cb());
|
|
37510
|
-
} catch (error) {
|
|
37511
|
-
return reject(error);
|
|
37512
|
-
}
|
|
37513
|
-
});
|
|
37514
|
-
});
|
|
37515
|
-
};
|
|
37516
|
-
const useContext = () => {
|
|
37517
|
-
if (!storage) {
|
|
37518
|
-
throw new Error(`Unable to use async_hook, please confirm the node version >= 12.17
|
|
37519
|
-
`);
|
|
37520
|
-
}
|
|
37521
|
-
const context = storage.getStore();
|
|
37522
|
-
if (!context) {
|
|
37523
|
-
throw new Error(
|
|
37524
|
-
`Can't call useContext out of scope, make sure @modern-js/utils is a single version in node_modules`
|
|
37525
|
-
);
|
|
37526
|
-
}
|
|
37527
|
-
return context;
|
|
37528
|
-
};
|
|
37529
|
-
return {
|
|
37530
|
-
run,
|
|
37531
|
-
useContext
|
|
37532
|
-
};
|
|
37533
|
-
};
|
|
37534
|
-
}
|
|
37535
|
-
});
|
|
37536
|
-
|
|
37537
|
-
// ../../../toolkit/utils/dist/ssr.js
|
|
37538
|
-
var require_ssr = __commonJS({
|
|
37539
|
-
"../../../toolkit/utils/dist/ssr.js"(exports, module2) {
|
|
37540
|
-
var __defProp2 = Object.defineProperty;
|
|
37541
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
37542
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
37543
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
37544
|
-
var __export2 = (target, all) => {
|
|
37545
|
-
for (var name in all)
|
|
37546
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
37547
|
-
};
|
|
37548
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
37549
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
37550
|
-
for (let key of __getOwnPropNames2(from))
|
|
37551
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
37552
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
37553
|
-
}
|
|
37554
|
-
return to;
|
|
37555
|
-
};
|
|
37556
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
37557
|
-
var ssr_exports = {};
|
|
37558
|
-
__export2(ssr_exports, {
|
|
37559
|
-
run: () => run,
|
|
37560
|
-
useHeaders: () => useHeaders
|
|
37561
|
-
});
|
|
37562
|
-
module2.exports = __toCommonJS2(ssr_exports);
|
|
37563
|
-
var import_storage = require_storage();
|
|
37564
|
-
var { run, useContext: useHeaders } = (0, import_storage.createStorage)();
|
|
37565
|
-
}
|
|
37566
|
-
});
|
|
37567
|
-
|
|
37568
37466
|
// ../../../toolkit/utils/dist/tryResolve.js
|
|
37569
37467
|
var require_tryResolve = __commonJS({
|
|
37570
37468
|
"../../../toolkit/utils/dist/tryResolve.js"(exports, module2) {
|
|
@@ -37668,7 +37566,8 @@ var require_analyzeProject = __commonJS({
|
|
|
37668
37566
|
};
|
|
37669
37567
|
var analyzeProject_exports = {};
|
|
37670
37568
|
__export2(analyzeProject_exports, {
|
|
37671
|
-
isApiOnly: () => isApiOnly
|
|
37569
|
+
isApiOnly: () => isApiOnly,
|
|
37570
|
+
isWebOnly: () => isWebOnly
|
|
37672
37571
|
});
|
|
37673
37572
|
module2.exports = __toCommonJS2(analyzeProject_exports);
|
|
37674
37573
|
var path3 = __toESM2(require("path"));
|
|
@@ -37679,6 +37578,10 @@ var require_analyzeProject = __commonJS({
|
|
|
37679
37578
|
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
37680
37579
|
return !existSrc || Boolean(options["api-only"]);
|
|
37681
37580
|
});
|
|
37581
|
+
var isWebOnly = () => __async2(void 0, null, function* () {
|
|
37582
|
+
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
37583
|
+
return Boolean(options["web-only"]);
|
|
37584
|
+
});
|
|
37682
37585
|
}
|
|
37683
37586
|
});
|
|
37684
37587
|
|
|
@@ -38097,9 +38000,9 @@ var require_routes = __commonJS({
|
|
|
38097
38000
|
}
|
|
38098
38001
|
});
|
|
38099
38002
|
|
|
38100
|
-
// ../../../toolkit/utils/dist/
|
|
38101
|
-
var
|
|
38102
|
-
"../../../toolkit/utils/dist/
|
|
38003
|
+
// ../../../toolkit/utils/dist/testUtils.js
|
|
38004
|
+
var require_testUtils = __commonJS({
|
|
38005
|
+
"../../../toolkit/utils/dist/testUtils.js"(exports, module2) {
|
|
38103
38006
|
var __defProp2 = Object.defineProperty;
|
|
38104
38007
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
38105
38008
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -38117,11 +38020,11 @@ var require_test_utils = __commonJS({
|
|
|
38117
38020
|
return to;
|
|
38118
38021
|
};
|
|
38119
38022
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
38120
|
-
var
|
|
38121
|
-
__export2(
|
|
38023
|
+
var testUtils_exports = {};
|
|
38024
|
+
__export2(testUtils_exports, {
|
|
38122
38025
|
initSnapshotSerializer: () => initSnapshotSerializer
|
|
38123
38026
|
});
|
|
38124
|
-
module2.exports = __toCommonJS2(
|
|
38027
|
+
module2.exports = __toCommonJS2(testUtils_exports);
|
|
38125
38028
|
var initSnapshotSerializer = (root) => {
|
|
38126
38029
|
expect.addSnapshotSerializer({
|
|
38127
38030
|
test: (val) => typeof val === "string" && (val.includes("modern.js") || val.includes("node_modules") || val.includes(root)),
|
|
@@ -38251,6 +38154,49 @@ var require_react = __commonJS({
|
|
|
38251
38154
|
}
|
|
38252
38155
|
});
|
|
38253
38156
|
|
|
38157
|
+
// ../../../toolkit/utils/dist/getTargetDir.js
|
|
38158
|
+
var require_getTargetDir = __commonJS({
|
|
38159
|
+
"../../../toolkit/utils/dist/getTargetDir.js"(exports, module2) {
|
|
38160
|
+
var __create2 = Object.create;
|
|
38161
|
+
var __defProp2 = Object.defineProperty;
|
|
38162
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
38163
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
38164
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
38165
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
38166
|
+
var __export2 = (target, all) => {
|
|
38167
|
+
for (var name in all)
|
|
38168
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
38169
|
+
};
|
|
38170
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
38171
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
38172
|
+
for (let key of __getOwnPropNames2(from))
|
|
38173
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
38174
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
38175
|
+
}
|
|
38176
|
+
return to;
|
|
38177
|
+
};
|
|
38178
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
38179
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
38180
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
38181
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
38182
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
38183
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
38184
|
+
mod
|
|
38185
|
+
));
|
|
38186
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
38187
|
+
var getTargetDir_exports = {};
|
|
38188
|
+
__export2(getTargetDir_exports, {
|
|
38189
|
+
getTargetDir: () => getTargetDir
|
|
38190
|
+
});
|
|
38191
|
+
module2.exports = __toCommonJS2(getTargetDir_exports);
|
|
38192
|
+
var path3 = __toESM2(require("path"));
|
|
38193
|
+
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
|
38194
|
+
const relativePath = path3.relative(baseDir, from);
|
|
38195
|
+
return path3.resolve(targetBaseDir, relativePath);
|
|
38196
|
+
};
|
|
38197
|
+
}
|
|
38198
|
+
});
|
|
38199
|
+
|
|
38254
38200
|
// ../../../toolkit/utils/dist/index.js
|
|
38255
38201
|
var require_dist = __commonJS({
|
|
38256
38202
|
"../../../toolkit/utils/dist/index.js"(exports, module2) {
|
|
@@ -38300,20 +38246,20 @@ var require_dist = __commonJS({
|
|
|
38300
38246
|
__reExport(src_exports2, require_alias(), module2.exports);
|
|
38301
38247
|
__reExport(src_exports2, require_import(), module2.exports);
|
|
38302
38248
|
__reExport(src_exports2, require_watch(), module2.exports);
|
|
38303
|
-
__reExport(src_exports2,
|
|
38249
|
+
__reExport(src_exports2, require_nodeEnv2(), module2.exports);
|
|
38304
38250
|
__reExport(src_exports2, require_wait(), module2.exports);
|
|
38305
38251
|
__reExport(src_exports2, require_emptyDir(), module2.exports);
|
|
38306
38252
|
__reExport(src_exports2, require_getServerConfig(), module2.exports);
|
|
38307
|
-
__reExport(src_exports2, require_ssr(), module2.exports);
|
|
38308
38253
|
__reExport(src_exports2, require_tryResolve(), module2.exports);
|
|
38309
38254
|
__reExport(src_exports2, require_analyzeProject(), module2.exports);
|
|
38310
38255
|
__reExport(src_exports2, require_chainId(), module2.exports);
|
|
38311
38256
|
__reExport(src_exports2, require_version(), module2.exports);
|
|
38312
38257
|
__reExport(src_exports2, require_plugin(), module2.exports);
|
|
38313
38258
|
__reExport(src_exports2, require_routes(), module2.exports);
|
|
38314
|
-
__reExport(src_exports2,
|
|
38259
|
+
__reExport(src_exports2, require_testUtils(), module2.exports);
|
|
38315
38260
|
__reExport(src_exports2, require_getCoreJsVersion(), module2.exports);
|
|
38316
38261
|
__reExport(src_exports2, require_react(), module2.exports);
|
|
38262
|
+
__reExport(src_exports2, require_getTargetDir(), module2.exports);
|
|
38317
38263
|
}
|
|
38318
38264
|
});
|
|
38319
38265
|
|
|
@@ -67701,7 +67647,7 @@ var require_findExists2 = __commonJS({
|
|
|
67701
67647
|
});
|
|
67702
67648
|
|
|
67703
67649
|
// ../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/is/node-env.js
|
|
67704
|
-
var
|
|
67650
|
+
var require_node_env = __commonJS({
|
|
67705
67651
|
"../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/is/node-env.js"(exports) {
|
|
67706
67652
|
"use strict";
|
|
67707
67653
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -67802,7 +67748,7 @@ var require_is2 = __commonJS({
|
|
|
67802
67748
|
exports.isFastRefresh = exports.isUseSSRBundle = exports.isSSR = exports.isEmpty = exports.isTypescript = exports.isDepExists = void 0;
|
|
67803
67749
|
var fs_1 = __importDefault(require("fs"));
|
|
67804
67750
|
var path_1 = __importDefault(require("path"));
|
|
67805
|
-
var node_env_1 =
|
|
67751
|
+
var node_env_1 = require_node_env();
|
|
67806
67752
|
var isDepExists = (appDirectory, name) => {
|
|
67807
67753
|
const json = require(path_1.default.resolve(appDirectory, "./package.json"));
|
|
67808
67754
|
const { dependencies = {}, devDependencies = {} } = json;
|
|
@@ -67838,7 +67784,7 @@ var require_is2 = __commonJS({
|
|
|
67838
67784
|
exports.isUseSSRBundle = isUseSSRBundle;
|
|
67839
67785
|
var isFastRefresh = () => (0, node_env_1.isDev)() && process.env.FAST_REFRESH !== "false";
|
|
67840
67786
|
exports.isFastRefresh = isFastRefresh;
|
|
67841
|
-
__exportStar(
|
|
67787
|
+
__exportStar(require_node_env(), exports);
|
|
67842
67788
|
__exportStar(require_platform2(), exports);
|
|
67843
67789
|
__exportStar(require_type2(), exports);
|
|
67844
67790
|
}
|
|
@@ -68368,7 +68314,7 @@ var require_monorepo2 = __commonJS({
|
|
|
68368
68314
|
});
|
|
68369
68315
|
|
|
68370
68316
|
// ../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/nodeEnv.js
|
|
68371
|
-
var
|
|
68317
|
+
var require_nodeEnv3 = __commonJS({
|
|
68372
68318
|
"../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/nodeEnv.js"(exports) {
|
|
68373
68319
|
"use strict";
|
|
68374
68320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -68422,7 +68368,7 @@ var require_getPackageManager2 = __commonJS({
|
|
|
68422
68368
|
var os_1 = __importDefault(require("os"));
|
|
68423
68369
|
var path_1 = __importDefault(require("path"));
|
|
68424
68370
|
var compiled_1 = require_compiled2();
|
|
68425
|
-
var nodeEnv_1 =
|
|
68371
|
+
var nodeEnv_1 = require_nodeEnv3();
|
|
68426
68372
|
var MAX_TIMES = 5;
|
|
68427
68373
|
function getPackageManager2() {
|
|
68428
68374
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -68889,7 +68835,7 @@ var require_getServerConfig2 = __commonJS({
|
|
|
68889
68835
|
});
|
|
68890
68836
|
|
|
68891
68837
|
// ../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/storage.js
|
|
68892
|
-
var
|
|
68838
|
+
var require_storage = __commonJS({
|
|
68893
68839
|
"../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/storage.js"(exports) {
|
|
68894
68840
|
"use strict";
|
|
68895
68841
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -68968,12 +68914,12 @@ var require_storage2 = __commonJS({
|
|
|
68968
68914
|
});
|
|
68969
68915
|
|
|
68970
68916
|
// ../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/ssr.js
|
|
68971
|
-
var
|
|
68917
|
+
var require_ssr = __commonJS({
|
|
68972
68918
|
"../../../../node_modules/.pnpm/@modern-js+utils@1.21.5/node_modules/@modern-js/utils/dist/ssr.js"(exports) {
|
|
68973
68919
|
"use strict";
|
|
68974
68920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68975
68921
|
exports.useHeaders = exports.run = void 0;
|
|
68976
|
-
var storage_1 =
|
|
68922
|
+
var storage_1 = require_storage();
|
|
68977
68923
|
var { run, useContext: useHeaders } = (0, storage_1.createStorage)();
|
|
68978
68924
|
exports.run = run;
|
|
68979
68925
|
exports.useHeaders = useHeaders;
|
|
@@ -69319,11 +69265,11 @@ var require_dist2 = __commonJS({
|
|
|
69319
69265
|
__exportStar(require_alias2(), exports);
|
|
69320
69266
|
__exportStar(require_import2(), exports);
|
|
69321
69267
|
__exportStar(require_watch2(), exports);
|
|
69322
|
-
__exportStar(
|
|
69268
|
+
__exportStar(require_nodeEnv3(), exports);
|
|
69323
69269
|
__exportStar(require_wait2(), exports);
|
|
69324
69270
|
__exportStar(require_emptyDir2(), exports);
|
|
69325
69271
|
__exportStar(require_getServerConfig2(), exports);
|
|
69326
|
-
__exportStar(
|
|
69272
|
+
__exportStar(require_ssr(), exports);
|
|
69327
69273
|
__exportStar(require_tryResolve2(), exports);
|
|
69328
69274
|
__exportStar(require_analyzeProject2(), exports);
|
|
69329
69275
|
__exportStar(require_chainId2(), exports);
|
|
@@ -77226,9 +77172,9 @@ var require_src2 = __commonJS({
|
|
|
77226
77172
|
}
|
|
77227
77173
|
});
|
|
77228
77174
|
|
|
77229
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77175
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
|
|
77230
77176
|
var require_env = __commonJS({
|
|
77231
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77177
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
|
|
77232
77178
|
"use strict";
|
|
77233
77179
|
Object.defineProperty(exports, "__esModule", {
|
|
77234
77180
|
value: true
|
|
@@ -77290,9 +77236,9 @@ var require_env = __commonJS({
|
|
|
77290
77236
|
}
|
|
77291
77237
|
});
|
|
77292
77238
|
|
|
77293
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
|
|
77294
77240
|
var require_install = __commonJS({
|
|
77295
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77241
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
|
|
77296
77242
|
"use strict";
|
|
77297
77243
|
Object.defineProperty(exports, "__esModule", {
|
|
77298
77244
|
value: true
|
|
@@ -77444,9 +77390,9 @@ var require_install = __commonJS({
|
|
|
77444
77390
|
}
|
|
77445
77391
|
});
|
|
77446
77392
|
|
|
77447
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77393
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
|
|
77448
77394
|
var require_utils = __commonJS({
|
|
77449
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77395
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
|
|
77450
77396
|
"use strict";
|
|
77451
77397
|
Object.defineProperty(exports, "__esModule", {
|
|
77452
77398
|
value: true
|
|
@@ -77510,9 +77456,9 @@ var require_utils = __commonJS({
|
|
|
77510
77456
|
}
|
|
77511
77457
|
});
|
|
77512
77458
|
|
|
77513
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77459
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
|
|
77514
77460
|
var require_node = __commonJS({
|
|
77515
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
77461
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
|
|
77516
77462
|
"use strict";
|
|
77517
77463
|
Object.defineProperty(exports, "__esModule", {
|
|
77518
77464
|
value: true
|
|
@@ -77587,9 +77533,9 @@ var require_node = __commonJS({
|
|
|
77587
77533
|
}
|
|
77588
77534
|
});
|
|
77589
77535
|
|
|
77590
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77536
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
|
|
77591
77537
|
var require_utils2 = __commonJS({
|
|
77592
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77538
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
|
|
77593
77539
|
"use strict";
|
|
77594
77540
|
Object.defineProperty(exports, "__esModule", {
|
|
77595
77541
|
value: true
|
|
@@ -77664,9 +77610,9 @@ var require_utils2 = __commonJS({
|
|
|
77664
77610
|
}
|
|
77665
77611
|
});
|
|
77666
77612
|
|
|
77667
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77613
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
|
|
77668
77614
|
var require_node2 = __commonJS({
|
|
77669
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
77615
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
|
|
77670
77616
|
"use strict";
|
|
77671
77617
|
Object.defineProperty(exports, "__esModule", {
|
|
77672
77618
|
value: true
|
|
@@ -77745,9 +77691,9 @@ var require_node2 = __commonJS({
|
|
|
77745
77691
|
}
|
|
77746
77692
|
});
|
|
77747
77693
|
|
|
77748
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77694
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
|
|
77749
77695
|
var require_constants3 = __commonJS({
|
|
77750
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77696
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
|
|
77751
77697
|
"use strict";
|
|
77752
77698
|
Object.defineProperty(exports, "__esModule", {
|
|
77753
77699
|
value: true
|
|
@@ -77768,9 +77714,9 @@ var require_constants3 = __commonJS({
|
|
|
77768
77714
|
}
|
|
77769
77715
|
});
|
|
77770
77716
|
|
|
77771
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77717
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
|
|
77772
77718
|
var require_logger3 = __commonJS({
|
|
77773
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77719
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
|
|
77774
77720
|
"use strict";
|
|
77775
77721
|
Object.defineProperty(exports, "__esModule", {
|
|
77776
77722
|
value: true
|
|
@@ -77838,9 +77784,9 @@ var require_logger3 = __commonJS({
|
|
|
77838
77784
|
}
|
|
77839
77785
|
});
|
|
77840
77786
|
|
|
77841
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77787
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
|
|
77842
77788
|
var require_constants4 = __commonJS({
|
|
77843
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77789
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
|
|
77844
77790
|
"use strict";
|
|
77845
77791
|
Object.defineProperty(exports, "__esModule", {
|
|
77846
77792
|
value: true
|
|
@@ -77851,9 +77797,9 @@ var require_constants4 = __commonJS({
|
|
|
77851
77797
|
}
|
|
77852
77798
|
});
|
|
77853
77799
|
|
|
77854
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77800
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
|
|
77855
77801
|
var require_FsResource = __commonJS({
|
|
77856
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77802
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
|
|
77857
77803
|
"use strict";
|
|
77858
77804
|
Object.defineProperty(exports, "__esModule", {
|
|
77859
77805
|
value: true
|
|
@@ -77904,9 +77850,9 @@ var require_FsResource = __commonJS({
|
|
|
77904
77850
|
}
|
|
77905
77851
|
});
|
|
77906
77852
|
|
|
77907
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77853
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
|
|
77908
77854
|
var require_FsMaterial = __commonJS({
|
|
77909
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77855
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
|
|
77910
77856
|
"use strict";
|
|
77911
77857
|
Object.defineProperty(exports, "__esModule", {
|
|
77912
77858
|
value: true
|
|
@@ -77958,9 +77904,9 @@ var require_FsMaterial = __commonJS({
|
|
|
77958
77904
|
}
|
|
77959
77905
|
});
|
|
77960
77906
|
|
|
77961
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77907
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
|
|
77962
77908
|
var require_nodeRequire = __commonJS({
|
|
77963
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77909
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
|
|
77964
77910
|
"use strict";
|
|
77965
77911
|
Object.defineProperty(exports, "__esModule", {
|
|
77966
77912
|
value: true
|
|
@@ -77985,9 +77931,9 @@ var require_nodeRequire = __commonJS({
|
|
|
77985
77931
|
}
|
|
77986
77932
|
});
|
|
77987
77933
|
|
|
77988
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77934
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
|
|
77989
77935
|
var require_fsExists = __commonJS({
|
|
77990
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77936
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
|
|
77991
77937
|
"use strict";
|
|
77992
77938
|
Object.defineProperty(exports, "__esModule", {
|
|
77993
77939
|
value: true
|
|
@@ -78007,9 +77953,9 @@ var require_fsExists = __commonJS({
|
|
|
78007
77953
|
}
|
|
78008
77954
|
});
|
|
78009
77955
|
|
|
78010
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77956
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
|
|
78011
77957
|
var require_getGeneratorDir = __commonJS({
|
|
78012
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77958
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
|
|
78013
77959
|
"use strict";
|
|
78014
77960
|
Object.defineProperty(exports, "__esModule", {
|
|
78015
77961
|
value: true
|
|
@@ -78043,9 +77989,9 @@ var require_getGeneratorDir = __commonJS({
|
|
|
78043
77989
|
}
|
|
78044
77990
|
});
|
|
78045
77991
|
|
|
78046
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77992
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
|
|
78047
77993
|
var require_generator = __commonJS({
|
|
78048
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77994
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
|
|
78049
77995
|
"use strict";
|
|
78050
77996
|
Object.defineProperty(exports, "__esModule", {
|
|
78051
77997
|
value: true
|
|
@@ -78293,9 +78239,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
78293
78239
|
}
|
|
78294
78240
|
});
|
|
78295
78241
|
|
|
78296
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78242
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
|
|
78297
78243
|
var require_packageManager = __commonJS({
|
|
78298
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78244
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
|
|
78299
78245
|
"use strict";
|
|
78300
78246
|
Object.defineProperty(exports, "__esModule", {
|
|
78301
78247
|
value: true
|
|
@@ -78373,9 +78319,9 @@ var require_packageManager = __commonJS({
|
|
|
78373
78319
|
}
|
|
78374
78320
|
});
|
|
78375
78321
|
|
|
78376
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78322
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
|
|
78377
78323
|
var require_timeoutPromise = __commonJS({
|
|
78378
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78324
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
|
|
78379
78325
|
"use strict";
|
|
78380
78326
|
Object.defineProperty(exports, "__esModule", {
|
|
78381
78327
|
value: true
|
|
@@ -86201,9 +86147,9 @@ var require_tar = __commonJS({
|
|
|
86201
86147
|
}
|
|
86202
86148
|
});
|
|
86203
86149
|
|
|
86204
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86150
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js
|
|
86205
86151
|
var require_constants6 = __commonJS({
|
|
86206
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86152
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
|
|
86207
86153
|
"use strict";
|
|
86208
86154
|
Object.defineProperty(exports, "__esModule", {
|
|
86209
86155
|
value: true
|
|
@@ -86216,9 +86162,9 @@ var require_constants6 = __commonJS({
|
|
|
86216
86162
|
}
|
|
86217
86163
|
});
|
|
86218
86164
|
|
|
86219
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86165
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
|
|
86220
86166
|
var require_getNpmTarballUrl = __commonJS({
|
|
86221
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86167
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
|
|
86222
86168
|
"use strict";
|
|
86223
86169
|
Object.defineProperty(exports, "__esModule", {
|
|
86224
86170
|
value: true
|
|
@@ -86252,9 +86198,9 @@ var require_getNpmTarballUrl = __commonJS({
|
|
|
86252
86198
|
}
|
|
86253
86199
|
});
|
|
86254
86200
|
|
|
86255
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86201
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
|
|
86256
86202
|
var require_getNpmVersion = __commonJS({
|
|
86257
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86203
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
|
|
86258
86204
|
"use strict";
|
|
86259
86205
|
Object.defineProperty(exports, "__esModule", {
|
|
86260
86206
|
value: true
|
|
@@ -86290,9 +86236,9 @@ var require_getNpmVersion = __commonJS({
|
|
|
86290
86236
|
}
|
|
86291
86237
|
});
|
|
86292
86238
|
|
|
86293
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
|
|
86294
86240
|
var require_downloadPackage = __commonJS({
|
|
86295
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86241
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
|
|
86296
86242
|
"use strict";
|
|
86297
86243
|
Object.defineProperty(exports, "__esModule", {
|
|
86298
86244
|
value: true
|
|
@@ -86394,9 +86340,9 @@ var require_downloadPackage = __commonJS({
|
|
|
86394
86340
|
}
|
|
86395
86341
|
});
|
|
86396
86342
|
|
|
86397
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86343
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
|
|
86398
86344
|
var require_getPackageInfo = __commonJS({
|
|
86399
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86345
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
|
|
86400
86346
|
"use strict";
|
|
86401
86347
|
Object.defineProperty(exports, "__esModule", {
|
|
86402
86348
|
value: true
|
|
@@ -86428,9 +86374,9 @@ var require_getPackageInfo = __commonJS({
|
|
|
86428
86374
|
}
|
|
86429
86375
|
});
|
|
86430
86376
|
|
|
86431
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86377
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
|
|
86432
86378
|
var require_utils4 = __commonJS({
|
|
86433
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86379
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
|
|
86434
86380
|
"use strict";
|
|
86435
86381
|
Object.defineProperty(exports, "__esModule", {
|
|
86436
86382
|
value: true
|
|
@@ -86506,9 +86452,9 @@ var require_utils4 = __commonJS({
|
|
|
86506
86452
|
}
|
|
86507
86453
|
});
|
|
86508
86454
|
|
|
86509
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86455
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
|
|
86510
86456
|
var require_materials = __commonJS({
|
|
86511
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86457
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
|
|
86512
86458
|
"use strict";
|
|
86513
86459
|
Object.defineProperty(exports, "__esModule", {
|
|
86514
86460
|
value: true
|
|
@@ -86566,9 +86512,9 @@ var require_materials = __commonJS({
|
|
|
86566
86512
|
}
|
|
86567
86513
|
});
|
|
86568
86514
|
|
|
86569
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86515
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
|
|
86570
86516
|
var require_codesmith = __commonJS({
|
|
86571
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86517
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
|
|
86572
86518
|
"use strict";
|
|
86573
86519
|
Object.defineProperty(exports, "__esModule", {
|
|
86574
86520
|
value: true
|
|
@@ -86644,9 +86590,9 @@ var require_codesmith = __commonJS({
|
|
|
86644
86590
|
}
|
|
86645
86591
|
});
|
|
86646
86592
|
|
|
86647
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86593
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js
|
|
86648
86594
|
var require_node3 = __commonJS({
|
|
86649
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
86595
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
|
|
86650
86596
|
"use strict";
|
|
86651
86597
|
Object.defineProperty(exports, "__esModule", {
|
|
86652
86598
|
value: true
|
|
@@ -92600,9 +92546,9 @@ var require_lib = __commonJS({
|
|
|
92600
92546
|
}
|
|
92601
92547
|
});
|
|
92602
92548
|
|
|
92603
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92549
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
|
|
92604
92550
|
var require_renderString = __commonJS({
|
|
92605
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92551
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
|
|
92606
92552
|
"use strict";
|
|
92607
92553
|
Object.defineProperty(exports, "__esModule", {
|
|
92608
92554
|
value: true
|
|
@@ -92651,9 +92597,9 @@ var require_renderString = __commonJS({
|
|
|
92651
92597
|
}
|
|
92652
92598
|
});
|
|
92653
92599
|
|
|
92654
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92600
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
|
|
92655
92601
|
var require_utils6 = __commonJS({
|
|
92656
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92602
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
|
|
92657
92603
|
"use strict";
|
|
92658
92604
|
Object.defineProperty(exports, "__esModule", {
|
|
92659
92605
|
value: true
|
|
@@ -92668,9 +92614,9 @@ var require_utils6 = __commonJS({
|
|
|
92668
92614
|
}
|
|
92669
92615
|
});
|
|
92670
92616
|
|
|
92671
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92617
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
|
|
92672
92618
|
var require_node4 = __commonJS({
|
|
92673
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
92619
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
|
|
92674
92620
|
"use strict";
|
|
92675
92621
|
Object.defineProperty(exports, "__esModule", {
|
|
92676
92622
|
value: true
|
|
@@ -92684,6 +92630,27 @@ var require_node4 = __commonJS({
|
|
|
92684
92630
|
});
|
|
92685
92631
|
var _codesmith = require_node3();
|
|
92686
92632
|
var _utils = require_utils6();
|
|
92633
|
+
function ownKeys(object, enumerableOnly) {
|
|
92634
|
+
var keys = Object.keys(object);
|
|
92635
|
+
if (Object.getOwnPropertySymbols) {
|
|
92636
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
92637
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
92638
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
92639
|
+
})), keys.push.apply(keys, symbols);
|
|
92640
|
+
}
|
|
92641
|
+
return keys;
|
|
92642
|
+
}
|
|
92643
|
+
function _objectSpread(target) {
|
|
92644
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
92645
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
92646
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
92647
|
+
_defineProperty(target, key, source[key]);
|
|
92648
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
92649
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
92650
|
+
});
|
|
92651
|
+
}
|
|
92652
|
+
return target;
|
|
92653
|
+
}
|
|
92687
92654
|
function _defineProperty(obj, key, value) {
|
|
92688
92655
|
if (key in obj) {
|
|
92689
92656
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
@@ -92702,6 +92669,16 @@ var require_node4 = __commonJS({
|
|
|
92702
92669
|
partials: {}
|
|
92703
92670
|
};
|
|
92704
92671
|
}
|
|
92672
|
+
registerHelp(helpers) {
|
|
92673
|
+
return __async(this, null, function* () {
|
|
92674
|
+
this.registers.helpers = _objectSpread(_objectSpread({}, this.registers.helpers), helpers);
|
|
92675
|
+
});
|
|
92676
|
+
}
|
|
92677
|
+
registerPartials(partials) {
|
|
92678
|
+
return __async(this, null, function* () {
|
|
92679
|
+
this.registers.partials = _objectSpread(_objectSpread({}, this.registers.partials), partials);
|
|
92680
|
+
});
|
|
92681
|
+
}
|
|
92705
92682
|
renderTemplate(_0, _1) {
|
|
92706
92683
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
|
92707
92684
|
if (templateResource._type !== _codesmith.FS_RESOURCE) {
|
|
@@ -93443,9 +93420,9 @@ var require_ejs = __commonJS({
|
|
|
93443
93420
|
}
|
|
93444
93421
|
});
|
|
93445
93422
|
|
|
93446
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93423
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
|
|
93447
93424
|
var require_renderString2 = __commonJS({
|
|
93448
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93425
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
|
|
93449
93426
|
"use strict";
|
|
93450
93427
|
Object.defineProperty(exports, "__esModule", {
|
|
93451
93428
|
value: true
|
|
@@ -93461,9 +93438,9 @@ var require_renderString2 = __commonJS({
|
|
|
93461
93438
|
}
|
|
93462
93439
|
});
|
|
93463
93440
|
|
|
93464
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93441
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
|
|
93465
93442
|
var require_utils8 = __commonJS({
|
|
93466
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93443
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
|
|
93467
93444
|
"use strict";
|
|
93468
93445
|
Object.defineProperty(exports, "__esModule", {
|
|
93469
93446
|
value: true
|
|
@@ -93478,9 +93455,9 @@ var require_utils8 = __commonJS({
|
|
|
93478
93455
|
}
|
|
93479
93456
|
});
|
|
93480
93457
|
|
|
93481
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93458
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
|
|
93482
93459
|
var require_node5 = __commonJS({
|
|
93483
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
93460
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
|
|
93484
93461
|
"use strict";
|
|
93485
93462
|
Object.defineProperty(exports, "__esModule", {
|
|
93486
93463
|
value: true
|
|
@@ -93538,9 +93515,9 @@ var require_node5 = __commonJS({
|
|
|
93538
93515
|
}
|
|
93539
93516
|
});
|
|
93540
93517
|
|
|
93541
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93518
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
|
|
93542
93519
|
var require_constant = __commonJS({
|
|
93543
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93520
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
|
|
93544
93521
|
"use strict";
|
|
93545
93522
|
Object.defineProperty(exports, "__esModule", {
|
|
93546
93523
|
value: true
|
|
@@ -93551,9 +93528,9 @@ var require_constant = __commonJS({
|
|
|
93551
93528
|
}
|
|
93552
93529
|
});
|
|
93553
93530
|
|
|
93554
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93531
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
|
|
93555
93532
|
var require_node6 = __commonJS({
|
|
93556
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
93533
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
|
|
93557
93534
|
"use strict";
|
|
93558
93535
|
Object.defineProperty(exports, "__esModule", {
|
|
93559
93536
|
value: true
|
|
@@ -134912,9 +134889,9 @@ var require_inquirer = __commonJS({
|
|
|
134912
134889
|
}
|
|
134913
134890
|
});
|
|
134914
134891
|
|
|
134915
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
134892
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
|
|
134916
134893
|
var require_transform = __commonJS({
|
|
134917
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
134894
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
|
|
134918
134895
|
"use strict";
|
|
134919
134896
|
Object.defineProperty(exports, "__esModule", {
|
|
134920
134897
|
value: true
|
|
@@ -135083,9 +135060,9 @@ var require_transform = __commonJS({
|
|
|
135083
135060
|
}
|
|
135084
135061
|
});
|
|
135085
135062
|
|
|
135086
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135063
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
|
|
135087
135064
|
var require_prompt2 = __commonJS({
|
|
135088
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135065
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
|
|
135089
135066
|
"use strict";
|
|
135090
135067
|
Object.defineProperty(exports, "__esModule", {
|
|
135091
135068
|
value: true
|
|
@@ -135223,9 +135200,9 @@ var require_prompt2 = __commonJS({
|
|
|
135223
135200
|
}
|
|
135224
135201
|
});
|
|
135225
135202
|
|
|
135226
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135203
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
|
|
135227
135204
|
var require_inquirer2 = __commonJS({
|
|
135228
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135205
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
|
|
135229
135206
|
"use strict";
|
|
135230
135207
|
Object.defineProperty(exports, "__esModule", {
|
|
135231
135208
|
value: true
|
|
@@ -135297,9 +135274,9 @@ var require_inquirer2 = __commonJS({
|
|
|
135297
135274
|
}
|
|
135298
135275
|
});
|
|
135299
135276
|
|
|
135300
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135277
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
|
|
135301
135278
|
var require_node7 = __commonJS({
|
|
135302
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
135279
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
|
|
135303
135280
|
"use strict";
|
|
135304
135281
|
Object.defineProperty(exports, "__esModule", {
|
|
135305
135282
|
value: true
|
|
@@ -138112,9 +138089,9 @@ var require_node8 = __commonJS({
|
|
|
138112
138089
|
}
|
|
138113
138090
|
});
|
|
138114
138091
|
|
|
138115
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138092
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
|
|
138116
138093
|
var require_zh = __commonJS({
|
|
138117
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138094
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
|
|
138118
138095
|
"use strict";
|
|
138119
138096
|
Object.defineProperty(exports, "__esModule", {
|
|
138120
138097
|
value: true
|
|
@@ -138149,9 +138126,9 @@ var require_zh = __commonJS({
|
|
|
138149
138126
|
}
|
|
138150
138127
|
});
|
|
138151
138128
|
|
|
138152
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138129
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
|
|
138153
138130
|
var require_en = __commonJS({
|
|
138154
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138131
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
|
|
138155
138132
|
"use strict";
|
|
138156
138133
|
Object.defineProperty(exports, "__esModule", {
|
|
138157
138134
|
value: true
|
|
@@ -138186,9 +138163,9 @@ var require_en = __commonJS({
|
|
|
138186
138163
|
}
|
|
138187
138164
|
});
|
|
138188
138165
|
|
|
138189
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138166
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
|
|
138190
138167
|
var require_locale = __commonJS({
|
|
138191
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138168
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
|
|
138192
138169
|
"use strict";
|
|
138193
138170
|
Object.defineProperty(exports, "__esModule", {
|
|
138194
138171
|
value: true
|
|
@@ -138213,9 +138190,9 @@ var require_locale = __commonJS({
|
|
|
138213
138190
|
}
|
|
138214
138191
|
});
|
|
138215
138192
|
|
|
138216
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138193
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
|
|
138217
138194
|
var require_transform2 = __commonJS({
|
|
138218
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138195
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
|
|
138219
138196
|
"use strict";
|
|
138220
138197
|
Object.defineProperty(exports, "__esModule", {
|
|
138221
138198
|
value: true
|
|
@@ -138250,9 +138227,9 @@ var require_transform2 = __commonJS({
|
|
|
138250
138227
|
}
|
|
138251
138228
|
});
|
|
138252
138229
|
|
|
138253
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138230
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js
|
|
138254
138231
|
var require_checkUseNvm = __commonJS({
|
|
138255
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138232
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js"(exports) {
|
|
138256
138233
|
"use strict";
|
|
138257
138234
|
Object.defineProperty(exports, "__esModule", {
|
|
138258
138235
|
value: true
|
|
@@ -138315,9 +138292,9 @@ var require_checkUseNvm = __commonJS({
|
|
|
138315
138292
|
}
|
|
138316
138293
|
});
|
|
138317
138294
|
|
|
138318
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138295
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
|
|
138319
138296
|
var require_node9 = __commonJS({
|
|
138320
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
138297
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
|
|
138321
138298
|
"use strict";
|
|
138322
138299
|
Object.defineProperty(exports, "__esModule", {
|
|
138323
138300
|
value: true
|
|
@@ -138371,13 +138348,13 @@ var require_node9 = __commonJS({
|
|
|
138371
138348
|
var AppAPI2 = class {
|
|
138372
138349
|
constructor(generatorContext, generatorCore) {
|
|
138373
138350
|
_defineProperty(this, "i18n", _locale.i18n);
|
|
138374
|
-
_defineProperty(this, "generatorCore", void 0);
|
|
138375
|
-
_defineProperty(this, "generatorContext", void 0);
|
|
138376
138351
|
_defineProperty(this, "npmApi", void 0);
|
|
138377
138352
|
_defineProperty(this, "gitApi", void 0);
|
|
138378
138353
|
_defineProperty(this, "handlebarsAPI", void 0);
|
|
138379
138354
|
_defineProperty(this, "ejsAPI", void 0);
|
|
138380
138355
|
_defineProperty(this, "fsAPI", void 0);
|
|
138356
|
+
_defineProperty(this, "generatorCore", void 0);
|
|
138357
|
+
_defineProperty(this, "generatorContext", void 0);
|
|
138381
138358
|
this.generatorCore = generatorCore;
|
|
138382
138359
|
this.generatorContext = generatorContext;
|
|
138383
138360
|
this.npmApi = new _codesmithApiNpm.NpmAPI(generatorCore);
|
|
@@ -138437,6 +138414,7 @@ var require_node9 = __commonJS({
|
|
|
138437
138414
|
yield intallPromise;
|
|
138438
138415
|
this.generatorCore.logger.info(_locale.i18n.t(_locale.localeKeys.install.success));
|
|
138439
138416
|
} catch (e) {
|
|
138417
|
+
this.generatorCore.logger.warn(e);
|
|
138440
138418
|
this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.install.failed, {
|
|
138441
138419
|
command: command || `${packageManager} install`
|
|
138442
138420
|
}));
|
|
@@ -139468,9 +139446,9 @@ var require_dist3 = __commonJS({
|
|
|
139468
139446
|
}
|
|
139469
139447
|
});
|
|
139470
139448
|
|
|
139471
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139449
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js
|
|
139472
139450
|
var require_utils12 = __commonJS({
|
|
139473
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139451
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js"(exports) {
|
|
139474
139452
|
"use strict";
|
|
139475
139453
|
Object.defineProperty(exports, "__esModule", {
|
|
139476
139454
|
value: true
|
|
@@ -139492,9 +139470,9 @@ var require_utils12 = __commonJS({
|
|
|
139492
139470
|
}
|
|
139493
139471
|
});
|
|
139494
139472
|
|
|
139495
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139473
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js
|
|
139496
139474
|
var require_node10 = __commonJS({
|
|
139497
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
139475
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js"(exports) {
|
|
139498
139476
|
"use strict";
|
|
139499
139477
|
Object.defineProperty(exports, "__esModule", {
|
|
139500
139478
|
value: true
|
|
@@ -139724,7 +139702,7 @@ var ZH_LOCALE = {
|
|
|
139724
139702
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
139725
139703
|
proxy: "启用「全局代理」",
|
|
139726
139704
|
swc: "启用「SWC 编译」",
|
|
139727
|
-
rspack: "启用「
|
|
139705
|
+
rspack: "启用「Rspack 构建」(实验性)"
|
|
139728
139706
|
},
|
|
139729
139707
|
element: {
|
|
139730
139708
|
self: "创建工程元素",
|
|
@@ -139778,7 +139756,7 @@ var ZH_LOCALE = {
|
|
|
139778
139756
|
buildTools: {
|
|
139779
139757
|
self: "请选择构建工具",
|
|
139780
139758
|
webpack: "webpack",
|
|
139781
|
-
rspack: "
|
|
139759
|
+
rspack: "Rspack (实验性)"
|
|
139782
139760
|
}
|
|
139783
139761
|
};
|
|
139784
139762
|
|
|
@@ -139821,7 +139799,7 @@ var EN_LOCALE = {
|
|
|
139821
139799
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
139822
139800
|
proxy: "Enable Global Proxy",
|
|
139823
139801
|
swc: "Enable SWC Compile",
|
|
139824
|
-
rspack: "Enable
|
|
139802
|
+
rspack: "Enable Rspack Build (experimental)"
|
|
139825
139803
|
},
|
|
139826
139804
|
element: {
|
|
139827
139805
|
self: "Create project element",
|
|
@@ -139875,7 +139853,7 @@ var EN_LOCALE = {
|
|
|
139875
139853
|
buildTools: {
|
|
139876
139854
|
self: "Build Tools",
|
|
139877
139855
|
webpack: "webpack",
|
|
139878
|
-
rspack: "
|
|
139856
|
+
rspack: "Rspack (experimental)"
|
|
139879
139857
|
}
|
|
139880
139858
|
};
|
|
139881
139859
|
|
|
@@ -139913,7 +139891,7 @@ var Language = /* @__PURE__ */ ((Language2) => {
|
|
|
139913
139891
|
return Language2;
|
|
139914
139892
|
})(Language || {});
|
|
139915
139893
|
|
|
139916
|
-
// ../../generator-utils/dist/esm/utils/
|
|
139894
|
+
// ../../generator-utils/dist/esm/utils/stripAnsi.js
|
|
139917
139895
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
139918
139896
|
const pattern = [
|
|
139919
139897
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "@modern-js/server-generator",
|
|
3
3
|
"description": "A Progressive React Framework for modern web development.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
|
-
"bugs": "https://github.com/
|
|
6
|
-
"repository": "
|
|
5
|
+
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
|
|
6
|
+
"repository": "web-infra-dev/modern.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "3.0.
|
|
14
|
+
"version": "3.0.10",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./src/index.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
],
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/runtime": "^7.18.0",
|
|
24
|
-
"@modern-js/codesmith": "2.0.
|
|
25
|
-
"@modern-js/codesmith-api-app": "2.0.
|
|
26
|
-
"@modern-js/codesmith-api-json": "2.0.
|
|
24
|
+
"@modern-js/codesmith": "2.0.5",
|
|
25
|
+
"@modern-js/codesmith-api-app": "2.0.5",
|
|
26
|
+
"@modern-js/codesmith-api-json": "2.0.5",
|
|
27
27
|
"@types/jest": "^27",
|
|
28
28
|
"@types/node": "^14",
|
|
29
29
|
"jest": "^27",
|
|
30
30
|
"typescript": "^4",
|
|
31
|
-
"@scripts/build": "2.
|
|
32
|
-
"@scripts/jest-config": "2.
|
|
33
|
-
"@modern-js/generator
|
|
34
|
-
"@modern-js/generator-utils": "3.0.
|
|
35
|
-
"@modern-js/
|
|
31
|
+
"@scripts/build": "2.8.0",
|
|
32
|
+
"@scripts/jest-config": "2.8.0",
|
|
33
|
+
"@modern-js/dependence-generator": "3.0.10",
|
|
34
|
+
"@modern-js/generator-utils": "3.0.10",
|
|
35
|
+
"@modern-js/generator-common": "3.0.10"
|
|
36
36
|
},
|
|
37
37
|
"sideEffects": false,
|
|
38
38
|
"publishConfig": {
|