@modern-js/repo-generator 0.0.0-nightly-20240131170643 → 0.0.0-nightly-20240202170715

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 +54 -54
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -68831,12 +68831,12 @@ function _define_property(obj, key, value) {
68831
68831
  return obj;
68832
68832
  }
68833
68833
 
68834
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
68834
+ // ../../../../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
68835
68835
  var import_utils46 = require("@modern-js/utils");
68836
68836
  var import_lodash6 = require("@modern-js/utils/lodash");
68837
68837
  var import_comment_json = __toESM(require_src2());
68838
68838
 
68839
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
68839
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
68840
68840
  var import_utils = require("@modern-js/utils");
68841
68841
  async function canUseNvm() {
68842
68842
  try {
@@ -68886,7 +68886,7 @@ async function canUsePnpm() {
68886
68886
  }
68887
68887
  }
68888
68888
 
68889
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
68889
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
68890
68890
  var import_utils2 = require("@modern-js/utils");
68891
68891
  function execaWithStreamLog(command, args, options) {
68892
68892
  const promise = (0, import_utils2.execa)(command, args, {
@@ -68982,7 +68982,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
68982
68982
  throw new Error("please install pnpm first");
68983
68983
  }
68984
68984
 
68985
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
68985
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
68986
68986
  var NpmAPI = class {
68987
68987
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
68988
68988
  return npmInstall({
@@ -69011,7 +69011,7 @@ var NpmAPI = class {
69011
69011
  }
69012
69012
  };
69013
69013
 
69014
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
69014
+ // ../../../../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
69015
69015
  var import_utils4 = require("@modern-js/utils");
69016
69016
  async function canUseGit() {
69017
69017
  try {
@@ -69086,7 +69086,7 @@ async function gitCommit(cwd, commitMessage) {
69086
69086
  });
69087
69087
  }
69088
69088
 
69089
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
69089
+ // ../../../../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
69090
69090
  var GitAPI = class {
69091
69091
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
69092
69092
  const canUse = await canUseGit();
@@ -69138,7 +69138,7 @@ var GitAPI = class {
69138
69138
  }
69139
69139
  };
69140
69140
 
69141
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
69141
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
69142
69142
  var LoggerLevel;
69143
69143
  (function(LoggerLevel2) {
69144
69144
  LoggerLevel2["Error"] = "error";
@@ -69159,7 +69159,7 @@ var LevelPriority = [
69159
69159
  LoggerLevel.Stream
69160
69160
  ];
69161
69161
 
69162
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
69162
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
69163
69163
  var import_utils6 = require("@modern-js/utils");
69164
69164
  var Logger = class {
69165
69165
  get currentLevelIndex() {
@@ -69220,23 +69220,23 @@ var Logger = class {
69220
69220
  }
69221
69221
  };
69222
69222
 
69223
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
69223
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
69224
69224
  var import_path7 = __toESM(require("path"));
69225
69225
 
69226
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69226
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69227
69227
  var import_path4 = __toESM(require("path"));
69228
69228
  var import_events = require("events");
69229
69229
  var import_utils11 = require("@modern-js/utils");
69230
69230
 
69231
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69231
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69232
69232
  var import_path2 = __toESM(require("path"));
69233
69233
  var import_utils8 = require("@modern-js/utils");
69234
69234
 
69235
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69235
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69236
69236
  var import_path = __toESM(require("path"));
69237
69237
  var import_utils7 = require("@modern-js/utils");
69238
69238
 
69239
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
69239
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
69240
69240
  var IMAGE_EXT_LIST = [
69241
69241
  ".jpg",
69242
69242
  ".jpeg",
@@ -69250,7 +69250,7 @@ var IMAGE_EXT_LIST = [
69250
69250
  ".wmf"
69251
69251
  ];
69252
69252
 
69253
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69253
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
69254
69254
  var FS_RESOURCE = "_codesmith_core_fs_resource";
69255
69255
  var FsResource = class {
69256
69256
  async value() {
@@ -69276,7 +69276,7 @@ var FsResource = class {
69276
69276
  }
69277
69277
  };
69278
69278
 
69279
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69279
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
69280
69280
  var promisifyGlob = function(pattern, options) {
69281
69281
  return new Promise((resolve, reject) => {
69282
69282
  (0, import_utils8.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
@@ -69304,7 +69304,7 @@ var FsMaterial = class {
69304
69304
  }
69305
69305
  };
69306
69306
 
69307
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69307
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
69308
69308
  var nodeRequire = (path18) => {
69309
69309
  try {
69310
69310
  const module2 = __non_webpack_require__(path18);
@@ -69321,11 +69321,11 @@ var nodeRequire = (path18) => {
69321
69321
  }
69322
69322
  };
69323
69323
 
69324
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69324
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69325
69325
  var import_path3 = __toESM(require("path"));
69326
69326
  var import_utils10 = require("@modern-js/utils");
69327
69327
 
69328
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69328
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
69329
69329
  var import_utils9 = require("@modern-js/utils");
69330
69330
  async function fsExists(path18) {
69331
69331
  try {
@@ -69336,7 +69336,7 @@ async function fsExists(path18) {
69336
69336
  }
69337
69337
  }
69338
69338
 
69339
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69339
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
69340
69340
  var MaxTimes = 5;
69341
69341
  async function getGeneratorDir(generator) {
69342
69342
  let result = generator;
@@ -69355,7 +69355,7 @@ async function getGeneratorDir(generator) {
69355
69355
  return result;
69356
69356
  }
69357
69357
 
69358
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69358
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
69359
69359
  var GeneratorCore = class {
69360
69360
  get lifeCycleMethod() {
69361
69361
  return {
@@ -69560,10 +69560,10 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
69560
69560
  }
69561
69561
  };
69562
69562
 
69563
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69563
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
69564
69564
  var import_path6 = __toESM(require("path"));
69565
69565
 
69566
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69566
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
69567
69567
  var import_path5 = __toESM(require("path"));
69568
69568
  var import_utils12 = require("@modern-js/utils");
69569
69569
  async function canUseYarn2() {
@@ -69644,7 +69644,7 @@ async function runInstall(targetDir, registryUrl) {
69644
69644
  }
69645
69645
  }
69646
69646
 
69647
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69647
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
69648
69648
  async function timeoutPromise(promise, ms, reason = "Operation") {
69649
69649
  let timeoutId = null;
69650
69650
  const delayPromise = (ms2) => new Promise((resolve) => {
@@ -69666,7 +69666,7 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
69666
69666
  }
69667
69667
  }
69668
69668
 
69669
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69669
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
69670
69670
  var import_os = __toESM(require("os"));
69671
69671
  var import_utils38 = require("@modern-js/utils");
69672
69672
 
@@ -72628,17 +72628,17 @@ var {
72628
72628
  mergeConfig: mergeConfig2
72629
72629
  } = axios_default;
72630
72630
 
72631
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72631
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72632
72632
  var import_tar = __toESM(require_tar());
72633
72633
 
72634
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72634
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72635
72635
  var import_utils36 = require("@modern-js/utils");
72636
72636
 
72637
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
72637
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
72638
72638
  var NPM_API_TIMEOUT = 3e4;
72639
72639
  var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
72640
72640
 
72641
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72641
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
72642
72642
  async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72643
72643
  const { registryUrl } = options || {};
72644
72644
  const params = [
@@ -72661,7 +72661,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
72661
72661
  }
72662
72662
  }
72663
72663
 
72664
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72664
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
72665
72665
  var import_utils37 = require("@modern-js/utils");
72666
72666
  async function getNpmVersion(packageName, options) {
72667
72667
  const { version, registryUrl } = options || {};
@@ -72683,7 +72683,7 @@ async function getNpmVersion(packageName, options) {
72683
72683
  return stdout;
72684
72684
  }
72685
72685
 
72686
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72686
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
72687
72687
  async function isValidCache(cacheDir) {
72688
72688
  if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
72689
72689
  const preCacheTimeStr = await import_utils38.fs.readFile(`${cacheDir}/.codesmith.completed`, {
@@ -72763,7 +72763,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
72763
72763
  return targetDir;
72764
72764
  }
72765
72765
 
72766
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72766
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
72767
72767
  var import_utils39 = require("@modern-js/utils");
72768
72768
  function getPackageInfo(packageName) {
72769
72769
  if (!packageName) {
@@ -72788,7 +72788,7 @@ function getPackageInfo(packageName) {
72788
72788
  };
72789
72789
  }
72790
72790
 
72791
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72791
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
72792
72792
  var MaterialsManager = class {
72793
72793
  loadLocalGenerator(generator) {
72794
72794
  if (!import_path6.default.isAbsolute(generator)) {
@@ -72819,7 +72819,7 @@ var MaterialsManager = class {
72819
72819
  }
72820
72820
  };
72821
72821
 
72822
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72822
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
72823
72823
  var CodeSmith = class {
72824
72824
  async forge({ tasks, pwd }) {
72825
72825
  var _this_logger_timing, _this_logger;
@@ -72863,7 +72863,7 @@ var CodeSmith = class {
72863
72863
  }
72864
72864
  };
72865
72865
 
72866
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
72866
+ // ../../../../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
72867
72867
  var import_handlebars = __toESM(require_lib());
72868
72868
  function renderString(template, fullData, registers) {
72869
72869
  const helpers = {
@@ -72877,7 +72877,7 @@ function renderString(template, fullData, registers) {
72877
72877
  return import_handlebars.default.compile(template)(fullData) || "";
72878
72878
  }
72879
72879
 
72880
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
72880
+ // ../../../../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
72881
72881
  var HandlebarsAPI = class {
72882
72882
  async registerHelp(helpers) {
72883
72883
  this.registers.helpers = {
@@ -72927,13 +72927,13 @@ var HandlebarsAPI = class {
72927
72927
  }
72928
72928
  };
72929
72929
 
72930
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
72930
+ // ../../../../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
72931
72931
  var import_ejs = __toESM(require_ejs());
72932
72932
  function renderString2(template, fullData) {
72933
72933
  return import_ejs.default.render(template, fullData) || "";
72934
72934
  }
72935
72935
 
72936
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
72936
+ // ../../../../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
72937
72937
  var EjsAPI = class {
72938
72938
  async renderTemplate(templateResource, target, parameters = {}) {
72939
72939
  if (templateResource._type !== FS_RESOURCE) {
@@ -72966,7 +72966,7 @@ var EjsAPI = class {
72966
72966
  }
72967
72967
  };
72968
72968
 
72969
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
72969
+ // ../../../../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
72970
72970
  var import_path8 = __toESM(require("path"));
72971
72971
  var import_utils43 = require("@modern-js/utils");
72972
72972
  var FsAPI = class {
@@ -72994,7 +72994,7 @@ var FsAPI = class {
72994
72994
  }
72995
72995
  };
72996
72996
 
72997
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
72997
+ // ../../../../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
72998
72998
  var import_lodash2 = require("@modern-js/utils/lodash");
72999
72999
 
73000
73000
  // ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
@@ -82629,10 +82629,10 @@ var Schema = (
82629
82629
  }()
82630
82630
  );
82631
82631
 
82632
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82632
+ // ../../../../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
82633
82633
  var import_inquirer = __toESM(require_inquirer());
82634
82634
 
82635
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
82635
+ // ../../../../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
82636
82636
  var import_lodash = require("@modern-js/utils/lodash");
82637
82637
  function validateSchema(schema) {
82638
82638
  const { type, properties } = schema;
@@ -82724,7 +82724,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
82724
82724
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
82725
82725
  }
82726
82726
 
82727
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
82727
+ // ../../../../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
82728
82728
  var compileRule = (rule, scope) => {
82729
82729
  const state = Schema.compile(rule, {
82730
82730
  $self: {},
@@ -82828,7 +82828,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
82828
82828
  return answers;
82829
82829
  }
82830
82830
 
82831
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
82831
+ // ../../../../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
82832
82832
  var CLIReader = class {
82833
82833
  getAnswers() {
82834
82834
  return this.answers;
@@ -82859,7 +82859,7 @@ var CLIReader = class {
82859
82859
  }
82860
82860
  };
82861
82861
 
82862
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
82862
+ // ../../../../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
82863
82863
  var FormilyAPI = class {
82864
82864
  mergeAnswers(answers, configValue) {
82865
82865
  const inputData = (0, import_lodash2.merge)(answers, configValue);
@@ -82882,7 +82882,7 @@ var FormilyAPI = class {
82882
82882
  }
82883
82883
  };
82884
82884
 
82885
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
82885
+ // ../../../../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
82886
82886
  var import_inquirer3 = __toESM(require_inquirer2());
82887
82887
 
82888
82888
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -82948,7 +82948,7 @@ var I18n = class {
82948
82948
  }
82949
82949
  };
82950
82950
 
82951
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
82951
+ // ../../../../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
82952
82952
  var ZH_LOCALE = {
82953
82953
  environment: {
82954
82954
  node_version: "请升级 Node 版本至 LIS",
@@ -82975,7 +82975,7 @@ var ZH_LOCALE = {
82975
82975
  }
82976
82976
  };
82977
82977
 
82978
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
82978
+ // ../../../../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
82979
82979
  var EN_LOCALE = {
82980
82980
  environment: {
82981
82981
  node_version: "please upgrade node to lts version",
@@ -83002,14 +83002,14 @@ var EN_LOCALE = {
83002
83002
  }
83003
83003
  };
83004
83004
 
83005
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
83005
+ // ../../../../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
83006
83006
  var i18n = new I18n();
83007
83007
  var localeKeys = i18n.init("zh", {
83008
83008
  zh: ZH_LOCALE,
83009
83009
  en: EN_LOCALE
83010
83010
  });
83011
83011
 
83012
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
83012
+ // ../../../../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
83013
83013
  var import_lodash5 = require("@modern-js/utils/lodash");
83014
83014
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
83015
83015
  for (const question of questions) {
@@ -83037,7 +83037,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
83037
83037
  return questions;
83038
83038
  }
83039
83039
 
83040
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
83040
+ // ../../../../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
83041
83041
  var import_path10 = __toESM(require("path"));
83042
83042
  var import_utils45 = require("@modern-js/utils");
83043
83043
  var NODE_MAJOR_VERSION_MAP = {
@@ -83085,7 +83085,7 @@ async function checkUseNvm(cwd, logger2) {
83085
83085
  }
83086
83086
  }
83087
83087
 
83088
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
83088
+ // ../../../../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
83089
83089
  var AppAPI = class {
83090
83090
  async checkEnvironment(nodeVersion) {
83091
83091
  if (import_utils46.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
@@ -84678,11 +84678,11 @@ var import_lodash14 = require("@modern-js/utils/lodash");
84678
84678
  // ../../generator-plugin/dist/esm/context/file.js
84679
84679
  var import_path13 = __toESM(require("path"));
84680
84680
 
84681
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84681
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84682
84682
  var import_comment_json2 = __toESM(require_src2());
84683
84683
  var declarationUpdate = __toESM(require_dist());
84684
84684
 
84685
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84685
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
84686
84686
  async function editJson(generatorCore, resource, getNewJsonValue) {
84687
84687
  const originJsonValue = await resource.value();
84688
84688
  const newJsonString = await getNewJsonValue(originJsonValue.content);
@@ -84695,7 +84695,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
84695
84695
  return newJsonString;
84696
84696
  }
84697
84697
 
84698
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84698
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
84699
84699
  var JsonAPI = class {
84700
84700
  async get(resource) {
84701
84701
  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-20240131170643",
18
+ "version": "0.0.0-nightly-20240202170715",
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-20240131170643"
26
+ "@modern-js/utils": "0.0.0-nightly-20240202170715"
27
27
  },
28
28
  "devDependencies": {
29
- "@modern-js/codesmith": "2.3.3",
30
- "@modern-js/codesmith-api-app": "2.3.3",
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-20240131170643",
36
- "@modern-js/base-generator": "0.0.0-nightly-20240131170643",
37
- "@modern-js/generator-plugin": "0.0.0-nightly-20240131170643",
38
- "@modern-js/generator-utils": "0.0.0-nightly-20240131170643",
39
- "@modern-js/module-generator": "0.0.0-nightly-20240131170643",
40
- "@modern-js/monorepo-generator": "0.0.0-nightly-20240131170643",
41
- "@scripts/build": "0.0.0-nightly-20240131170643",
42
- "@scripts/jest-config": "0.0.0-nightly-20240131170643",
43
- "@modern-js/mwa-generator": "0.0.0-nightly-20240131170643"
35
+ "@modern-js/generator-common": "0.0.0-nightly-20240202170715",
36
+ "@modern-js/generator-plugin": "0.0.0-nightly-20240202170715",
37
+ "@modern-js/base-generator": "0.0.0-nightly-20240202170715",
38
+ "@modern-js/generator-utils": "0.0.0-nightly-20240202170715",
39
+ "@modern-js/monorepo-generator": "0.0.0-nightly-20240202170715",
40
+ "@modern-js/mwa-generator": "0.0.0-nightly-20240202170715",
41
+ "@scripts/build": "0.0.0-nightly-20240202170715",
42
+ "@modern-js/module-generator": "0.0.0-nightly-20240202170715",
43
+ "@scripts/jest-config": "0.0.0-nightly-20240202170715"
44
44
  },
45
45
  "sideEffects": false,
46
46
  "publishConfig": {