@modern-js/entry-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.
Files changed (2) hide show
  1. package/dist/index.js +15 -14
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -37279,9 +37279,10 @@ var require_prettyInstructions = __commonJS({
37279
37279
  }, []);
37280
37280
  };
37281
37281
  var prettyInstructions = (appContext, config) => {
37282
- var _config_dev;
37282
+ var _appContext_builder_context_devServer, _appContext_builder, _config_dev;
37283
37283
  const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
37284
- const urls = getAddressUrls(config.dev.https && (0, _is.isDev)() ? "https" : "http", port, (_config_dev = config.dev) === null || _config_dev === void 0 ? void 0 : _config_dev.host);
37284
+ 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);
37285
+ const urls = getAddressUrls(isHttps ? "https" : "http", port, (_config_dev = config.dev) === null || _config_dev === void 0 ? void 0 : _config_dev.host);
37285
37286
  const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
37286
37287
  let message = "App running at:\n\n";
37287
37288
  if ((0, _is.isSingleEntry)(entrypoints) || apiOnly) {
@@ -116671,7 +116672,7 @@ var mime = Import.lazy("../compiled/mime-types", require);
116671
116672
  var chokidar = Import.lazy("../compiled/chokidar", require);
116672
116673
  var inquirer = Import.lazy("../compiled/inquirer", require);
116673
116674
 
116674
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
116675
+ // ../../../../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
116676
  var import_lodash8 = __toESM(require_lodash4());
116676
116677
  var import_comment_json = __toESM(require_src2());
116677
116678
 
@@ -128772,10 +128773,10 @@ var Schema = (
128772
128773
  }()
128773
128774
  );
128774
128775
 
128775
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
128776
+ // ../../../../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
128777
  var import_inquirer = __toESM(require_inquirer());
128777
128778
 
128778
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
128779
+ // ../../../../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
128780
  var import_lodash4 = __toESM(require_lodash4());
128780
128781
  function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
128781
128782
  try {
@@ -129122,7 +129123,7 @@ function transformForm(schema) {
129122
129123
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
129123
129124
  }
129124
129125
 
129125
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
129126
+ // ../../../../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
129127
  function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
129127
129128
  try {
129128
129129
  var info = gen[key](arg);
@@ -129646,7 +129647,7 @@ function _prompt() {
129646
129647
  return _prompt.apply(this, arguments);
129647
129648
  }
129648
129649
 
129649
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
129650
+ // ../../../../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
129651
  function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
129651
129652
  try {
129652
129653
  var info = gen[key](arg);
@@ -129886,7 +129887,7 @@ var CLIReader = /* @__PURE__ */ function() {
129886
129887
  return CLIReader2;
129887
129888
  }();
129888
129889
 
129889
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
129890
+ // ../../../../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
129891
  var import_inquirer2 = __toESM(require_inquirer2());
129891
129892
 
129892
129893
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -129965,7 +129966,7 @@ var I18n2 = class {
129965
129966
  }
129966
129967
  };
129967
129968
 
129968
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
129969
+ // ../../../../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
129970
  var ZH_LOCALE2 = {
129970
129971
  environment: {
129971
129972
  node_version: "请升级 Node 版本至 LIS",
@@ -129992,7 +129993,7 @@ var ZH_LOCALE2 = {
129992
129993
  }
129993
129994
  };
129994
129995
 
129995
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
129996
+ // ../../../../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
129997
  var EN_LOCALE2 = {
129997
129998
  environment: {
129998
129999
  node_version: "please upgrade node to lts version",
@@ -130019,14 +130020,14 @@ var EN_LOCALE2 = {
130019
130020
  }
130020
130021
  };
130021
130022
 
130022
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
130023
+ // ../../../../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
130024
  var i18n2 = new I18n2();
130024
130025
  var localeKeys2 = i18n2.init("zh", {
130025
130026
  zh: ZH_LOCALE2,
130026
130027
  en: EN_LOCALE2
130027
130028
  });
130028
130029
 
130029
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
130030
+ // ../../../../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
130031
  var import_lodash7 = __toESM(require_lodash4());
130031
130032
  function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
130032
130033
  try {
@@ -130235,7 +130236,7 @@ function transformInquirerSchema(questions) {
130235
130236
  return questions;
130236
130237
  }
130237
130238
 
130238
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
130239
+ // ../../../../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
130240
  var import_path5 = __toESM(require("path"));
130240
130241
  function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
130241
130242
  try {
@@ -130499,7 +130500,7 @@ function _checkUseNvm() {
130499
130500
  return _checkUseNvm.apply(this, arguments);
130500
130501
  }
130501
130502
 
130502
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.5_g6gqsypbjnpqx7w2a6bm33mugi/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
130503
+ // ../../../../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
130504
  function _array_like_to_array(arr, len) {
130504
130505
  if (len == null || len > arr.length)
130505
130506
  len = arr.length;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.20",
18
+ "version": "3.1.21",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,12 +30,12 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/generator-common": "3.1.20",
34
- "@modern-js/utils": "2.22.0",
35
- "@modern-js/generator-utils": "3.1.20",
36
- "@modern-js/plugin-i18n": "2.22.0",
37
- "@scripts/build": "2.22.0",
38
- "@scripts/jest-config": "2.22.0"
33
+ "@modern-js/generator-utils": "3.1.21",
34
+ "@modern-js/utils": "2.22.1",
35
+ "@modern-js/plugin-i18n": "2.22.1",
36
+ "@modern-js/generator-common": "3.1.21",
37
+ "@scripts/build": "2.22.1",
38
+ "@scripts/jest-config": "2.22.1"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {