@modern-js/entry-generator 3.3.9 → 3.3.10

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
@@ -51404,12 +51404,12 @@ function _define_property2(obj, key, value) {
51404
51404
  return obj;
51405
51405
  }
51406
51406
 
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
51407
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
51408
51408
  var import_utils16 = require("@modern-js/utils");
51409
51409
  var import_lodash7 = require("@modern-js/utils/lodash");
51410
51410
  var import_comment_json = __toESM(require_src2());
51411
51411
 
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
51412
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
51413
51413
  var import_utils4 = require("@modern-js/utils");
51414
51414
  async function canUseNvm() {
51415
51415
  try {
@@ -51459,7 +51459,7 @@ async function canUsePnpm3() {
51459
51459
  }
51460
51460
  }
51461
51461
 
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
51462
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
51463
51463
  var import_utils5 = require("@modern-js/utils");
51464
51464
  function execaWithStreamLog(command, args, options) {
51465
51465
  const promise = (0, import_utils5.execa)(command, args, {
@@ -51555,7 +51555,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
51555
51555
  throw new Error("please install pnpm first");
51556
51556
  }
51557
51557
 
51558
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
51558
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
51559
51559
  var NpmAPI = class {
51560
51560
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
51561
51561
  return npmInstall({
@@ -51584,7 +51584,7 @@ var NpmAPI = class {
51584
51584
  }
51585
51585
  };
51586
51586
 
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
51587
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
51588
51588
  var import_utils7 = require("@modern-js/utils");
51589
51589
  async function canUseGit() {
51590
51590
  try {
@@ -51659,7 +51659,7 @@ async function gitCommit(cwd, commitMessage) {
51659
51659
  });
51660
51660
  }
51661
51661
 
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
51662
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
51663
51663
  var GitAPI = class {
51664
51664
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
51665
51665
  const canUse = await canUseGit();
@@ -51711,12 +51711,12 @@ var GitAPI = class {
51711
51711
  }
51712
51712
  };
51713
51713
 
51714
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
51714
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
51715
51715
  var import_path2 = __toESM(require("path"));
51716
51716
  var import_utils9 = require("@modern-js/utils");
51717
51717
  var FS_RESOURCE = "_codesmith_core_fs_resource";
51718
51718
 
51719
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
51719
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
51720
51720
  var import_utils10 = require("@modern-js/utils");
51721
51721
  async function fsExists(path7) {
51722
51722
  try {
@@ -51727,7 +51727,7 @@ async function fsExists(path7) {
51727
51727
  }
51728
51728
  }
51729
51729
 
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
51730
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
51731
51731
  var import_handlebars = __toESM(require_lib());
51732
51732
  function renderString(template, fullData, registers) {
51733
51733
  const helpers = {
@@ -51741,7 +51741,7 @@ function renderString(template, fullData, registers) {
51741
51741
  return import_handlebars.default.compile(template)(fullData) || "";
51742
51742
  }
51743
51743
 
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
51744
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
51745
51745
  var HandlebarsAPI = class {
51746
51746
  async registerHelp(helpers) {
51747
51747
  this.registers.helpers = {
@@ -51791,13 +51791,13 @@ var HandlebarsAPI = class {
51791
51791
  }
51792
51792
  };
51793
51793
 
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
51794
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
51795
51795
  var import_ejs = __toESM(require_ejs());
51796
51796
  function renderString2(template, fullData) {
51797
51797
  return import_ejs.default.render(template, fullData) || "";
51798
51798
  }
51799
51799
 
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
51800
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
51801
51801
  var EjsAPI = class {
51802
51802
  async renderTemplate(templateResource, target, parameters = {}) {
51803
51803
  if (templateResource._type !== FS_RESOURCE) {
@@ -51830,7 +51830,7 @@ var EjsAPI = class {
51830
51830
  }
51831
51831
  };
51832
51832
 
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
51833
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
51834
51834
  var import_path3 = __toESM(require("path"));
51835
51835
  var import_utils13 = require("@modern-js/utils");
51836
51836
  var FsAPI = class {
@@ -61414,10 +61414,10 @@ var Schema = (
61414
61414
  }()
61415
61415
  );
61416
61416
 
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
61417
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
61418
61418
  var import_inquirer = __toESM(require_inquirer());
61419
61419
 
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
61420
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
61421
61421
  var import_lodash3 = require("@modern-js/utils/lodash");
61422
61422
  function validateSchema(schema) {
61423
61423
  const { type, properties } = schema;
@@ -61509,7 +61509,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
61509
61509
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
61510
61510
  }
61511
61511
 
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
61512
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
61513
61513
  var compileRule = (rule, scope) => {
61514
61514
  const state = Schema.compile(rule, {
61515
61515
  $self: {},
@@ -61613,7 +61613,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
61613
61613
  return answers;
61614
61614
  }
61615
61615
 
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
61616
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
61617
61617
  var CLIReader = class {
61618
61618
  getAnswers() {
61619
61619
  return this.answers;
@@ -61644,7 +61644,7 @@ var CLIReader = class {
61644
61644
  }
61645
61645
  };
61646
61646
 
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
61647
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
61648
61648
  var import_inquirer2 = __toESM(require_inquirer2());
61649
61649
 
61650
61650
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -61710,7 +61710,7 @@ var I18n2 = class {
61710
61710
  }
61711
61711
  };
61712
61712
 
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
61713
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
61714
61714
  var ZH_LOCALE2 = {
61715
61715
  environment: {
61716
61716
  node_version: "请升级 Node 版本至 LIS",
@@ -61737,7 +61737,7 @@ var ZH_LOCALE2 = {
61737
61737
  }
61738
61738
  };
61739
61739
 
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
61740
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
61741
61741
  var EN_LOCALE2 = {
61742
61742
  environment: {
61743
61743
  node_version: "please upgrade node to lts version",
@@ -61764,14 +61764,14 @@ var EN_LOCALE2 = {
61764
61764
  }
61765
61765
  };
61766
61766
 
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
61767
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
61768
61768
  var i18n2 = new I18n2();
61769
61769
  var localeKeys2 = i18n2.init("zh", {
61770
61770
  zh: ZH_LOCALE2,
61771
61771
  en: EN_LOCALE2
61772
61772
  });
61773
61773
 
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
61774
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
61775
61775
  var import_lodash6 = require("@modern-js/utils/lodash");
61776
61776
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
61777
61777
  for (const question of questions) {
@@ -61799,7 +61799,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
61799
61799
  return questions;
61800
61800
  }
61801
61801
 
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
61802
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
61803
61803
  var import_path5 = __toESM(require("path"));
61804
61804
  var import_utils15 = require("@modern-js/utils");
61805
61805
  var NODE_MAJOR_VERSION_MAP = {
@@ -61847,7 +61847,7 @@ async function checkUseNvm(cwd, logger) {
61847
61847
  }
61848
61848
  }
61849
61849
 
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
61850
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
61851
61851
  var AppAPI = class {
61852
61852
  async checkEnvironment(nodeVersion) {
61853
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.9",
18
+ "version": "3.3.10",
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.47.0"
26
+ "@modern-js/utils": "2.47.1"
27
27
  },
28
28
  "devDependencies": {
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",
29
+ "@modern-js/codesmith": "2.3.5",
30
+ "@modern-js/codesmith-api-app": "2.3.5",
31
+ "@modern-js/codesmith-api-handlebars": "2.3.5",
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.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"
36
+ "@modern-js/generator-common": "3.3.10",
37
+ "@modern-js/generator-utils": "3.3.10",
38
+ "@scripts/build": "2.47.1",
39
+ "@scripts/jest-config": "2.47.1",
40
+ "@modern-js/plugin-i18n": "2.47.1"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {