@modern-js/entry-generator 3.1.20 → 3.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +32 -285
- package/package.json +9 -8
package/dist/index.js
CHANGED
|
@@ -35283,6 +35283,9 @@ var require_constants = __commonJS({
|
|
|
35283
35283
|
ROUTE_SPEC_FILE: function() {
|
|
35284
35284
|
return ROUTE_SPEC_FILE;
|
|
35285
35285
|
},
|
|
35286
|
+
NESTED_ROUTE_SPEC_FILE: function() {
|
|
35287
|
+
return NESTED_ROUTE_SPEC_FILE;
|
|
35288
|
+
},
|
|
35286
35289
|
MAIN_ENTRY_NAME: function() {
|
|
35287
35290
|
return MAIN_ENTRY_NAME;
|
|
35288
35291
|
},
|
|
@@ -35367,9 +35370,6 @@ var require_constants = __commonJS({
|
|
|
35367
35370
|
INTERNAL_SERVER_PLUGINS: function() {
|
|
35368
35371
|
return INTERNAL_SERVER_PLUGINS;
|
|
35369
35372
|
},
|
|
35370
|
-
PLUGIN_SCHEMAS: function() {
|
|
35371
|
-
return PLUGIN_SCHEMAS;
|
|
35372
|
-
},
|
|
35373
35373
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: function() {
|
|
35374
35374
|
return DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS;
|
|
35375
35375
|
}
|
|
@@ -35377,6 +35377,7 @@ var require_constants = __commonJS({
|
|
|
35377
35377
|
var _export_star = require_export_star();
|
|
35378
35378
|
_export_star._(require_chainId(), exports);
|
|
35379
35379
|
var ROUTE_SPEC_FILE = "route.json";
|
|
35380
|
+
var NESTED_ROUTE_SPEC_FILE = "nestedRoutes.json";
|
|
35380
35381
|
var MAIN_ENTRY_NAME = "main";
|
|
35381
35382
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
35382
35383
|
var SERVER_WORKER_BUNDLE_DIRECTORY = "worker";
|
|
@@ -35423,8 +35424,6 @@ var require_constants = __commonJS({
|
|
|
35423
35424
|
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
|
35424
35425
|
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
|
35425
35426
|
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
35426
|
-
// TODO: Maybe can remove it
|
|
35427
|
-
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
35428
35427
|
// legacy router (inner react-router-dom v5)
|
|
35429
35428
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
35430
35429
|
};
|
|
@@ -35455,8 +35454,6 @@ var require_constants = __commonJS({
|
|
|
35455
35454
|
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
|
35456
35455
|
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
35457
35456
|
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
35458
|
-
// TODO: Maybe can remove it
|
|
35459
|
-
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
35460
35457
|
// legacy router (inner react-router-dom v5)
|
|
35461
35458
|
"@modern-js/plugin-router-v5": "@modern-js/plugin-router-v5/cli"
|
|
35462
35459
|
};
|
|
@@ -35472,214 +35469,6 @@ var require_constants = __commonJS({
|
|
|
35472
35469
|
[SERVER_PLUGIN_SERVER]: "@modern-js/plugin-server/server",
|
|
35473
35470
|
[SERVER_PLUGIN_POLYFILL]: "@modern-js/plugin-polyfill/server"
|
|
35474
35471
|
};
|
|
35475
|
-
var PLUGIN_SCHEMAS = {
|
|
35476
|
-
"@modern-js/runtime": [
|
|
35477
|
-
{
|
|
35478
|
-
target: "runtime",
|
|
35479
|
-
schema: {
|
|
35480
|
-
type: "object",
|
|
35481
|
-
additionalProperties: false
|
|
35482
|
-
}
|
|
35483
|
-
},
|
|
35484
|
-
{
|
|
35485
|
-
target: "runtimeByEntries",
|
|
35486
|
-
schema: {
|
|
35487
|
-
type: "object",
|
|
35488
|
-
patternProperties: {
|
|
35489
|
-
[ENTRY_NAME_PATTERN]: {
|
|
35490
|
-
type: "object"
|
|
35491
|
-
}
|
|
35492
|
-
},
|
|
35493
|
-
additionalProperties: false
|
|
35494
|
-
}
|
|
35495
|
-
}
|
|
35496
|
-
],
|
|
35497
|
-
"@modern-js/plugin-swc": [
|
|
35498
|
-
{
|
|
35499
|
-
target: "tools.swc",
|
|
35500
|
-
schema: {
|
|
35501
|
-
typeof: [
|
|
35502
|
-
"object"
|
|
35503
|
-
]
|
|
35504
|
-
}
|
|
35505
|
-
}
|
|
35506
|
-
],
|
|
35507
|
-
"@modern-js/plugin-bff": [
|
|
35508
|
-
{
|
|
35509
|
-
target: "bff",
|
|
35510
|
-
schema: {
|
|
35511
|
-
type: "object",
|
|
35512
|
-
properties: {
|
|
35513
|
-
prefix: {
|
|
35514
|
-
type: [
|
|
35515
|
-
"string",
|
|
35516
|
-
"array"
|
|
35517
|
-
],
|
|
35518
|
-
items: {
|
|
35519
|
-
type: "string"
|
|
35520
|
-
}
|
|
35521
|
-
},
|
|
35522
|
-
fetcher: {
|
|
35523
|
-
type: "string"
|
|
35524
|
-
},
|
|
35525
|
-
proxy: {
|
|
35526
|
-
type: "object"
|
|
35527
|
-
},
|
|
35528
|
-
requestCreator: {
|
|
35529
|
-
type: "string"
|
|
35530
|
-
}
|
|
35531
|
-
}
|
|
35532
|
-
}
|
|
35533
|
-
}
|
|
35534
|
-
],
|
|
35535
|
-
"@modern-js/plugin-tailwindcss": [
|
|
35536
|
-
{
|
|
35537
|
-
target: "tools.tailwindcss",
|
|
35538
|
-
schema: {
|
|
35539
|
-
typeof: [
|
|
35540
|
-
"object",
|
|
35541
|
-
"function"
|
|
35542
|
-
]
|
|
35543
|
-
}
|
|
35544
|
-
}
|
|
35545
|
-
],
|
|
35546
|
-
"@modern-js/plugin-proxy": [
|
|
35547
|
-
{
|
|
35548
|
-
target: "dev.proxy",
|
|
35549
|
-
schema: {
|
|
35550
|
-
typeof: [
|
|
35551
|
-
"string",
|
|
35552
|
-
"object"
|
|
35553
|
-
]
|
|
35554
|
-
}
|
|
35555
|
-
}
|
|
35556
|
-
],
|
|
35557
|
-
"@modern-js/plugin-ssg": [
|
|
35558
|
-
{
|
|
35559
|
-
target: "output.ssg",
|
|
35560
|
-
schema: {
|
|
35561
|
-
oneOf: [
|
|
35562
|
-
{
|
|
35563
|
-
type: "boolean"
|
|
35564
|
-
},
|
|
35565
|
-
{
|
|
35566
|
-
type: "object"
|
|
35567
|
-
},
|
|
35568
|
-
{
|
|
35569
|
-
instanceof: "Function"
|
|
35570
|
-
}
|
|
35571
|
-
]
|
|
35572
|
-
}
|
|
35573
|
-
}
|
|
35574
|
-
],
|
|
35575
|
-
"@modern-js/plugin-state": [
|
|
35576
|
-
{
|
|
35577
|
-
target: "runtime.state",
|
|
35578
|
-
schema: {
|
|
35579
|
-
type: [
|
|
35580
|
-
"boolean",
|
|
35581
|
-
"object"
|
|
35582
|
-
]
|
|
35583
|
-
}
|
|
35584
|
-
}
|
|
35585
|
-
],
|
|
35586
|
-
"@modern-js/plugin-design-token": [
|
|
35587
|
-
// Legacy Features
|
|
35588
|
-
{
|
|
35589
|
-
target: "source.designSystem",
|
|
35590
|
-
schema: {
|
|
35591
|
-
typeof: [
|
|
35592
|
-
"object"
|
|
35593
|
-
]
|
|
35594
|
-
}
|
|
35595
|
-
},
|
|
35596
|
-
{
|
|
35597
|
-
target: "source.designSystem.supportStyledComponents",
|
|
35598
|
-
schema: {
|
|
35599
|
-
type: [
|
|
35600
|
-
"boolean"
|
|
35601
|
-
]
|
|
35602
|
-
}
|
|
35603
|
-
},
|
|
35604
|
-
{
|
|
35605
|
-
target: "designSystem",
|
|
35606
|
-
schema: {
|
|
35607
|
-
typeof: [
|
|
35608
|
-
"object"
|
|
35609
|
-
]
|
|
35610
|
-
}
|
|
35611
|
-
}
|
|
35612
|
-
],
|
|
35613
|
-
"@modern-js/plugin-router": [
|
|
35614
|
-
{
|
|
35615
|
-
target: "runtime.router",
|
|
35616
|
-
schema: {
|
|
35617
|
-
type: [
|
|
35618
|
-
"boolean",
|
|
35619
|
-
"object"
|
|
35620
|
-
]
|
|
35621
|
-
}
|
|
35622
|
-
}
|
|
35623
|
-
],
|
|
35624
|
-
"@modern-js/plugin-testing": [
|
|
35625
|
-
{
|
|
35626
|
-
target: "testing",
|
|
35627
|
-
schema: {
|
|
35628
|
-
typeof: [
|
|
35629
|
-
"object"
|
|
35630
|
-
]
|
|
35631
|
-
}
|
|
35632
|
-
},
|
|
35633
|
-
{
|
|
35634
|
-
target: "tools.jest",
|
|
35635
|
-
schema: {
|
|
35636
|
-
typeof: [
|
|
35637
|
-
"object",
|
|
35638
|
-
"function"
|
|
35639
|
-
]
|
|
35640
|
-
}
|
|
35641
|
-
}
|
|
35642
|
-
],
|
|
35643
|
-
"@modern-js/plugin-garfish": [
|
|
35644
|
-
{
|
|
35645
|
-
target: "runtime.masterApp",
|
|
35646
|
-
schema: {
|
|
35647
|
-
type: [
|
|
35648
|
-
"boolean",
|
|
35649
|
-
"object"
|
|
35650
|
-
]
|
|
35651
|
-
}
|
|
35652
|
-
},
|
|
35653
|
-
{
|
|
35654
|
-
target: "dev.withMasterApp",
|
|
35655
|
-
schema: {
|
|
35656
|
-
type: [
|
|
35657
|
-
"object"
|
|
35658
|
-
]
|
|
35659
|
-
}
|
|
35660
|
-
},
|
|
35661
|
-
{
|
|
35662
|
-
target: "deploy.microFrontend",
|
|
35663
|
-
schema: {
|
|
35664
|
-
type: [
|
|
35665
|
-
"boolean",
|
|
35666
|
-
"object"
|
|
35667
|
-
]
|
|
35668
|
-
}
|
|
35669
|
-
}
|
|
35670
|
-
],
|
|
35671
|
-
"@modern-js/plugin-nocode": [],
|
|
35672
|
-
"@modern-js/plugin-worker": [
|
|
35673
|
-
{
|
|
35674
|
-
target: "deploy.worker.ssr",
|
|
35675
|
-
schema: {
|
|
35676
|
-
type: [
|
|
35677
|
-
"boolean"
|
|
35678
|
-
]
|
|
35679
|
-
}
|
|
35680
|
-
}
|
|
35681
|
-
]
|
|
35682
|
-
};
|
|
35683
35472
|
var DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS = {
|
|
35684
35473
|
allowNamespaces: true,
|
|
35685
35474
|
allExtensions: true,
|
|
@@ -36134,11 +35923,14 @@ var require_project = __commonJS({
|
|
|
36134
35923
|
return false;
|
|
36135
35924
|
}
|
|
36136
35925
|
};
|
|
36137
|
-
var isApiOnly = (appDirectory, entryDir) => __async(exports, null, function* () {
|
|
36138
|
-
const
|
|
36139
|
-
const existSrc = yield _compiled.fs.pathExists(
|
|
35926
|
+
var isApiOnly = (appDirectory, entryDir, apiDir) => __async(exports, null, function* () {
|
|
35927
|
+
const existApi = yield _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
|
|
35928
|
+
const existSrc = yield _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
|
|
36140
35929
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
36141
|
-
|
|
35930
|
+
if (options["api-only"]) {
|
|
35931
|
+
return true;
|
|
35932
|
+
}
|
|
35933
|
+
return existApi && !existSrc;
|
|
36142
35934
|
});
|
|
36143
35935
|
var isWebOnly = () => __async(exports, null, function* () {
|
|
36144
35936
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
@@ -36472,21 +36264,6 @@ var require_get = __commonJS({
|
|
|
36472
36264
|
}
|
|
36473
36265
|
});
|
|
36474
36266
|
|
|
36475
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
|
36476
|
-
var require_define_property = __commonJS({
|
|
36477
|
-
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
|
36478
|
-
"use strict";
|
|
36479
|
-
exports._ = exports._define_property = _define_property14;
|
|
36480
|
-
function _define_property14(obj, key, value) {
|
|
36481
|
-
if (key in obj) {
|
|
36482
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
36483
|
-
} else
|
|
36484
|
-
obj[key] = value;
|
|
36485
|
-
return obj;
|
|
36486
|
-
}
|
|
36487
|
-
}
|
|
36488
|
-
});
|
|
36489
|
-
|
|
36490
36267
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
36491
36268
|
var require_logger = __commonJS({
|
|
36492
36269
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
|
@@ -36509,7 +36286,6 @@ var require_logger = __commonJS({
|
|
|
36509
36286
|
return logger;
|
|
36510
36287
|
}
|
|
36511
36288
|
});
|
|
36512
|
-
var _define_property14 = require_define_property();
|
|
36513
36289
|
var _interop_require_default = require_interop_require_default();
|
|
36514
36290
|
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk());
|
|
36515
36291
|
var LOG_LEVEL = {
|
|
@@ -36595,10 +36371,6 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
36595
36371
|
return longestLabel;
|
|
36596
36372
|
}
|
|
36597
36373
|
constructor(options = {}) {
|
|
36598
|
-
_define_property14._(this, "level", void 0);
|
|
36599
|
-
_define_property14._(this, "config", void 0);
|
|
36600
|
-
_define_property14._(this, "types", void 0);
|
|
36601
|
-
_define_property14._(this, "longestLabel", void 0);
|
|
36602
36374
|
this.level = options.level || LOG_TYPES.log.level;
|
|
36603
36375
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
36604
36376
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
@@ -37279,9 +37051,10 @@ var require_prettyInstructions = __commonJS({
|
|
|
37279
37051
|
}, []);
|
|
37280
37052
|
};
|
|
37281
37053
|
var prettyInstructions = (appContext, config) => {
|
|
37282
|
-
var _config_dev;
|
|
37054
|
+
var _appContext_builder_context_devServer, _appContext_builder, _config_dev;
|
|
37283
37055
|
const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
|
|
37284
|
-
const
|
|
37056
|
+
const isHttps = (0, _is.isDev)() && ((_appContext_builder_context_devServer = (_appContext_builder = appContext.builder) === null || _appContext_builder === void 0 ? void 0 : _appContext_builder.context.devServer) === null || _appContext_builder_context_devServer === void 0 ? void 0 : _appContext_builder_context_devServer.https);
|
|
37057
|
+
const urls = getAddressUrls(isHttps ? "https" : "http", port, (_config_dev = config.dev) === null || _config_dev === void 0 ? void 0 : _config_dev.host);
|
|
37285
37058
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
37286
37059
|
let message = "App running at:\n\n";
|
|
37287
37060
|
if ((0, _is.isSingleEntry)(entrypoints) || apiOnly) {
|
|
@@ -37527,31 +37300,6 @@ var require_runtimeExports = __commonJS({
|
|
|
37527
37300
|
}
|
|
37528
37301
|
});
|
|
37529
37302
|
|
|
37530
|
-
// ../../../toolkit/utils/dist/cjs/cli/test.js
|
|
37531
|
-
var require_test = __commonJS({
|
|
37532
|
-
"../../../toolkit/utils/dist/cjs/cli/test.js"(exports) {
|
|
37533
|
-
"use strict";
|
|
37534
|
-
Object.defineProperty(exports, "__esModule", {
|
|
37535
|
-
value: true
|
|
37536
|
-
});
|
|
37537
|
-
Object.defineProperty(exports, "initSnapshotSerializer", {
|
|
37538
|
-
enumerable: true,
|
|
37539
|
-
get: function() {
|
|
37540
|
-
return initSnapshotSerializer;
|
|
37541
|
-
}
|
|
37542
|
-
});
|
|
37543
|
-
var initSnapshotSerializer = (root) => {
|
|
37544
|
-
expect.addSnapshotSerializer({
|
|
37545
|
-
test: (val) => typeof val === "string" && (val.includes("modern.js") || val.includes("node_modules") || val.includes(root)),
|
|
37546
|
-
print: (val) => (
|
|
37547
|
-
// eslint-disable-next-line no-nested-ternary
|
|
37548
|
-
typeof val === "string" ? val.includes("node_modules") ? `"${val.replace(/.+node_modules/, ``).replace(/\\/g, "/")}"` : val.includes("modern.js") ? `"${val.replace(/.+modern\.js/, ``).replace(/\\/g, "/")}"` : `"${val.replace(root, "").replace(/\\/g, "/")}"` : val
|
|
37549
|
-
)
|
|
37550
|
-
});
|
|
37551
|
-
};
|
|
37552
|
-
}
|
|
37553
|
-
});
|
|
37554
|
-
|
|
37555
37303
|
// ../../../toolkit/utils/dist/cjs/cli/watch.js
|
|
37556
37304
|
var require_watch = __commonJS({
|
|
37557
37305
|
"../../../toolkit/utils/dist/cjs/cli/watch.js"(exports) {
|
|
@@ -37648,7 +37396,6 @@ var require_cli = __commonJS({
|
|
|
37648
37396
|
_export_star._(require_require(), exports);
|
|
37649
37397
|
_export_star._(require_routes(), exports);
|
|
37650
37398
|
_export_star._(require_runtimeExports(), exports);
|
|
37651
|
-
_export_star._(require_test(), exports);
|
|
37652
37399
|
_export_star._(require_watch(), exports);
|
|
37653
37400
|
}
|
|
37654
37401
|
});
|
|
@@ -74168,7 +73915,7 @@ var require_parse = __commonJS({
|
|
|
74168
73915
|
return current.type === "Punctuator" ? current.value : current.type;
|
|
74169
73916
|
};
|
|
74170
73917
|
var is = (t) => type() === t;
|
|
74171
|
-
var
|
|
73918
|
+
var expect = (a) => {
|
|
74172
73919
|
if (!is(a)) {
|
|
74173
73920
|
unexpected();
|
|
74174
73921
|
}
|
|
@@ -74250,7 +73997,7 @@ var require_parse = __commonJS({
|
|
|
74250
73997
|
while (!is(CURLY_BRACKET_CLOSE)) {
|
|
74251
73998
|
if (started) {
|
|
74252
73999
|
assign_comments(PREFIX_AFTER_VALUE);
|
|
74253
|
-
|
|
74000
|
+
expect(COMMA);
|
|
74254
74001
|
next();
|
|
74255
74002
|
parse_comments();
|
|
74256
74003
|
assign_after_comments();
|
|
@@ -74259,13 +74006,13 @@ var require_parse = __commonJS({
|
|
|
74259
74006
|
}
|
|
74260
74007
|
}
|
|
74261
74008
|
started = true;
|
|
74262
|
-
|
|
74009
|
+
expect("String");
|
|
74263
74010
|
name = JSON.parse(current.value);
|
|
74264
74011
|
set_prop(name);
|
|
74265
74012
|
assign_comments(PREFIX_BEFORE);
|
|
74266
74013
|
next();
|
|
74267
74014
|
parse_comments(PREFIX_AFTER_PROP);
|
|
74268
|
-
|
|
74015
|
+
expect(COLON);
|
|
74269
74016
|
next();
|
|
74270
74017
|
parse_comments(PREFIX_AFTER_COLON);
|
|
74271
74018
|
obj[name] = transform(name, walk());
|
|
@@ -74293,7 +74040,7 @@ var require_parse = __commonJS({
|
|
|
74293
74040
|
while (!is(BRACKET_CLOSE)) {
|
|
74294
74041
|
if (started) {
|
|
74295
74042
|
assign_comments(PREFIX_AFTER_VALUE);
|
|
74296
|
-
|
|
74043
|
+
expect(COMMA);
|
|
74297
74044
|
next();
|
|
74298
74045
|
parse_comments();
|
|
74299
74046
|
assign_after_comments();
|
|
@@ -116381,7 +116128,7 @@ var ZH_LOCALE = {
|
|
|
116381
116128
|
function: {
|
|
116382
116129
|
self: "启用可选功能",
|
|
116383
116130
|
question: "请选择功能名称",
|
|
116384
|
-
tailwindcss: "
|
|
116131
|
+
tailwindcss: "启用「Tailwind CSS」 支持",
|
|
116385
116132
|
bff: "启用「BFF」功能",
|
|
116386
116133
|
micro_frontend: "启用「微前端」模式",
|
|
116387
116134
|
i18n: "启用「国际化(i18n)」功能",
|
|
@@ -116671,7 +116418,7 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
116671
116418
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
116672
116419
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
116673
116420
|
|
|
116674
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
116421
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
116675
116422
|
var import_lodash8 = __toESM(require_lodash4());
|
|
116676
116423
|
var import_comment_json = __toESM(require_src2());
|
|
116677
116424
|
|
|
@@ -128772,10 +128519,10 @@ var Schema = (
|
|
|
128772
128519
|
}()
|
|
128773
128520
|
);
|
|
128774
128521
|
|
|
128775
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128522
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
128776
128523
|
var import_inquirer = __toESM(require_inquirer());
|
|
128777
128524
|
|
|
128778
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128525
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
128779
128526
|
var import_lodash4 = __toESM(require_lodash4());
|
|
128780
128527
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128781
128528
|
try {
|
|
@@ -129122,7 +128869,7 @@ function transformForm(schema) {
|
|
|
129122
128869
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
129123
128870
|
}
|
|
129124
128871
|
|
|
129125
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128872
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
129126
128873
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129127
128874
|
try {
|
|
129128
128875
|
var info = gen[key](arg);
|
|
@@ -129646,7 +129393,7 @@ function _prompt() {
|
|
|
129646
129393
|
return _prompt.apply(this, arguments);
|
|
129647
129394
|
}
|
|
129648
129395
|
|
|
129649
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129396
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
129650
129397
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129651
129398
|
try {
|
|
129652
129399
|
var info = gen[key](arg);
|
|
@@ -129886,7 +129633,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
129886
129633
|
return CLIReader2;
|
|
129887
129634
|
}();
|
|
129888
129635
|
|
|
129889
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129636
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
129890
129637
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
129891
129638
|
|
|
129892
129639
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -129965,7 +129712,7 @@ var I18n2 = class {
|
|
|
129965
129712
|
}
|
|
129966
129713
|
};
|
|
129967
129714
|
|
|
129968
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129715
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
129969
129716
|
var ZH_LOCALE2 = {
|
|
129970
129717
|
environment: {
|
|
129971
129718
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -129992,7 +129739,7 @@ var ZH_LOCALE2 = {
|
|
|
129992
129739
|
}
|
|
129993
129740
|
};
|
|
129994
129741
|
|
|
129995
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129742
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
129996
129743
|
var EN_LOCALE2 = {
|
|
129997
129744
|
environment: {
|
|
129998
129745
|
node_version: "please upgrade node to lts version",
|
|
@@ -130019,14 +129766,14 @@ var EN_LOCALE2 = {
|
|
|
130019
129766
|
}
|
|
130020
129767
|
};
|
|
130021
129768
|
|
|
130022
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129769
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
130023
129770
|
var i18n2 = new I18n2();
|
|
130024
129771
|
var localeKeys2 = i18n2.init("zh", {
|
|
130025
129772
|
zh: ZH_LOCALE2,
|
|
130026
129773
|
en: EN_LOCALE2
|
|
130027
129774
|
});
|
|
130028
129775
|
|
|
130029
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129776
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
130030
129777
|
var import_lodash7 = __toESM(require_lodash4());
|
|
130031
129778
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130032
129779
|
try {
|
|
@@ -130235,7 +129982,7 @@ function transformInquirerSchema(questions) {
|
|
|
130235
129982
|
return questions;
|
|
130236
129983
|
}
|
|
130237
129984
|
|
|
130238
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129985
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
130239
129986
|
var import_path5 = __toESM(require("path"));
|
|
130240
129987
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130241
129988
|
try {
|
|
@@ -130499,7 +130246,7 @@ function _checkUseNvm() {
|
|
|
130499
130246
|
return _checkUseNvm.apply(this, arguments);
|
|
130500
130247
|
}
|
|
130501
130248
|
|
|
130502
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130249
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_@modern-js+codesmith@2.2.5_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
130503
130250
|
function _array_like_to_array(arr, len) {
|
|
130504
130251
|
if (len == null || len > arr.length)
|
|
130505
130252
|
len = arr.length;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.22",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -30,17 +30,18 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/generator-common": "3.1.
|
|
34
|
-
"@modern-js/utils": "2.
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@scripts/build": "2.
|
|
38
|
-
"@scripts/jest-config": "2.
|
|
33
|
+
"@modern-js/generator-common": "3.1.22",
|
|
34
|
+
"@modern-js/utils": "2.23.0",
|
|
35
|
+
"@modern-js/plugin-i18n": "2.23.0",
|
|
36
|
+
"@modern-js/generator-utils": "3.1.22",
|
|
37
|
+
"@scripts/build": "2.23.0",
|
|
38
|
+
"@scripts/jest-config": "2.23.0"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"registry": "https://registry.npmjs.org/",
|
|
43
|
-
"access": "public"
|
|
43
|
+
"access": "public",
|
|
44
|
+
"provenance": true
|
|
44
45
|
},
|
|
45
46
|
"types": "./src/index.ts",
|
|
46
47
|
"scripts": {
|