@modern-js/base-generator 3.1.20 → 3.1.21
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 +15 -14
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -115893,9 +115893,10 @@ var require_prettyInstructions = __commonJS({
|
|
|
115893
115893
|
}, []);
|
|
115894
115894
|
};
|
|
115895
115895
|
var prettyInstructions = (appContext, config) => {
|
|
115896
|
-
var _config_dev;
|
|
115896
|
+
var _appContext_builder_context_devServer, _appContext_builder, _config_dev;
|
|
115897
115897
|
const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
|
|
115898
|
-
const
|
|
115898
|
+
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);
|
|
115899
|
+
const urls = getAddressUrls(isHttps ? "https" : "http", port, (_config_dev = config.dev) === null || _config_dev === void 0 ? void 0 : _config_dev.host);
|
|
115899
115900
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
115900
115901
|
let message = "App running at:\n\n";
|
|
115901
115902
|
if ((0, _is.isSingleEntry)(entrypoints) || apiOnly) {
|
|
@@ -116332,7 +116333,7 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
116332
116333
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
116333
116334
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
116334
116335
|
|
|
116335
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
116336
|
+
// ../../../../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
|
|
116336
116337
|
var import_lodash6 = __toESM(require_lodash2());
|
|
116337
116338
|
var import_comment_json = __toESM(require_src2());
|
|
116338
116339
|
|
|
@@ -128433,10 +128434,10 @@ var Schema = (
|
|
|
128433
128434
|
}()
|
|
128434
128435
|
);
|
|
128435
128436
|
|
|
128436
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128437
|
+
// ../../../../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
|
|
128437
128438
|
var import_inquirer = __toESM(require_inquirer());
|
|
128438
128439
|
|
|
128439
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128440
|
+
// ../../../../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
|
|
128440
128441
|
var import_lodash2 = __toESM(require_lodash2());
|
|
128441
128442
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128442
128443
|
try {
|
|
@@ -128783,7 +128784,7 @@ function transformForm(schema) {
|
|
|
128783
128784
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
128784
128785
|
}
|
|
128785
128786
|
|
|
128786
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
128787
|
+
// ../../../../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
|
|
128787
128788
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128788
128789
|
try {
|
|
128789
128790
|
var info = gen[key](arg);
|
|
@@ -129307,7 +129308,7 @@ function _prompt() {
|
|
|
129307
129308
|
return _prompt.apply(this, arguments);
|
|
129308
129309
|
}
|
|
129309
129310
|
|
|
129310
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129311
|
+
// ../../../../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
|
|
129311
129312
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129312
129313
|
try {
|
|
129313
129314
|
var info = gen[key](arg);
|
|
@@ -129547,7 +129548,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
129547
129548
|
return CLIReader2;
|
|
129548
129549
|
}();
|
|
129549
129550
|
|
|
129550
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129551
|
+
// ../../../../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
|
|
129551
129552
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
129552
129553
|
|
|
129553
129554
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -129626,7 +129627,7 @@ var I18n = class {
|
|
|
129626
129627
|
}
|
|
129627
129628
|
};
|
|
129628
129629
|
|
|
129629
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129630
|
+
// ../../../../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
|
|
129630
129631
|
var ZH_LOCALE = {
|
|
129631
129632
|
environment: {
|
|
129632
129633
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -129653,7 +129654,7 @@ var ZH_LOCALE = {
|
|
|
129653
129654
|
}
|
|
129654
129655
|
};
|
|
129655
129656
|
|
|
129656
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129657
|
+
// ../../../../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
|
|
129657
129658
|
var EN_LOCALE = {
|
|
129658
129659
|
environment: {
|
|
129659
129660
|
node_version: "please upgrade node to lts version",
|
|
@@ -129680,14 +129681,14 @@ var EN_LOCALE = {
|
|
|
129680
129681
|
}
|
|
129681
129682
|
};
|
|
129682
129683
|
|
|
129683
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129684
|
+
// ../../../../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
|
|
129684
129685
|
var i18n = new I18n();
|
|
129685
129686
|
var localeKeys = i18n.init("zh", {
|
|
129686
129687
|
zh: ZH_LOCALE,
|
|
129687
129688
|
en: EN_LOCALE
|
|
129688
129689
|
});
|
|
129689
129690
|
|
|
129690
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129691
|
+
// ../../../../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
|
|
129691
129692
|
var import_lodash5 = __toESM(require_lodash2());
|
|
129692
129693
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129693
129694
|
try {
|
|
@@ -129896,7 +129897,7 @@ function transformInquirerSchema(questions) {
|
|
|
129896
129897
|
return questions;
|
|
129897
129898
|
}
|
|
129898
129899
|
|
|
129899
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
129900
|
+
// ../../../../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
|
|
129900
129901
|
var import_path4 = __toESM(require("path"));
|
|
129901
129902
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129902
129903
|
try {
|
|
@@ -130160,7 +130161,7 @@ function _checkUseNvm() {
|
|
|
130160
130161
|
return _checkUseNvm.apply(this, arguments);
|
|
130161
130162
|
}
|
|
130162
130163
|
|
|
130163
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130164
|
+
// ../../../../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
|
|
130164
130165
|
function _array_like_to_array(arr, len) {
|
|
130165
130166
|
if (len == null || len > arr.length)
|
|
130166
130167
|
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.21",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@scripts/jest-config": "2.22.
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@modern-js/generator-common": "3.1.
|
|
33
|
+
"@scripts/jest-config": "2.22.1",
|
|
34
|
+
"@modern-js/generator-utils": "3.1.21",
|
|
35
|
+
"@scripts/build": "2.22.1",
|
|
36
|
+
"@modern-js/generator-common": "3.1.21"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"publishConfig": {
|