@modern-js/ssg-generator 3.7.18 → 3.7.20

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 +112 -39
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -1629,9 +1629,9 @@ var require_source = __commonJS({
1629
1629
  }
1630
1630
  });
1631
1631
 
1632
- // ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
1632
+ // ../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
1633
1633
  var require_universalify = __commonJS({
1634
- "../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
1634
+ "../../../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports) {
1635
1635
  "use strict";
1636
1636
  exports.fromCallback = function(fn) {
1637
1637
  return Object.defineProperty(function(...args) {
@@ -1639,11 +1639,8 @@ var require_universalify = __commonJS({
1639
1639
  fn.apply(this, args);
1640
1640
  else {
1641
1641
  return new Promise((resolve, reject) => {
1642
- fn.call(
1643
- this,
1644
- ...args,
1645
- (err, res) => err != null ? reject(err) : resolve(res)
1646
- );
1642
+ args.push((err, res) => err != null ? reject(err) : resolve(res));
1643
+ fn.apply(this, args);
1647
1644
  });
1648
1645
  }
1649
1646
  }, "name", { value: fn.name });
@@ -1653,8 +1650,10 @@ var require_universalify = __commonJS({
1653
1650
  const cb = args[args.length - 1];
1654
1651
  if (typeof cb !== "function")
1655
1652
  return fn.apply(this, args);
1656
- else
1657
- fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
1653
+ else {
1654
+ args.pop();
1655
+ fn.apply(this, args).then((r) => cb(null, r), cb);
1656
+ }
1658
1657
  }, "name", { value: fn.name });
1659
1658
  };
1660
1659
  }
@@ -3876,6 +3875,37 @@ var require_ensure = __commonJS({
3876
3875
  }
3877
3876
  });
3878
3877
 
3878
+ // ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
3879
+ var require_universalify2 = __commonJS({
3880
+ "../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
3881
+ "use strict";
3882
+ exports.fromCallback = function(fn) {
3883
+ return Object.defineProperty(function(...args) {
3884
+ if (typeof args[args.length - 1] === "function")
3885
+ fn.apply(this, args);
3886
+ else {
3887
+ return new Promise((resolve, reject) => {
3888
+ fn.call(
3889
+ this,
3890
+ ...args,
3891
+ (err, res) => err != null ? reject(err) : resolve(res)
3892
+ );
3893
+ });
3894
+ }
3895
+ }, "name", { value: fn.name });
3896
+ };
3897
+ exports.fromPromise = function(fn) {
3898
+ return Object.defineProperty(function(...args) {
3899
+ const cb = args[args.length - 1];
3900
+ if (typeof cb !== "function")
3901
+ return fn.apply(this, args);
3902
+ else
3903
+ fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
3904
+ }, "name", { value: fn.name });
3905
+ };
3906
+ }
3907
+ });
3908
+
3879
3909
  // ../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
3880
3910
  var require_utils2 = __commonJS({
3881
3911
  "../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
@@ -3904,7 +3934,7 @@ var require_jsonfile = __commonJS({
3904
3934
  } catch (_) {
3905
3935
  _fs = require("fs");
3906
3936
  }
3907
- var universalify = require_universalify();
3937
+ var universalify = require_universalify2();
3908
3938
  var { stringify: stringify2, stripBom } = require_utils2();
3909
3939
  function _readFile(_0) {
3910
3940
  return __async(this, arguments, function* (file, options = {}) {
@@ -63497,16 +63527,16 @@ __export(src_exports, {
63497
63527
  });
63498
63528
  module.exports = __toCommonJS(src_exports);
63499
63529
 
63500
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.5/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
63530
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/chalk.js
63501
63531
  var import_chalk = __toESM(require_source());
63502
63532
 
63503
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.5/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63533
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
63504
63534
  var import_fs_extra = __toESM(require_lib());
63505
63535
 
63506
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63536
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
63507
63537
  var FS_RESOURCE = "_codesmith_core_fs_resource";
63508
63538
 
63509
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63539
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.6/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
63510
63540
  function fsExists(path5) {
63511
63541
  return __async(this, null, function* () {
63512
63542
  try {
@@ -63518,19 +63548,19 @@ function fsExists(path5) {
63518
63548
  });
63519
63549
  }
63520
63550
 
63521
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.5/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63551
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
63522
63552
  var import_execa = __toESM(require_execa());
63523
63553
 
63524
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.5/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63554
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
63525
63555
  var import_semver = __toESM(require_semver2());
63526
63556
 
63527
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
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
63528
63558
  var import_ejs = __toESM(require_ejs());
63529
63559
  function renderString(template, fullData) {
63530
63560
  return import_ejs.default.render(template, fullData) || "";
63531
63561
  }
63532
63562
 
63533
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
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
63534
63564
  var EjsAPI = class {
63535
63565
  renderTemplate(_0, _1) {
63536
63566
  return __async(this, arguments, function* (templateResource, target, parameters = {}) {
@@ -63565,7 +63595,7 @@ var EjsAPI = class {
63565
63595
  }
63566
63596
  };
63567
63597
 
63568
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
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
63569
63599
  var import_path = __toESM(require("path"));
63570
63600
  var FsAPI = class {
63571
63601
  renderFile(resource, target) {
@@ -63594,7 +63624,7 @@ var FsAPI = class {
63594
63624
  }
63595
63625
  };
63596
63626
 
63597
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
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
63598
63628
  function canUseGit() {
63599
63629
  return __async(this, null, function* () {
63600
63630
  try {
@@ -63678,7 +63708,7 @@ function gitCommit(cwd, commitMessage) {
63678
63708
  });
63679
63709
  }
63680
63710
 
63681
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
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
63682
63712
  var GitAPI = class {
63683
63713
  isInGitRepo() {
63684
63714
  return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
@@ -63734,7 +63764,7 @@ var GitAPI = class {
63734
63764
  }
63735
63765
  };
63736
63766
 
63737
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
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
63738
63768
  var import_handlebars = __toESM(require_lib2());
63739
63769
  function renderString2(template, fullData, registers) {
63740
63770
  const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
@@ -63744,7 +63774,7 @@ function renderString2(template, fullData, registers) {
63744
63774
  return import_handlebars.default.compile(template)(fullData) || "";
63745
63775
  }
63746
63776
 
63747
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
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
63748
63778
  var HandlebarsAPI = class {
63749
63779
  registerHelp(helpers) {
63750
63780
  return __async(this, null, function* () {
@@ -63901,7 +63931,7 @@ function __generator(thisArg, body) {
63901
63931
  }
63902
63932
  }
63903
63933
 
63904
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.5/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63934
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
63905
63935
  var import_execa3 = __toESM(require_execa());
63906
63936
  function canUseNvm() {
63907
63937
  return _canUseNvm.apply(this, arguments);
@@ -63946,6 +63976,49 @@ function _canUseNvm() {
63946
63976
  });
63947
63977
  return _canUseNvm.apply(this, arguments);
63948
63978
  }
63979
+ function canUseFnm() {
63980
+ return _canUseFnm.apply(this, arguments);
63981
+ }
63982
+ function _canUseFnm() {
63983
+ _canUseFnm = _async_to_generator(function() {
63984
+ var e;
63985
+ return __generator(this, function(_state) {
63986
+ switch (_state.label) {
63987
+ case 0:
63988
+ _state.trys.push([
63989
+ 0,
63990
+ 2,
63991
+ ,
63992
+ 3
63993
+ ]);
63994
+ return [
63995
+ 4,
63996
+ (0, import_execa3.default)("fnm --version", {
63997
+ env: process.env,
63998
+ shell: true
63999
+ })
64000
+ ];
64001
+ case 1:
64002
+ _state.sent();
64003
+ return [
64004
+ 2,
64005
+ true
64006
+ ];
64007
+ case 2:
64008
+ e = _state.sent();
64009
+ return [
64010
+ 2,
64011
+ false
64012
+ ];
64013
+ case 3:
64014
+ return [
64015
+ 2
64016
+ ];
64017
+ }
64018
+ });
64019
+ });
64020
+ return _canUseFnm.apply(this, arguments);
64021
+ }
63949
64022
  function canUseNpm() {
63950
64023
  return _canUseNpm.apply(this, arguments);
63951
64024
  }
@@ -64079,7 +64152,7 @@ function _canUsePnpm() {
64079
64152
  return _canUsePnpm.apply(this, arguments);
64080
64153
  }
64081
64154
 
64082
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
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
64083
64156
  function execaWithStreamLog(command, args, options) {
64084
64157
  const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
64085
64158
  stdin: "inherit",
@@ -64180,7 +64253,7 @@ function pnpmInstall(_0) {
64180
64253
  });
64181
64254
  }
64182
64255
 
64183
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.5_@modern-js+codesmith@2.6.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
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
64184
64257
  var NpmAPI = class {
64185
64258
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
64186
64259
  return npmInstall({
@@ -64208,7 +64281,7 @@ var NpmAPI = class {
64208
64281
  }
64209
64282
  };
64210
64283
 
64211
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.5/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64284
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.6/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
64212
64285
  var import_lodash = __toESM(require_lodash());
64213
64286
  var import_lodash2 = __toESM(require_lodash2());
64214
64287
  var import_lodash3 = __toESM(require_lodash3());
@@ -69975,10 +70048,10 @@ var Schema = (
69975
70048
  }()
69976
70049
  );
69977
70050
 
69978
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
69979
70052
  var import_inquirer = __toESM(require_inquirer());
69980
70053
 
69981
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
69982
70055
  function validateSchema(schema) {
69983
70056
  const { type, properties } = schema;
69984
70057
  if (type !== "object") {
@@ -70065,7 +70138,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
70065
70138
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
70066
70139
  }
70067
70140
 
70068
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
70069
70142
  var compileRule = (rule, scope) => {
70070
70143
  const state = Schema.compile(rule, __spreadValues({
70071
70144
  $self: {},
@@ -70165,7 +70238,7 @@ function prompt(_0) {
70165
70238
  });
70166
70239
  }
70167
70240
 
70168
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
70169
70242
  var CLIReader = class {
70170
70243
  getAnswers() {
70171
70244
  return this.answers;
@@ -70193,7 +70266,7 @@ var CLIReader = class {
70193
70266
  }
70194
70267
  };
70195
70268
 
70196
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70197
70270
  var import_comment_json = __toESM(require_src2());
70198
70271
  var import_inquirer2 = __toESM(require_inquirer2());
70199
70272
 
@@ -70260,7 +70333,7 @@ var I18n = class {
70260
70333
  }
70261
70334
  };
70262
70335
 
70263
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
70264
70337
  var EN_LOCALE = {
70265
70338
  environment: {
70266
70339
  node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
@@ -70287,7 +70360,7 @@ var EN_LOCALE = {
70287
70360
  }
70288
70361
  };
70289
70362
 
70290
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
70291
70364
  var ZH_LOCALE = {
70292
70365
  environment: {
70293
70366
  node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
@@ -70314,14 +70387,14 @@ var ZH_LOCALE = {
70314
70387
  }
70315
70388
  };
70316
70389
 
70317
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
70318
70391
  var i18n = new I18n();
70319
70392
  var localeKeys = i18n.init("zh", {
70320
70393
  zh: ZH_LOCALE,
70321
70394
  en: EN_LOCALE
70322
70395
  });
70323
70396
 
70324
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
70325
70398
  var import_path3 = __toESM(require("path"));
70326
70399
  var NODE_MAJOR_VERSION_MAP = {
70327
70400
  "lts/*": 18,
@@ -70356,7 +70429,7 @@ function checkUseNvm(cwd, logger) {
70356
70429
  if (expectNodeVersion === import_semver.default.major(currentNodeVersion)) {
70357
70430
  return false;
70358
70431
  }
70359
- if (!(yield canUseNvm())) {
70432
+ if (!((yield canUseNvm()) || (yield canUseFnm()))) {
70360
70433
  logger.warn(`🟡 [Check nvm Error]: Current node version is not expect, you should install ${expectNodeVersion}`);
70361
70434
  return false;
70362
70435
  }
@@ -70372,7 +70445,7 @@ function checkUseNvm(cwd, logger) {
70372
70445
  });
70373
70446
  }
70374
70447
 
70375
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
70376
70449
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
70377
70450
  for (const question of questions) {
70378
70451
  question.default = initValue[question.name] || question.default;
@@ -70399,7 +70472,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
70399
70472
  return questions;
70400
70473
  }
70401
70474
 
70402
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.5_@modern-js+codesmith@2.6.5_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.6_@modern-js+codesmith@2.6.6_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
70403
70476
  var AppAPI = class {
70404
70477
  checkEnvironment(nodeVersion) {
70405
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.18",
18
+ "version": "3.7.20",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,19 +23,19 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "devDependencies": {
26
- "@modern-js/codesmith": "2.6.5",
27
- "@modern-js/codesmith-api-app": "2.6.5",
28
- "@modern-js/codesmith-utils": "2.6.5",
26
+ "@modern-js/codesmith": "2.6.6",
27
+ "@modern-js/codesmith-api-app": "2.6.6",
28
+ "@modern-js/codesmith-utils": "2.6.6",
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.18",
34
- "@modern-js/generator-common": "3.7.18",
35
- "@modern-js/generator-utils": "3.7.18",
36
- "@modern-js/plugin-i18n": "2.65.0",
37
- "@scripts/build": "2.65.0",
38
- "@scripts/jest-config": "2.65.0"
33
+ "@modern-js/dependence-generator": "3.7.20",
34
+ "@modern-js/generator-utils": "3.7.20",
35
+ "@modern-js/generator-common": "3.7.20",
36
+ "@modern-js/plugin-i18n": "2.65.2",
37
+ "@scripts/build": "2.65.2",
38
+ "@scripts/jest-config": "2.65.2"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {