@modern-js/ssg-generator 3.7.31 → 3.7.33

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 +30 -29
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -63496,16 +63496,16 @@ __export(src_exports, {
63496
63496
  });
63497
63497
  module.exports = __toCommonJS(src_exports);
63498
63498
 
63499
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
63499
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
63500
63500
  var import_chalk = __toESM(require_source());
63501
63501
 
63502
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63502
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63503
63503
  var import_fs_extra = __toESM(require_lib());
63504
63504
 
63505
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63505
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63506
63506
  var FS_RESOURCE = "_codesmith_core_fs_resource";
63507
63507
 
63508
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63508
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63509
63509
  function fsExists(path5) {
63510
63510
  return __async(this, null, function* () {
63511
63511
  try {
@@ -63517,19 +63517,19 @@ function fsExists(path5) {
63517
63517
  });
63518
63518
  }
63519
63519
 
63520
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63520
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63521
63521
  var import_execa = __toESM(require_execa());
63522
63522
 
63523
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63523
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63524
63524
  var import_semver = __toESM(require_semver2());
63525
63525
 
63526
- // ../../../../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
63526
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
63527
63527
  var import_ejs = __toESM(require_ejs());
63528
63528
  function renderString(template, fullData) {
63529
63529
  return import_ejs.default.render(template, fullData) || "";
63530
63530
  }
63531
63531
 
63532
- // ../../../../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
63532
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
63533
63533
  var EjsAPI = class {
63534
63534
  renderTemplate(_0, _1) {
63535
63535
  return __async(this, arguments, function* (templateResource, target, parameters = {}) {
@@ -63564,7 +63564,7 @@ var EjsAPI = class {
63564
63564
  }
63565
63565
  };
63566
63566
 
63567
- // ../../../../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
63567
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
63568
63568
  var import_path = __toESM(require("path"));
63569
63569
  var FsAPI = class {
63570
63570
  renderFile(resource, target) {
@@ -63593,7 +63593,7 @@ var FsAPI = class {
63593
63593
  }
63594
63594
  };
63595
63595
 
63596
- // ../../../../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
63596
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
63597
63597
  function canUseGit() {
63598
63598
  return __async(this, null, function* () {
63599
63599
  try {
@@ -63677,7 +63677,7 @@ function gitCommit(cwd, commitMessage) {
63677
63677
  });
63678
63678
  }
63679
63679
 
63680
- // ../../../../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
63680
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
63681
63681
  var GitAPI = class {
63682
63682
  isInGitRepo() {
63683
63683
  return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
@@ -63733,7 +63733,7 @@ var GitAPI = class {
63733
63733
  }
63734
63734
  };
63735
63735
 
63736
- // ../../../../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
63736
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
63737
63737
  var import_handlebars = __toESM(require_lib2());
63738
63738
  function renderString2(template, fullData, registers) {
63739
63739
  const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
@@ -63743,7 +63743,7 @@ function renderString2(template, fullData, registers) {
63743
63743
  return import_handlebars.default.compile(template)(fullData) || "";
63744
63744
  }
63745
63745
 
63746
- // ../../../../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
63746
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
63747
63747
  var HandlebarsAPI = class {
63748
63748
  registerHelp(helpers) {
63749
63749
  return __async(this, null, function* () {
@@ -63900,7 +63900,7 @@ function __generator(thisArg, body) {
63900
63900
  }
63901
63901
  }
63902
63902
 
63903
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63903
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63904
63904
  var import_execa3 = __toESM(require_execa());
63905
63905
  function canUseNvm() {
63906
63906
  return _canUseNvm.apply(this, arguments);
@@ -64121,7 +64121,7 @@ function _canUsePnpm() {
64121
64121
  return _canUsePnpm.apply(this, arguments);
64122
64122
  }
64123
64123
 
64124
- // ../../../../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
64124
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
64125
64125
  function execaWithStreamLog(command, args, options) {
64126
64126
  const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
64127
64127
  stdin: "inherit",
@@ -64222,7 +64222,7 @@ function pnpmInstall(_0) {
64222
64222
  });
64223
64223
  }
64224
64224
 
64225
- // ../../../../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
64225
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.8_@modern-js+codesmith@2.6.8/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
64226
64226
  var NpmAPI = class {
64227
64227
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
64228
64228
  return npmInstall({
@@ -64250,7 +64250,7 @@ var NpmAPI = class {
64250
64250
  }
64251
64251
  };
64252
64252
 
64253
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64253
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.8/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64254
64254
  var import_lodash = __toESM(require_lodash());
64255
64255
  var import_lodash2 = __toESM(require_lodash2());
64256
64256
  var import_lodash3 = __toESM(require_lodash3());
@@ -70017,10 +70017,10 @@ var Schema = (
70017
70017
  }()
70018
70018
  );
70019
70019
 
70020
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70020
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70021
70021
  var import_inquirer = __toESM(require_inquirer());
70022
70022
 
70023
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
70023
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
70024
70024
  function validateSchema(schema) {
70025
70025
  const { type, properties } = schema;
70026
70026
  if (type !== "object") {
@@ -70107,7 +70107,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
70107
70107
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
70108
70108
  }
70109
70109
 
70110
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70110
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70111
70111
  var compileRule = (rule, scope) => {
70112
70112
  const state = Schema.compile(rule, __spreadValues({
70113
70113
  $self: {},
@@ -70207,7 +70207,7 @@ function prompt(_0) {
70207
70207
  });
70208
70208
  }
70209
70209
 
70210
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
70210
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
70211
70211
  var CLIReader = class {
70212
70212
  getAnswers() {
70213
70213
  return this.answers;
@@ -70235,7 +70235,7 @@ var CLIReader = class {
70235
70235
  }
70236
70236
  };
70237
70237
 
70238
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70238
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70239
70239
  var import_comment_json = __toESM(require_src2());
70240
70240
  var import_inquirer2 = __toESM(require_inquirer2());
70241
70241
 
@@ -70302,7 +70302,7 @@ var I18n = class {
70302
70302
  }
70303
70303
  };
70304
70304
 
70305
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
70305
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
70306
70306
  var EN_LOCALE = {
70307
70307
  environment: {
70308
70308
  node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
@@ -70329,7 +70329,7 @@ var EN_LOCALE = {
70329
70329
  }
70330
70330
  };
70331
70331
 
70332
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
70332
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
70333
70333
  var ZH_LOCALE = {
70334
70334
  environment: {
70335
70335
  node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
@@ -70356,14 +70356,14 @@ var ZH_LOCALE = {
70356
70356
  }
70357
70357
  };
70358
70358
 
70359
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
70359
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
70360
70360
  var i18n = new I18n();
70361
70361
  var localeKeys = i18n.init("zh", {
70362
70362
  zh: ZH_LOCALE,
70363
70363
  en: EN_LOCALE
70364
70364
  });
70365
70365
 
70366
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
70366
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
70367
70367
  var import_path3 = __toESM(require("path"));
70368
70368
  var NODE_MAJOR_VERSION_MAP = {
70369
70369
  "lts/*": 18,
@@ -70374,7 +70374,8 @@ var NODE_MAJOR_VERSION_MAP = {
70374
70374
  "lts/erbium": 12,
70375
70375
  "lts/fermium": 14,
70376
70376
  "lts/gallium": 16,
70377
- "lts/hydrogen": 18
70377
+ "lts/hydrogen": 18,
70378
+ "lts/jod": 22
70378
70379
  };
70379
70380
  function getNoteVersion() {
70380
70381
  return __async(this, null, function* () {
@@ -70414,7 +70415,7 @@ function checkUseNvm(cwd, logger) {
70414
70415
  });
70415
70416
  }
70416
70417
 
70417
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
70418
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
70418
70419
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
70419
70420
  for (const question of questions) {
70420
70421
  question.default = initValue[question.name] || question.default;
@@ -70441,7 +70442,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
70441
70442
  return questions;
70442
70443
  }
70443
70444
 
70444
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70445
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.8_@modern-js+codesmith@2.6.8_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70445
70446
  var AppAPI = class {
70446
70447
  checkEnvironment(nodeVersion) {
70447
70448
  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.31",
18
+ "version": "3.7.33",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,17 +23,17 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "devDependencies": {
26
- "@modern-js/codesmith": "2.6.7",
27
- "@modern-js/codesmith-api-app": "2.6.7",
28
- "@modern-js/codesmith-utils": "2.6.7",
26
+ "@modern-js/codesmith": "2.6.8",
27
+ "@modern-js/codesmith-api-app": "2.6.8",
28
+ "@modern-js/codesmith-utils": "2.6.8",
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.31",
34
- "@modern-js/generator-common": "3.7.31",
35
- "@modern-js/generator-utils": "3.7.31",
36
- "@modern-js/plugin-i18n": "2.67.6",
33
+ "@modern-js/dependence-generator": "3.7.33",
34
+ "@modern-js/generator-common": "3.7.33",
35
+ "@modern-js/generator-utils": "3.7.33",
36
+ "@modern-js/plugin-i18n": "2.67.8",
37
37
  "@scripts/build": "2.66.0",
38
38
  "@scripts/jest-config": "2.66.0"
39
39
  },