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