@modern-js/entry-generator 3.3.6 → 3.3.7

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 -24
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -51406,12 +51406,12 @@ function _define_property2(obj, key, value) {
51406
51406
  return obj;
51407
51407
  }
51408
51408
 
51409
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
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
51410
51410
  var import_utils16 = require("@modern-js/utils");
51411
51411
  var import_lodash7 = require("@modern-js/utils/lodash");
51412
51412
  var import_comment_json = __toESM(require_src2());
51413
51413
 
51414
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
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
51415
51415
  var import_utils4 = require("@modern-js/utils");
51416
51416
  async function canUseNvm() {
51417
51417
  try {
@@ -51461,7 +51461,7 @@ async function canUsePnpm3() {
51461
51461
  }
51462
51462
  }
51463
51463
 
51464
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
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
51465
51465
  var import_utils5 = require("@modern-js/utils");
51466
51466
  function execaWithStreamLog(command, args, options) {
51467
51467
  const promise = (0, import_utils5.execa)(command, args, {
@@ -51557,7 +51557,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
51557
51557
  throw new Error("please install pnpm first");
51558
51558
  }
51559
51559
 
51560
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
51560
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
51561
51561
  var NpmAPI = class {
51562
51562
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
51563
51563
  return npmInstall({
@@ -51586,7 +51586,7 @@ var NpmAPI = class {
51586
51586
  }
51587
51587
  };
51588
51588
 
51589
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
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
51590
51590
  var import_utils7 = require("@modern-js/utils");
51591
51591
  async function canUseGit() {
51592
51592
  try {
@@ -51661,7 +51661,7 @@ async function gitCommit(cwd, commitMessage) {
51661
51661
  });
51662
51662
  }
51663
51663
 
51664
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
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
51665
51665
  var GitAPI = class {
51666
51666
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
51667
51667
  const canUse = await canUseGit();
@@ -51713,12 +51713,12 @@ var GitAPI = class {
51713
51713
  }
51714
51714
  };
51715
51715
 
51716
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
51716
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
51717
51717
  var import_path2 = __toESM(require("path"));
51718
51718
  var import_utils9 = require("@modern-js/utils");
51719
51719
  var FS_RESOURCE = "_codesmith_core_fs_resource";
51720
51720
 
51721
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
51721
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
51722
51722
  var import_utils10 = require("@modern-js/utils");
51723
51723
  async function fsExists(path7) {
51724
51724
  try {
@@ -51729,7 +51729,7 @@ async function fsExists(path7) {
51729
51729
  }
51730
51730
  }
51731
51731
 
51732
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
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
51733
51733
  var import_handlebars = __toESM(require_lib());
51734
51734
  function renderString(template, fullData, registers) {
51735
51735
  const helpers = {
@@ -51743,7 +51743,7 @@ function renderString(template, fullData, registers) {
51743
51743
  return import_handlebars.default.compile(template)(fullData) || "";
51744
51744
  }
51745
51745
 
51746
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
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
51747
51747
  var HandlebarsAPI = class {
51748
51748
  async registerHelp(helpers) {
51749
51749
  this.registers.helpers = {
@@ -51793,13 +51793,13 @@ var HandlebarsAPI = class {
51793
51793
  }
51794
51794
  };
51795
51795
 
51796
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
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
51797
51797
  var import_ejs = __toESM(require_ejs());
51798
51798
  function renderString2(template, fullData) {
51799
51799
  return import_ejs.default.render(template, fullData) || "";
51800
51800
  }
51801
51801
 
51802
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
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
51803
51803
  var EjsAPI = class {
51804
51804
  async renderTemplate(templateResource, target, parameters = {}) {
51805
51805
  if (templateResource._type !== FS_RESOURCE) {
@@ -51832,7 +51832,7 @@ var EjsAPI = class {
51832
51832
  }
51833
51833
  };
51834
51834
 
51835
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
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
51836
51836
  var import_path3 = __toESM(require("path"));
51837
51837
  var import_utils13 = require("@modern-js/utils");
51838
51838
  var FsAPI = class {
@@ -61416,10 +61416,10 @@ var Schema = (
61416
61416
  }()
61417
61417
  );
61418
61418
 
61419
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
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
61420
61420
  var import_inquirer = __toESM(require_inquirer());
61421
61421
 
61422
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
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
61423
61423
  var import_lodash3 = require("@modern-js/utils/lodash");
61424
61424
  function validateSchema(schema) {
61425
61425
  const { type, properties } = schema;
@@ -61511,7 +61511,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
61511
61511
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
61512
61512
  }
61513
61513
 
61514
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
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
61515
61515
  var compileRule = (rule, scope) => {
61516
61516
  const state = Schema.compile(rule, {
61517
61517
  $self: {},
@@ -61615,7 +61615,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
61615
61615
  return answers;
61616
61616
  }
61617
61617
 
61618
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
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
61619
61619
  var CLIReader = class {
61620
61620
  getAnswers() {
61621
61621
  return this.answers;
@@ -61646,7 +61646,7 @@ var CLIReader = class {
61646
61646
  }
61647
61647
  };
61648
61648
 
61649
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
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
61650
61650
  var import_inquirer2 = __toESM(require_inquirer2());
61651
61651
 
61652
61652
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -61712,7 +61712,7 @@ var I18n2 = class {
61712
61712
  }
61713
61713
  };
61714
61714
 
61715
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
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
61716
61716
  var ZH_LOCALE2 = {
61717
61717
  environment: {
61718
61718
  node_version: "请升级 Node 版本至 LIS",
@@ -61739,7 +61739,7 @@ var ZH_LOCALE2 = {
61739
61739
  }
61740
61740
  };
61741
61741
 
61742
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
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
61743
61743
  var EN_LOCALE2 = {
61744
61744
  environment: {
61745
61745
  node_version: "please upgrade node to lts version",
@@ -61766,14 +61766,14 @@ var EN_LOCALE2 = {
61766
61766
  }
61767
61767
  };
61768
61768
 
61769
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
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
61770
61770
  var i18n2 = new I18n2();
61771
61771
  var localeKeys2 = i18n2.init("zh", {
61772
61772
  zh: ZH_LOCALE2,
61773
61773
  en: EN_LOCALE2
61774
61774
  });
61775
61775
 
61776
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
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
61777
61777
  var import_lodash6 = require("@modern-js/utils/lodash");
61778
61778
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
61779
61779
  for (const question of questions) {
@@ -61801,7 +61801,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
61801
61801
  return questions;
61802
61802
  }
61803
61803
 
61804
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
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
61805
61805
  var import_path5 = __toESM(require("path"));
61806
61806
  var import_utils15 = require("@modern-js/utils");
61807
61807
  var NODE_MAJOR_VERSION_MAP = {
@@ -61849,7 +61849,7 @@ async function checkUseNvm(cwd, logger) {
61849
61849
  }
61850
61850
  }
61851
61851
 
61852
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
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
61853
61853
  var AppAPI = class {
61854
61854
  async checkEnvironment(nodeVersion) {
61855
61855
  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.6",
18
+ "version": "3.3.7",
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.45.0"
26
+ "@modern-js/utils": "2.46.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@modern-js/codesmith": "2.3.2",
30
- "@modern-js/codesmith-api-app": "2.3.2",
31
- "@modern-js/codesmith-api-handlebars": "2.3.2",
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",
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.6",
37
- "@modern-js/generator-utils": "3.3.6",
38
- "@scripts/build": "2.45.0",
39
- "@scripts/jest-config": "2.45.0",
40
- "@modern-js/plugin-i18n": "2.45.0"
36
+ "@modern-js/plugin-i18n": "2.46.0",
37
+ "@modern-js/generator-common": "3.3.7",
38
+ "@modern-js/generator-utils": "3.3.7",
39
+ "@scripts/build": "2.46.0",
40
+ "@scripts/jest-config": "2.46.0"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {