@modern-js/repo-generator 0.0.0-nightly-20240226170701 → 0.0.0-nightly-20240227061009

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 +56 -54
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -68856,12 +68856,12 @@ function _define_property(obj, key, value) {
68856
68856
  return obj;
68857
68857
  }
68858
68858
 
68859
- // ../../../../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
68859
+ // ../../../../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
68860
68860
  var import_utils46 = require("@modern-js/utils");
68861
68861
  var import_lodash6 = require("@modern-js/utils/lodash");
68862
68862
  var import_comment_json = __toESM(require_src2());
68863
68863
 
68864
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
68864
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
68865
68865
  var import_utils = require("@modern-js/utils");
68866
68866
  async function canUseNvm() {
68867
68867
  try {
@@ -68911,7 +68911,7 @@ async function canUsePnpm() {
68911
68911
  }
68912
68912
  }
68913
68913
 
68914
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
68914
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
68915
68915
  var import_utils2 = require("@modern-js/utils");
68916
68916
  function execaWithStreamLog(command, args, options) {
68917
68917
  const promise = (0, import_utils2.execa)(command, args, {
@@ -69007,7 +69007,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
69007
69007
  throw new Error("please install pnpm first");
69008
69008
  }
69009
69009
 
69010
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
69010
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
69011
69011
  var NpmAPI = class {
69012
69012
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
69013
69013
  return npmInstall({
@@ -69036,7 +69036,7 @@ var NpmAPI = class {
69036
69036
  }
69037
69037
  };
69038
69038
 
69039
- // ../../../../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
69039
+ // ../../../../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
69040
69040
  var import_utils4 = require("@modern-js/utils");
69041
69041
  async function canUseGit() {
69042
69042
  try {
@@ -69111,7 +69111,7 @@ async function gitCommit(cwd, commitMessage) {
69111
69111
  });
69112
69112
  }
69113
69113
 
69114
- // ../../../../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
69114
+ // ../../../../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
69115
69115
  var GitAPI = class {
69116
69116
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
69117
69117
  const canUse = await canUseGit();
@@ -69163,7 +69163,7 @@ var GitAPI = class {
69163
69163
  }
69164
69164
  };
69165
69165
 
69166
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
69166
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
69167
69167
  var LoggerLevel;
69168
69168
  (function(LoggerLevel2) {
69169
69169
  LoggerLevel2["Error"] = "error";
@@ -69184,7 +69184,7 @@ var LevelPriority = [
69184
69184
  LoggerLevel.Stream
69185
69185
  ];
69186
69186
 
69187
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
69187
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
69188
69188
  var import_utils6 = require("@modern-js/utils");
69189
69189
  var Logger = class {
69190
69190
  get currentLevelIndex() {
@@ -69245,23 +69245,23 @@ var Logger = class {
69245
69245
  }
69246
69246
  };
69247
69247
 
69248
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
69248
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
69249
69249
  var import_path7 = __toESM(require("path"));
69250
69250
 
69251
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69251
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69252
69252
  var import_path4 = __toESM(require("path"));
69253
69253
  var import_events = require("events");
69254
69254
  var import_utils11 = require("@modern-js/utils");
69255
69255
 
69256
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69256
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69257
69257
  var import_path2 = __toESM(require("path"));
69258
69258
  var import_utils8 = require("@modern-js/utils");
69259
69259
 
69260
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69260
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69261
69261
  var import_path = __toESM(require("path"));
69262
69262
  var import_utils7 = require("@modern-js/utils");
69263
69263
 
69264
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
69264
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
69265
69265
  var IMAGE_EXT_LIST = [
69266
69266
  ".jpg",
69267
69267
  ".jpeg",
@@ -69275,7 +69275,7 @@ var IMAGE_EXT_LIST = [
69275
69275
  ".wmf"
69276
69276
  ];
69277
69277
 
69278
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69278
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69279
69279
  var FS_RESOURCE = "_codesmith_core_fs_resource";
69280
69280
  var FsResource = class {
69281
69281
  async value() {
@@ -69301,7 +69301,7 @@ var FsResource = class {
69301
69301
  }
69302
69302
  };
69303
69303
 
69304
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69304
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69305
69305
  var promisifyGlob = function(pattern, options) {
69306
69306
  return new Promise((resolve, reject) => {
69307
69307
  (0, import_utils8.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
@@ -69329,7 +69329,7 @@ var FsMaterial = class {
69329
69329
  }
69330
69330
  };
69331
69331
 
69332
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69332
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69333
69333
  var nodeRequire = (path18) => {
69334
69334
  try {
69335
69335
  const module2 = __non_webpack_require__(path18);
@@ -69346,11 +69346,11 @@ var nodeRequire = (path18) => {
69346
69346
  }
69347
69347
  };
69348
69348
 
69349
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69349
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69350
69350
  var import_path3 = __toESM(require("path"));
69351
69351
  var import_utils10 = require("@modern-js/utils");
69352
69352
 
69353
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69353
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69354
69354
  var import_utils9 = require("@modern-js/utils");
69355
69355
  async function fsExists(path18) {
69356
69356
  try {
@@ -69361,7 +69361,7 @@ async function fsExists(path18) {
69361
69361
  }
69362
69362
  }
69363
69363
 
69364
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69364
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69365
69365
  var MaxTimes = 5;
69366
69366
  async function getGeneratorDir(generator) {
69367
69367
  let result = generator;
@@ -69380,7 +69380,7 @@ async function getGeneratorDir(generator) {
69380
69380
  return result;
69381
69381
  }
69382
69382
 
69383
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69383
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69384
69384
  var GeneratorCore = class {
69385
69385
  get lifeCycleMethod() {
69386
69386
  return {
@@ -69585,10 +69585,10 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
69585
69585
  }
69586
69586
  };
69587
69587
 
69588
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69588
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69589
69589
  var import_path6 = __toESM(require("path"));
69590
69590
 
69591
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69591
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69592
69592
  var import_path5 = __toESM(require("path"));
69593
69593
  var import_utils12 = require("@modern-js/utils");
69594
69594
  async function canUseYarn2() {
@@ -69636,6 +69636,7 @@ async function runInstall(targetDir, registryUrl) {
69636
69636
  "install",
69637
69637
  "--prod",
69638
69638
  "--reporter=silent",
69639
+ "--prefer-offline",
69639
69640
  "--ignore-scripts"
69640
69641
  ];
69641
69642
  if (registryUrl) {
@@ -69658,6 +69659,7 @@ async function runInstall(targetDir, registryUrl) {
69658
69659
  "install",
69659
69660
  "--production",
69660
69661
  "--loglevel=error",
69662
+ "--prefer-offline",
69661
69663
  "--ignore-scripts"
69662
69664
  ];
69663
69665
  if (registryUrl) {
@@ -69667,7 +69669,7 @@ async function runInstall(targetDir, registryUrl) {
69667
69669
  }
69668
69670
  }
69669
69671
 
69670
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69672
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69671
69673
  async function timeoutPromise(promise, ms, reason = "Operation") {
69672
69674
  let timeoutId = null;
69673
69675
  const delayPromise = (ms2) => new Promise((resolve) => {
@@ -69689,7 +69691,7 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
69689
69691
  }
69690
69692
  }
69691
69693
 
69692
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69694
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69693
69695
  var import_os = __toESM(require("os"));
69694
69696
  var import_utils38 = require("@modern-js/utils");
69695
69697
 
@@ -72682,17 +72684,17 @@ var {
72682
72684
  mergeConfig: mergeConfig2
72683
72685
  } = axios_default;
72684
72686
 
72685
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72687
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72686
72688
  var import_tar = __toESM(require_tar());
72687
72689
 
72688
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72690
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72689
72691
  var import_utils36 = require("@modern-js/utils");
72690
72692
 
72691
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
72693
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
72692
72694
  var NPM_API_TIMEOUT = 3e4;
72693
72695
  var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
72694
72696
 
72695
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72697
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72696
72698
  async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72697
72699
  const { registryUrl } = options || {};
72698
72700
  const params = [
@@ -72715,7 +72717,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72715
72717
  }
72716
72718
  }
72717
72719
 
72718
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72720
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72719
72721
  var import_utils37 = require("@modern-js/utils");
72720
72722
  async function getNpmVersion(packageName, options) {
72721
72723
  const { version, registryUrl } = options || {};
@@ -72737,7 +72739,7 @@ async function getNpmVersion(packageName, options) {
72737
72739
  return stdout;
72738
72740
  }
72739
72741
 
72740
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72742
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72741
72743
  async function isValidCache(cacheDir) {
72742
72744
  if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
72743
72745
  const preCacheTimeStr = await import_utils38.fs.readFile(`${cacheDir}/.codesmith.completed`, {
@@ -72817,7 +72819,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
72817
72819
  return targetDir;
72818
72820
  }
72819
72821
 
72820
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72822
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72821
72823
  var import_utils39 = require("@modern-js/utils");
72822
72824
  function getPackageInfo(packageName) {
72823
72825
  if (!packageName) {
@@ -72842,7 +72844,7 @@ function getPackageInfo(packageName) {
72842
72844
  };
72843
72845
  }
72844
72846
 
72845
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72847
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72846
72848
  var MaterialsManager = class {
72847
72849
  loadLocalGenerator(generator) {
72848
72850
  if (!import_path6.default.isAbsolute(generator)) {
@@ -72873,7 +72875,7 @@ var MaterialsManager = class {
72873
72875
  }
72874
72876
  };
72875
72877
 
72876
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72878
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72877
72879
  var CodeSmith = class {
72878
72880
  async forge({ tasks, pwd }) {
72879
72881
  var _this_logger_timing, _this_logger;
@@ -72917,7 +72919,7 @@ var CodeSmith = class {
72917
72919
  }
72918
72920
  };
72919
72921
 
72920
- // ../../../../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
72922
+ // ../../../../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
72921
72923
  var import_handlebars = __toESM(require_lib());
72922
72924
  function renderString(template, fullData, registers) {
72923
72925
  const helpers = {
@@ -72931,7 +72933,7 @@ function renderString(template, fullData, registers) {
72931
72933
  return import_handlebars.default.compile(template)(fullData) || "";
72932
72934
  }
72933
72935
 
72934
- // ../../../../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
72936
+ // ../../../../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
72935
72937
  var HandlebarsAPI = class {
72936
72938
  async registerHelp(helpers) {
72937
72939
  this.registers.helpers = {
@@ -72981,13 +72983,13 @@ var HandlebarsAPI = class {
72981
72983
  }
72982
72984
  };
72983
72985
 
72984
- // ../../../../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
72986
+ // ../../../../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
72985
72987
  var import_ejs = __toESM(require_ejs());
72986
72988
  function renderString2(template, fullData) {
72987
72989
  return import_ejs.default.render(template, fullData) || "";
72988
72990
  }
72989
72991
 
72990
- // ../../../../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
72992
+ // ../../../../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
72991
72993
  var EjsAPI = class {
72992
72994
  async renderTemplate(templateResource, target, parameters = {}) {
72993
72995
  if (templateResource._type !== FS_RESOURCE) {
@@ -73020,7 +73022,7 @@ var EjsAPI = class {
73020
73022
  }
73021
73023
  };
73022
73024
 
73023
- // ../../../../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
73025
+ // ../../../../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
73024
73026
  var import_path8 = __toESM(require("path"));
73025
73027
  var import_utils43 = require("@modern-js/utils");
73026
73028
  var FsAPI = class {
@@ -73048,7 +73050,7 @@ var FsAPI = class {
73048
73050
  }
73049
73051
  };
73050
73052
 
73051
- // ../../../../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/index.js
73053
+ // ../../../../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/index.js
73052
73054
  var import_lodash2 = require("@modern-js/utils/lodash");
73053
73055
 
73054
73056
  // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
@@ -82683,10 +82685,10 @@ var Schema = (
82683
82685
  }()
82684
82686
  );
82685
82687
 
82686
- // ../../../../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
82688
+ // ../../../../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
82687
82689
  var import_inquirer = __toESM(require_inquirer());
82688
82690
 
82689
- // ../../../../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
82691
+ // ../../../../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
82690
82692
  var import_lodash = require("@modern-js/utils/lodash");
82691
82693
  function validateSchema(schema) {
82692
82694
  const { type, properties } = schema;
@@ -82778,7 +82780,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
82778
82780
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
82779
82781
  }
82780
82782
 
82781
- // ../../../../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
82783
+ // ../../../../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
82782
82784
  var compileRule = (rule, scope) => {
82783
82785
  const state = Schema.compile(rule, {
82784
82786
  $self: {},
@@ -82882,7 +82884,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
82882
82884
  return answers;
82883
82885
  }
82884
82886
 
82885
- // ../../../../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
82887
+ // ../../../../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
82886
82888
  var CLIReader = class {
82887
82889
  getAnswers() {
82888
82890
  return this.answers;
@@ -82913,7 +82915,7 @@ var CLIReader = class {
82913
82915
  }
82914
82916
  };
82915
82917
 
82916
- // ../../../../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/index.js
82918
+ // ../../../../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/index.js
82917
82919
  var FormilyAPI = class {
82918
82920
  mergeAnswers(answers, configValue) {
82919
82921
  const inputData = (0, import_lodash2.merge)(answers, configValue);
@@ -82936,7 +82938,7 @@ var FormilyAPI = class {
82936
82938
  }
82937
82939
  };
82938
82940
 
82939
- // ../../../../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
82941
+ // ../../../../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
82940
82942
  var import_inquirer3 = __toESM(require_inquirer2());
82941
82943
 
82942
82944
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -83002,7 +83004,7 @@ var I18n = class {
83002
83004
  }
83003
83005
  };
83004
83006
 
83005
- // ../../../../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
83007
+ // ../../../../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
83006
83008
  var ZH_LOCALE = {
83007
83009
  environment: {
83008
83010
  node_version: "请升级 Node 版本至 LIS",
@@ -83029,7 +83031,7 @@ var ZH_LOCALE = {
83029
83031
  }
83030
83032
  };
83031
83033
 
83032
- // ../../../../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
83034
+ // ../../../../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
83033
83035
  var EN_LOCALE = {
83034
83036
  environment: {
83035
83037
  node_version: "please upgrade node to lts version",
@@ -83056,14 +83058,14 @@ var EN_LOCALE = {
83056
83058
  }
83057
83059
  };
83058
83060
 
83059
- // ../../../../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
83061
+ // ../../../../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
83060
83062
  var i18n = new I18n();
83061
83063
  var localeKeys = i18n.init("zh", {
83062
83064
  zh: ZH_LOCALE,
83063
83065
  en: EN_LOCALE
83064
83066
  });
83065
83067
 
83066
- // ../../../../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
83068
+ // ../../../../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
83067
83069
  var import_lodash5 = require("@modern-js/utils/lodash");
83068
83070
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
83069
83071
  for (const question of questions) {
@@ -83091,7 +83093,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
83091
83093
  return questions;
83092
83094
  }
83093
83095
 
83094
- // ../../../../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
83096
+ // ../../../../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
83095
83097
  var import_path10 = __toESM(require("path"));
83096
83098
  var import_utils45 = require("@modern-js/utils");
83097
83099
  var NODE_MAJOR_VERSION_MAP = {
@@ -83139,7 +83141,7 @@ async function checkUseNvm(cwd, logger2) {
83139
83141
  }
83140
83142
  }
83141
83143
 
83142
- // ../../../../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
83144
+ // ../../../../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
83143
83145
  var AppAPI = class {
83144
83146
  async checkEnvironment(nodeVersion) {
83145
83147
  if (import_utils46.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
@@ -84732,11 +84734,11 @@ var import_lodash14 = require("@modern-js/utils/lodash");
84732
84734
  // ../../generator-plugin/dist/esm/context/file.js
84733
84735
  var import_path13 = __toESM(require("path"));
84734
84736
 
84735
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84737
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84736
84738
  var import_comment_json2 = __toESM(require_src2());
84737
84739
  var declarationUpdate = __toESM(require_dist());
84738
84740
 
84739
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84741
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84740
84742
  async function editJson(generatorCore, resource, getNewJsonValue) {
84741
84743
  const originJsonValue = await resource.value();
84742
84744
  const newJsonString = await getNewJsonValue(originJsonValue.content);
@@ -84749,7 +84751,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
84749
84751
  return newJsonString;
84750
84752
  }
84751
84753
 
84752
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84754
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84753
84755
  var JsonAPI = class {
84754
84756
  async get(resource) {
84755
84757
  const originJsonValue = await resource.value();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240226170701",
18
+ "version": "0.0.0-nightly-20240227061009",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,24 +23,24 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "0.0.0-nightly-20240226170701"
26
+ "@modern-js/utils": "0.0.0-nightly-20240227061009"
27
27
  },
28
28
  "devDependencies": {
29
- "@modern-js/codesmith": "2.3.5",
30
- "@modern-js/codesmith-api-app": "2.3.5",
29
+ "@modern-js/codesmith": "2.3.4",
30
+ "@modern-js/codesmith-api-app": "2.3.4",
31
31
  "@types/jest": "^29",
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/generator-common": "0.0.0-nightly-20240226170701",
36
- "@modern-js/generator-plugin": "0.0.0-nightly-20240226170701",
37
- "@modern-js/generator-utils": "0.0.0-nightly-20240226170701",
38
- "@modern-js/monorepo-generator": "0.0.0-nightly-20240226170701",
39
- "@modern-js/module-generator": "0.0.0-nightly-20240226170701",
40
- "@modern-js/mwa-generator": "0.0.0-nightly-20240226170701",
41
- "@modern-js/base-generator": "0.0.0-nightly-20240226170701",
42
- "@scripts/build": "0.0.0-nightly-20240226170701",
43
- "@scripts/jest-config": "0.0.0-nightly-20240226170701"
35
+ "@modern-js/base-generator": "0.0.0-nightly-20240227061009",
36
+ "@modern-js/generator-common": "0.0.0-nightly-20240227061009",
37
+ "@modern-js/generator-plugin": "0.0.0-nightly-20240227061009",
38
+ "@modern-js/module-generator": "0.0.0-nightly-20240227061009",
39
+ "@modern-js/mwa-generator": "0.0.0-nightly-20240227061009",
40
+ "@modern-js/monorepo-generator": "0.0.0-nightly-20240227061009",
41
+ "@modern-js/generator-utils": "0.0.0-nightly-20240227061009",
42
+ "@scripts/jest-config": "0.0.0-nightly-20240227061009",
43
+ "@scripts/build": "0.0.0-nightly-20240227061009"
44
44
  },
45
45
  "sideEffects": false,
46
46
  "publishConfig": {