@modern-js/entry-generator 3.7.21 → 3.7.23

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 +27 -27
  2. package/package.json +11 -12
package/dist/index.js CHANGED
@@ -63529,13 +63529,13 @@ __export(src_exports, {
63529
63529
  module.exports = __toCommonJS(src_exports);
63530
63530
  var import_path6 = __toESM(require("path"));
63531
63531
 
63532
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63532
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63533
63533
  var import_fs_extra = __toESM(require_lib());
63534
63534
 
63535
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63535
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63536
63536
  var FS_RESOURCE = "_codesmith_core_fs_resource";
63537
63537
 
63538
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63538
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63539
63539
  function fsExists(path6) {
63540
63540
  return __async(this, null, function* () {
63541
63541
  try {
@@ -63547,19 +63547,19 @@ function fsExists(path6) {
63547
63547
  });
63548
63548
  }
63549
63549
 
63550
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63550
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63551
63551
  var import_execa = __toESM(require_execa());
63552
63552
 
63553
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63553
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63554
63554
  var import_semver = __toESM(require_semver2());
63555
63555
 
63556
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
63556
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
63557
63557
  var import_ejs = __toESM(require_ejs());
63558
63558
  function renderString(template, fullData) {
63559
63559
  return import_ejs.default.render(template, fullData) || "";
63560
63560
  }
63561
63561
 
63562
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
63562
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
63563
63563
  var EjsAPI = class {
63564
63564
  renderTemplate(_0, _1) {
63565
63565
  return __async(this, arguments, function* (templateResource, target, parameters = {}) {
@@ -63594,7 +63594,7 @@ var EjsAPI = class {
63594
63594
  }
63595
63595
  };
63596
63596
 
63597
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
63597
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
63598
63598
  var import_path = __toESM(require("path"));
63599
63599
  var FsAPI = class {
63600
63600
  renderFile(resource, target) {
@@ -63623,7 +63623,7 @@ var FsAPI = class {
63623
63623
  }
63624
63624
  };
63625
63625
 
63626
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
63626
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
63627
63627
  function canUseGit() {
63628
63628
  return __async(this, null, function* () {
63629
63629
  try {
@@ -63707,7 +63707,7 @@ function gitCommit(cwd, commitMessage) {
63707
63707
  });
63708
63708
  }
63709
63709
 
63710
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
63710
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
63711
63711
  var GitAPI = class {
63712
63712
  isInGitRepo() {
63713
63713
  return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
@@ -63763,7 +63763,7 @@ var GitAPI = class {
63763
63763
  }
63764
63764
  };
63765
63765
 
63766
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
63766
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
63767
63767
  var import_handlebars = __toESM(require_lib2());
63768
63768
  function renderString2(template, fullData, registers) {
63769
63769
  const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
@@ -63773,7 +63773,7 @@ function renderString2(template, fullData, registers) {
63773
63773
  return import_handlebars.default.compile(template)(fullData) || "";
63774
63774
  }
63775
63775
 
63776
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
63776
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
63777
63777
  var HandlebarsAPI = class {
63778
63778
  registerHelp(helpers) {
63779
63779
  return __async(this, null, function* () {
@@ -63930,7 +63930,7 @@ function __generator(thisArg, body) {
63930
63930
  }
63931
63931
  }
63932
63932
 
63933
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63933
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63934
63934
  var import_execa3 = __toESM(require_execa());
63935
63935
  function canUseNvm() {
63936
63936
  return _canUseNvm.apply(this, arguments);
@@ -64151,7 +64151,7 @@ function _canUsePnpm() {
64151
64151
  return _canUsePnpm.apply(this, arguments);
64152
64152
  }
64153
64153
 
64154
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
64154
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
64155
64155
  function execaWithStreamLog(command, args, options) {
64156
64156
  const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
64157
64157
  stdin: "inherit",
@@ -64252,7 +64252,7 @@ function pnpmInstall(_0) {
64252
64252
  });
64253
64253
  }
64254
64254
 
64255
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.6_@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
64255
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
64256
64256
  var NpmAPI = class {
64257
64257
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
64258
64258
  return npmInstall({
@@ -64280,7 +64280,7 @@ var NpmAPI = class {
64280
64280
  }
64281
64281
  };
64282
64282
 
64283
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64283
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64284
64284
  var import_lodash = __toESM(require_lodash());
64285
64285
  var import_lodash2 = __toESM(require_lodash2());
64286
64286
  var import_lodash3 = __toESM(require_lodash3());
@@ -70047,10 +70047,10 @@ var Schema = (
70047
70047
  }()
70048
70048
  );
70049
70049
 
70050
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70050
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70051
70051
  var import_inquirer = __toESM(require_inquirer());
70052
70052
 
70053
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
70053
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
70054
70054
  function validateSchema(schema) {
70055
70055
  const { type, properties } = schema;
70056
70056
  if (type !== "object") {
@@ -70137,7 +70137,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
70137
70137
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
70138
70138
  }
70139
70139
 
70140
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70140
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70141
70141
  var compileRule = (rule, scope) => {
70142
70142
  const state = Schema.compile(rule, __spreadValues({
70143
70143
  $self: {},
@@ -70237,7 +70237,7 @@ function prompt(_0) {
70237
70237
  });
70238
70238
  }
70239
70239
 
70240
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
70240
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
70241
70241
  var CLIReader = class {
70242
70242
  getAnswers() {
70243
70243
  return this.answers;
@@ -70265,7 +70265,7 @@ var CLIReader = class {
70265
70265
  }
70266
70266
  };
70267
70267
 
70268
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70268
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70269
70269
  var import_comment_json = __toESM(require_src2());
70270
70270
  var import_inquirer2 = __toESM(require_inquirer2());
70271
70271
 
@@ -70332,7 +70332,7 @@ var I18n = class {
70332
70332
  }
70333
70333
  };
70334
70334
 
70335
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
70335
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
70336
70336
  var EN_LOCALE = {
70337
70337
  environment: {
70338
70338
  node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
@@ -70359,7 +70359,7 @@ var EN_LOCALE = {
70359
70359
  }
70360
70360
  };
70361
70361
 
70362
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
70362
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
70363
70363
  var ZH_LOCALE = {
70364
70364
  environment: {
70365
70365
  node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
@@ -70386,14 +70386,14 @@ var ZH_LOCALE = {
70386
70386
  }
70387
70387
  };
70388
70388
 
70389
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
70389
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
70390
70390
  var i18n = new I18n();
70391
70391
  var localeKeys = i18n.init("zh", {
70392
70392
  zh: ZH_LOCALE,
70393
70393
  en: EN_LOCALE
70394
70394
  });
70395
70395
 
70396
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
70396
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
70397
70397
  var import_path3 = __toESM(require("path"));
70398
70398
  var NODE_MAJOR_VERSION_MAP = {
70399
70399
  "lts/*": 18,
@@ -70444,7 +70444,7 @@ function checkUseNvm(cwd, logger) {
70444
70444
  });
70445
70445
  }
70446
70446
 
70447
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
70447
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
70448
70448
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
70449
70449
  for (const question of questions) {
70450
70450
  question.default = initValue[question.name] || question.default;
@@ -70471,7 +70471,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
70471
70471
  return questions;
70472
70472
  }
70473
70473
 
70474
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70474
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70475
70475
  var AppAPI = class {
70476
70476
  checkEnvironment(nodeVersion) {
70477
70477
  return __async(this, null, function* () {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.7.21",
18
+ "version": "3.7.23",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,25 +23,24 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "devDependencies": {
26
- "@modern-js/codesmith": "2.6.6",
27
- "@modern-js/codesmith-api-app": "2.6.6",
28
- "@modern-js/codesmith-api-handlebars": "2.6.6",
29
- "@modern-js/codesmith-utils": "2.6.6",
26
+ "@modern-js/codesmith": "2.6.7",
27
+ "@modern-js/codesmith-api-app": "2.6.7",
28
+ "@modern-js/codesmith-api-handlebars": "2.6.7",
29
+ "@modern-js/codesmith-utils": "2.6.7",
30
30
  "@types/jest": "^29",
31
31
  "@types/node": "^14",
32
32
  "jest": "^29",
33
33
  "typescript": "^5",
34
- "@modern-js/generator-utils": "3.7.21",
35
- "@modern-js/generator-common": "3.7.21",
36
- "@modern-js/plugin-i18n": "2.65.3",
37
- "@scripts/build": "2.65.3",
38
- "@scripts/jest-config": "2.65.3"
34
+ "@modern-js/generator-common": "3.7.23",
35
+ "@modern-js/generator-utils": "3.7.23",
36
+ "@modern-js/plugin-i18n": "2.65.5",
37
+ "@scripts/build": "2.65.5",
38
+ "@scripts/jest-config": "2.65.5"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {
42
42
  "registry": "https://registry.npmjs.org/",
43
- "access": "public",
44
- "provenance": true
43
+ "access": "public"
45
44
  },
46
45
  "types": "./src/index.ts",
47
46
  "scripts": {