@modern-js/entry-generator 3.3.8 → 3.3.9

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 +24 -26
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -51171,7 +51171,6 @@ var ZH_LOCALE = {
51171
51171
  polyfill: "启用「基于 UA 的 Polyfill」功能",
51172
51172
  proxy: "启用「全局代理」",
51173
51173
  swc: "启用「SWC 编译」",
51174
- rspack: "启用「Rspack 构建」(实验性)",
51175
51174
  module_doc: "启动「模块文档」功能"
51176
51175
  },
51177
51176
  element: {
@@ -51270,7 +51269,6 @@ var EN_LOCALE = {
51270
51269
  polyfill: "Enable UA-based Polyfill Feature",
51271
51270
  proxy: "Enable Global Proxy",
51272
51271
  swc: "Enable SWC Compile",
51273
- rspack: "Enable Rspack Build (experimental)",
51274
51272
  module_doc: "Enable Module Doc"
51275
51273
  },
51276
51274
  element: {
@@ -51406,12 +51404,12 @@ function _define_property2(obj, key, value) {
51406
51404
  return obj;
51407
51405
  }
51408
51406
 
51409
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
51407
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
51410
51408
  var import_utils16 = require("@modern-js/utils");
51411
51409
  var import_lodash7 = require("@modern-js/utils/lodash");
51412
51410
  var import_comment_json = __toESM(require_src2());
51413
51411
 
51414
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
51412
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
51415
51413
  var import_utils4 = require("@modern-js/utils");
51416
51414
  async function canUseNvm() {
51417
51415
  try {
@@ -51461,7 +51459,7 @@ async function canUsePnpm3() {
51461
51459
  }
51462
51460
  }
51463
51461
 
51464
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
51462
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
51465
51463
  var import_utils5 = require("@modern-js/utils");
51466
51464
  function execaWithStreamLog(command, args, options) {
51467
51465
  const promise = (0, import_utils5.execa)(command, args, {
@@ -51557,7 +51555,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
51557
51555
  throw new Error("please install pnpm first");
51558
51556
  }
51559
51557
 
51560
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
51558
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
51561
51559
  var NpmAPI = class {
51562
51560
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
51563
51561
  return npmInstall({
@@ -51586,7 +51584,7 @@ var NpmAPI = class {
51586
51584
  }
51587
51585
  };
51588
51586
 
51589
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
51587
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
51590
51588
  var import_utils7 = require("@modern-js/utils");
51591
51589
  async function canUseGit() {
51592
51590
  try {
@@ -51661,7 +51659,7 @@ async function gitCommit(cwd, commitMessage) {
51661
51659
  });
51662
51660
  }
51663
51661
 
51664
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
51662
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
51665
51663
  var GitAPI = class {
51666
51664
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
51667
51665
  const canUse = await canUseGit();
@@ -51713,12 +51711,12 @@ var GitAPI = class {
51713
51711
  }
51714
51712
  };
51715
51713
 
51716
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
51714
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
51717
51715
  var import_path2 = __toESM(require("path"));
51718
51716
  var import_utils9 = require("@modern-js/utils");
51719
51717
  var FS_RESOURCE = "_codesmith_core_fs_resource";
51720
51718
 
51721
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
51719
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
51722
51720
  var import_utils10 = require("@modern-js/utils");
51723
51721
  async function fsExists(path7) {
51724
51722
  try {
@@ -51729,7 +51727,7 @@ async function fsExists(path7) {
51729
51727
  }
51730
51728
  }
51731
51729
 
51732
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
51730
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
51733
51731
  var import_handlebars = __toESM(require_lib());
51734
51732
  function renderString(template, fullData, registers) {
51735
51733
  const helpers = {
@@ -51743,7 +51741,7 @@ function renderString(template, fullData, registers) {
51743
51741
  return import_handlebars.default.compile(template)(fullData) || "";
51744
51742
  }
51745
51743
 
51746
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
51744
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
51747
51745
  var HandlebarsAPI = class {
51748
51746
  async registerHelp(helpers) {
51749
51747
  this.registers.helpers = {
@@ -51793,13 +51791,13 @@ var HandlebarsAPI = class {
51793
51791
  }
51794
51792
  };
51795
51793
 
51796
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
51794
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
51797
51795
  var import_ejs = __toESM(require_ejs());
51798
51796
  function renderString2(template, fullData) {
51799
51797
  return import_ejs.default.render(template, fullData) || "";
51800
51798
  }
51801
51799
 
51802
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
51800
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
51803
51801
  var EjsAPI = class {
51804
51802
  async renderTemplate(templateResource, target, parameters = {}) {
51805
51803
  if (templateResource._type !== FS_RESOURCE) {
@@ -51832,7 +51830,7 @@ var EjsAPI = class {
51832
51830
  }
51833
51831
  };
51834
51832
 
51835
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
51833
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
51836
51834
  var import_path3 = __toESM(require("path"));
51837
51835
  var import_utils13 = require("@modern-js/utils");
51838
51836
  var FsAPI = class {
@@ -61416,10 +61414,10 @@ var Schema = (
61416
61414
  }()
61417
61415
  );
61418
61416
 
61419
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
61417
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
61420
61418
  var import_inquirer = __toESM(require_inquirer());
61421
61419
 
61422
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
61420
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
61423
61421
  var import_lodash3 = require("@modern-js/utils/lodash");
61424
61422
  function validateSchema(schema) {
61425
61423
  const { type, properties } = schema;
@@ -61511,7 +61509,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
61511
61509
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
61512
61510
  }
61513
61511
 
61514
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
61512
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
61515
61513
  var compileRule = (rule, scope) => {
61516
61514
  const state = Schema.compile(rule, {
61517
61515
  $self: {},
@@ -61615,7 +61613,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
61615
61613
  return answers;
61616
61614
  }
61617
61615
 
61618
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
61616
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
61619
61617
  var CLIReader = class {
61620
61618
  getAnswers() {
61621
61619
  return this.answers;
@@ -61646,7 +61644,7 @@ var CLIReader = class {
61646
61644
  }
61647
61645
  };
61648
61646
 
61649
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
61647
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
61650
61648
  var import_inquirer2 = __toESM(require_inquirer2());
61651
61649
 
61652
61650
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -61712,7 +61710,7 @@ var I18n2 = class {
61712
61710
  }
61713
61711
  };
61714
61712
 
61715
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
61713
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
61716
61714
  var ZH_LOCALE2 = {
61717
61715
  environment: {
61718
61716
  node_version: "请升级 Node 版本至 LIS",
@@ -61739,7 +61737,7 @@ var ZH_LOCALE2 = {
61739
61737
  }
61740
61738
  };
61741
61739
 
61742
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
61740
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
61743
61741
  var EN_LOCALE2 = {
61744
61742
  environment: {
61745
61743
  node_version: "please upgrade node to lts version",
@@ -61766,14 +61764,14 @@ var EN_LOCALE2 = {
61766
61764
  }
61767
61765
  };
61768
61766
 
61769
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
61767
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
61770
61768
  var i18n2 = new I18n2();
61771
61769
  var localeKeys2 = i18n2.init("zh", {
61772
61770
  zh: ZH_LOCALE2,
61773
61771
  en: EN_LOCALE2
61774
61772
  });
61775
61773
 
61776
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
61774
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
61777
61775
  var import_lodash6 = require("@modern-js/utils/lodash");
61778
61776
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
61779
61777
  for (const question of questions) {
@@ -61801,7 +61799,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
61801
61799
  return questions;
61802
61800
  }
61803
61801
 
61804
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
61802
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
61805
61803
  var import_path5 = __toESM(require("path"));
61806
61804
  var import_utils15 = require("@modern-js/utils");
61807
61805
  var NODE_MAJOR_VERSION_MAP = {
@@ -61849,7 +61847,7 @@ async function checkUseNvm(cwd, logger) {
61849
61847
  }
61850
61848
  }
61851
61849
 
61852
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
61850
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
61853
61851
  var AppAPI = class {
61854
61852
  async checkEnvironment(nodeVersion) {
61855
61853
  if (import_utils16.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.3.8",
18
+ "version": "3.3.9",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,21 +23,21 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "2.46.1"
26
+ "@modern-js/utils": "2.47.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@modern-js/codesmith": "2.3.3",
30
- "@modern-js/codesmith-api-app": "2.3.3",
31
- "@modern-js/codesmith-api-handlebars": "2.3.3",
29
+ "@modern-js/codesmith": "2.3.4",
30
+ "@modern-js/codesmith-api-app": "2.3.4",
31
+ "@modern-js/codesmith-api-handlebars": "2.3.4",
32
32
  "@types/jest": "^29",
33
33
  "@types/node": "^14",
34
34
  "jest": "^29",
35
35
  "typescript": "^5",
36
- "@modern-js/generator-common": "3.3.8",
37
- "@modern-js/generator-utils": "3.3.8",
38
- "@scripts/build": "2.46.1",
39
- "@modern-js/plugin-i18n": "2.46.1",
40
- "@scripts/jest-config": "2.46.1"
36
+ "@modern-js/generator-common": "3.3.9",
37
+ "@modern-js/generator-utils": "3.3.9",
38
+ "@scripts/build": "2.47.0",
39
+ "@modern-js/plugin-i18n": "2.47.0",
40
+ "@scripts/jest-config": "2.47.0"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {