@modern-js/repo-generator 0.0.0-next-20221220182630 → 0.0.0-next-20221221085031

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 +223 -106
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -44340,9 +44340,9 @@ var require_src2 = __commonJS({
44340
44340
  }
44341
44341
  });
44342
44342
 
44343
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
44343
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
44344
44344
  var require_env = __commonJS({
44345
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
44345
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
44346
44346
  "use strict";
44347
44347
  Object.defineProperty(exports, "__esModule", {
44348
44348
  value: true
@@ -44354,7 +44354,7 @@ var require_env = __commonJS({
44354
44354
  var _utils = require_dist();
44355
44355
  async function canUseNvm() {
44356
44356
  try {
44357
- await (0, _utils.execa)("nvm --version", {
44357
+ await (0, _utils.execa)("source ~/.nvm/nvm.sh", {
44358
44358
  env: process.env,
44359
44359
  shell: true
44360
44360
  });
@@ -44396,9 +44396,9 @@ var require_env = __commonJS({
44396
44396
  }
44397
44397
  });
44398
44398
 
44399
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
44399
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
44400
44400
  var require_install = __commonJS({
44401
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
44401
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
44402
44402
  "use strict";
44403
44403
  Object.defineProperty(exports, "__esModule", {
44404
44404
  value: true
@@ -44406,6 +44406,7 @@ var require_install = __commonJS({
44406
44406
  exports.execaWithStreamLog = execaWithStreamLog;
44407
44407
  exports.npmInstall = npmInstall2;
44408
44408
  exports.pnpmInstall = pnpmInstall2;
44409
+ exports.runInstallWithNvm = runInstallWithNvm;
44409
44410
  exports.yarnInstall = yarnInstall2;
44410
44411
  var _utils = require_dist();
44411
44412
  var _env = require_env();
@@ -44446,10 +44447,19 @@ var require_install = __commonJS({
44446
44447
  }));
44447
44448
  return promise;
44448
44449
  }
44450
+ async function runInstallWithNvm(command, options) {
44451
+ await (0, _utils.execa)(`~/.nvm/nvm-exec ${command}`, _objectSpread10(_objectSpread10({}, options), {}, {
44452
+ shell: true,
44453
+ stdin: "inherit",
44454
+ stdout: "inherit",
44455
+ stderr: "inherit"
44456
+ }));
44457
+ }
44449
44458
  async function npmInstall2({
44450
44459
  cwd,
44451
44460
  registryUrl,
44452
- ignoreScripts
44461
+ ignoreScripts,
44462
+ useNvm
44453
44463
  }) {
44454
44464
  const canUse = await (0, _env.canUseNpm)();
44455
44465
  if (canUse) {
@@ -44460,6 +44470,12 @@ var require_install = __commonJS({
44460
44470
  if (ignoreScripts) {
44461
44471
  params.push("--ignore-scripts");
44462
44472
  }
44473
+ if (useNvm) {
44474
+ return runInstallWithNvm(`npm ${params.join(" ")}`, {
44475
+ cwd,
44476
+ env: process.env
44477
+ });
44478
+ }
44463
44479
  return execaWithStreamLog("npm", params, {
44464
44480
  cwd,
44465
44481
  env: process.env
@@ -44470,7 +44486,8 @@ var require_install = __commonJS({
44470
44486
  async function yarnInstall2({
44471
44487
  cwd,
44472
44488
  registryUrl,
44473
- ignoreScripts
44489
+ ignoreScripts,
44490
+ useNvm
44474
44491
  }) {
44475
44492
  const canUse = await (0, _env.canUseYarn)();
44476
44493
  if (canUse) {
@@ -44481,6 +44498,12 @@ var require_install = __commonJS({
44481
44498
  if (ignoreScripts) {
44482
44499
  params.push("--ignore-scripts");
44483
44500
  }
44501
+ if (useNvm) {
44502
+ return runInstallWithNvm(`yarn ${params.join(" ")}`, {
44503
+ cwd,
44504
+ env: process.env
44505
+ });
44506
+ }
44484
44507
  return execaWithStreamLog("yarn", params, {
44485
44508
  cwd,
44486
44509
  env: process.env
@@ -44491,7 +44514,8 @@ var require_install = __commonJS({
44491
44514
  async function pnpmInstall2({
44492
44515
  cwd,
44493
44516
  registryUrl,
44494
- ignoreScripts
44517
+ ignoreScripts,
44518
+ useNvm
44495
44519
  }) {
44496
44520
  const canUse = await (0, _env.canUsePnpm)();
44497
44521
  if (canUse) {
@@ -44502,6 +44526,12 @@ var require_install = __commonJS({
44502
44526
  if (ignoreScripts) {
44503
44527
  params.push("--ignore-scripts");
44504
44528
  }
44529
+ if (useNvm) {
44530
+ return runInstallWithNvm(`yarn ${params.join(" ")}`, {
44531
+ cwd,
44532
+ env: process.env
44533
+ });
44534
+ }
44505
44535
  return execaWithStreamLog("pnpm", params, {
44506
44536
  cwd,
44507
44537
  env: process.env
@@ -44512,9 +44542,9 @@ var require_install = __commonJS({
44512
44542
  }
44513
44543
  });
44514
44544
 
44515
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
44545
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
44516
44546
  var require_utils = __commonJS({
44517
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
44547
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
44518
44548
  "use strict";
44519
44549
  Object.defineProperty(exports, "__esModule", {
44520
44550
  value: true
@@ -44543,6 +44573,12 @@ var require_utils = __commonJS({
44543
44573
  return _env.canUseYarn;
44544
44574
  }
44545
44575
  });
44576
+ Object.defineProperty(exports, "execaWithStreamLog", {
44577
+ enumerable: true,
44578
+ get: function() {
44579
+ return _install.execaWithStreamLog;
44580
+ }
44581
+ });
44546
44582
  Object.defineProperty(exports, "npmInstall", {
44547
44583
  enumerable: true,
44548
44584
  get: function() {
@@ -44555,6 +44591,12 @@ var require_utils = __commonJS({
44555
44591
  return _install.pnpmInstall;
44556
44592
  }
44557
44593
  });
44594
+ Object.defineProperty(exports, "runInstallWithNvm", {
44595
+ enumerable: true,
44596
+ get: function() {
44597
+ return _install.runInstallWithNvm;
44598
+ }
44599
+ });
44558
44600
  Object.defineProperty(exports, "yarnInstall", {
44559
44601
  enumerable: true,
44560
44602
  get: function() {
@@ -44566,9 +44608,9 @@ var require_utils = __commonJS({
44566
44608
  }
44567
44609
  });
44568
44610
 
44569
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
44611
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
44570
44612
  var require_node = __commonJS({
44571
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.2/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
44613
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.3/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
44572
44614
  "use strict";
44573
44615
  Object.defineProperty(exports, "__esModule", {
44574
44616
  value: true
@@ -44643,9 +44685,9 @@ var require_node = __commonJS({
44643
44685
  }
44644
44686
  });
44645
44687
 
44646
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
44688
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
44647
44689
  var require_utils2 = __commonJS({
44648
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
44690
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
44649
44691
  "use strict";
44650
44692
  Object.defineProperty(exports, "__esModule", {
44651
44693
  value: true
@@ -44710,9 +44752,9 @@ var require_utils2 = __commonJS({
44710
44752
  }
44711
44753
  });
44712
44754
 
44713
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
44755
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
44714
44756
  var require_node2 = __commonJS({
44715
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
44757
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
44716
44758
  "use strict";
44717
44759
  Object.defineProperty(exports, "__esModule", {
44718
44760
  value: true
@@ -44785,9 +44827,9 @@ var require_node2 = __commonJS({
44785
44827
  }
44786
44828
  });
44787
44829
 
44788
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
44830
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
44789
44831
  var require_constants2 = __commonJS({
44790
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
44832
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
44791
44833
  "use strict";
44792
44834
  Object.defineProperty(exports, "__esModule", {
44793
44835
  value: true
@@ -44808,9 +44850,9 @@ var require_constants2 = __commonJS({
44808
44850
  }
44809
44851
  });
44810
44852
 
44811
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
44853
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
44812
44854
  var require_logger2 = __commonJS({
44813
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
44855
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
44814
44856
  "use strict";
44815
44857
  Object.defineProperty(exports, "__esModule", {
44816
44858
  value: true
@@ -44878,9 +44920,9 @@ var require_logger2 = __commonJS({
44878
44920
  }
44879
44921
  });
44880
44922
 
44881
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
44923
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
44882
44924
  var require_constants3 = __commonJS({
44883
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
44925
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
44884
44926
  "use strict";
44885
44927
  Object.defineProperty(exports, "__esModule", {
44886
44928
  value: true
@@ -44891,9 +44933,9 @@ var require_constants3 = __commonJS({
44891
44933
  }
44892
44934
  });
44893
44935
 
44894
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
44936
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
44895
44937
  var require_FsResource = __commonJS({
44896
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
44938
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
44897
44939
  "use strict";
44898
44940
  Object.defineProperty(exports, "__esModule", {
44899
44941
  value: true
@@ -44942,9 +44984,9 @@ var require_FsResource = __commonJS({
44942
44984
  }
44943
44985
  });
44944
44986
 
44945
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
44987
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
44946
44988
  var require_FsMaterial = __commonJS({
44947
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
44989
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
44948
44990
  "use strict";
44949
44991
  Object.defineProperty(exports, "__esModule", {
44950
44992
  value: true
@@ -44994,9 +45036,9 @@ var require_FsMaterial = __commonJS({
44994
45036
  }
44995
45037
  });
44996
45038
 
44997
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
45039
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
44998
45040
  var require_nodeRequire = __commonJS({
44999
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
45041
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
45000
45042
  "use strict";
45001
45043
  Object.defineProperty(exports, "__esModule", {
45002
45044
  value: true
@@ -45021,9 +45063,9 @@ var require_nodeRequire = __commonJS({
45021
45063
  }
45022
45064
  });
45023
45065
 
45024
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
45066
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
45025
45067
  var require_fsExists = __commonJS({
45026
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
45068
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
45027
45069
  "use strict";
45028
45070
  Object.defineProperty(exports, "__esModule", {
45029
45071
  value: true
@@ -45041,9 +45083,9 @@ var require_fsExists = __commonJS({
45041
45083
  }
45042
45084
  });
45043
45085
 
45044
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
45086
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
45045
45087
  var require_getGeneratorDir = __commonJS({
45046
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
45088
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
45047
45089
  "use strict";
45048
45090
  Object.defineProperty(exports, "__esModule", {
45049
45091
  value: true
@@ -45075,9 +45117,9 @@ var require_getGeneratorDir = __commonJS({
45075
45117
  }
45076
45118
  });
45077
45119
 
45078
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
45120
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
45079
45121
  var require_generator = __commonJS({
45080
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
45122
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
45081
45123
  "use strict";
45082
45124
  Object.defineProperty(exports, "__esModule", {
45083
45125
  value: true
@@ -45313,9 +45355,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
45313
45355
  }
45314
45356
  });
45315
45357
 
45316
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
45358
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
45317
45359
  var require_packageManager = __commonJS({
45318
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
45360
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
45319
45361
  "use strict";
45320
45362
  Object.defineProperty(exports, "__esModule", {
45321
45363
  value: true
@@ -45387,9 +45429,9 @@ var require_packageManager = __commonJS({
45387
45429
  }
45388
45430
  });
45389
45431
 
45390
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
45432
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
45391
45433
  var require_timeoutPromise = __commonJS({
45392
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
45434
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
45393
45435
  "use strict";
45394
45436
  Object.defineProperty(exports, "__esModule", {
45395
45437
  value: true
@@ -53885,9 +53927,9 @@ var require_tar = __commonJS({
53885
53927
  }
53886
53928
  });
53887
53929
 
53888
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/constants.js
53930
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/constants.js
53889
53931
  var require_constants5 = __commonJS({
53890
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
53932
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
53891
53933
  "use strict";
53892
53934
  Object.defineProperty(exports, "__esModule", {
53893
53935
  value: true
@@ -53900,9 +53942,9 @@ var require_constants5 = __commonJS({
53900
53942
  }
53901
53943
  });
53902
53944
 
53903
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
53945
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
53904
53946
  var require_getNpmTarballUrl = __commonJS({
53905
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
53947
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
53906
53948
  "use strict";
53907
53949
  Object.defineProperty(exports, "__esModule", {
53908
53950
  value: true
@@ -53934,9 +53976,9 @@ var require_getNpmTarballUrl = __commonJS({
53934
53976
  }
53935
53977
  });
53936
53978
 
53937
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
53979
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
53938
53980
  var require_getNpmVersion = __commonJS({
53939
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
53981
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
53940
53982
  "use strict";
53941
53983
  Object.defineProperty(exports, "__esModule", {
53942
53984
  value: true
@@ -53970,9 +54012,9 @@ var require_getNpmVersion = __commonJS({
53970
54012
  }
53971
54013
  });
53972
54014
 
53973
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
54015
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
53974
54016
  var require_downloadPackage = __commonJS({
53975
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
54017
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
53976
54018
  "use strict";
53977
54019
  Object.defineProperty(exports, "__esModule", {
53978
54020
  value: true
@@ -54072,9 +54114,9 @@ var require_downloadPackage = __commonJS({
54072
54114
  }
54073
54115
  });
54074
54116
 
54075
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
54117
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
54076
54118
  var require_getPackageInfo = __commonJS({
54077
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
54119
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
54078
54120
  "use strict";
54079
54121
  Object.defineProperty(exports, "__esModule", {
54080
54122
  value: true
@@ -54106,9 +54148,9 @@ var require_getPackageInfo = __commonJS({
54106
54148
  }
54107
54149
  });
54108
54150
 
54109
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
54151
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
54110
54152
  var require_utils4 = __commonJS({
54111
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
54153
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
54112
54154
  "use strict";
54113
54155
  Object.defineProperty(exports, "__esModule", {
54114
54156
  value: true
@@ -54184,9 +54226,9 @@ var require_utils4 = __commonJS({
54184
54226
  }
54185
54227
  });
54186
54228
 
54187
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
54229
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
54188
54230
  var require_materials = __commonJS({
54189
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
54231
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
54190
54232
  "use strict";
54191
54233
  Object.defineProperty(exports, "__esModule", {
54192
54234
  value: true
@@ -54242,9 +54284,9 @@ var require_materials = __commonJS({
54242
54284
  }
54243
54285
  });
54244
54286
 
54245
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
54287
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
54246
54288
  var require_codesmith = __commonJS({
54247
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
54289
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
54248
54290
  "use strict";
54249
54291
  Object.defineProperty(exports, "__esModule", {
54250
54292
  value: true
@@ -54315,9 +54357,9 @@ var require_codesmith = __commonJS({
54315
54357
  }
54316
54358
  });
54317
54359
 
54318
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/index.js
54360
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/index.js
54319
54361
  var require_node3 = __commonJS({
54320
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
54362
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
54321
54363
  "use strict";
54322
54364
  Object.defineProperty(exports, "__esModule", {
54323
54365
  value: true
@@ -60089,9 +60131,9 @@ var require_lib = __commonJS({
60089
60131
  }
60090
60132
  });
60091
60133
 
60092
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
60134
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
60093
60135
  var require_renderString = __commonJS({
60094
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
60136
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
60095
60137
  "use strict";
60096
60138
  Object.defineProperty(exports, "__esModule", {
60097
60139
  value: true
@@ -60140,9 +60182,9 @@ var require_renderString = __commonJS({
60140
60182
  }
60141
60183
  });
60142
60184
 
60143
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
60185
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
60144
60186
  var require_utils6 = __commonJS({
60145
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
60187
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
60146
60188
  "use strict";
60147
60189
  Object.defineProperty(exports, "__esModule", {
60148
60190
  value: true
@@ -60157,9 +60199,9 @@ var require_utils6 = __commonJS({
60157
60199
  }
60158
60200
  });
60159
60201
 
60160
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
60202
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
60161
60203
  var require_node4 = __commonJS({
60162
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
60204
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
60163
60205
  "use strict";
60164
60206
  Object.defineProperty(exports, "__esModule", {
60165
60207
  value: true
@@ -60927,9 +60969,9 @@ var require_ejs = __commonJS({
60927
60969
  }
60928
60970
  });
60929
60971
 
60930
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
60972
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
60931
60973
  var require_renderString2 = __commonJS({
60932
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
60974
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
60933
60975
  "use strict";
60934
60976
  Object.defineProperty(exports, "__esModule", {
60935
60977
  value: true
@@ -60945,9 +60987,9 @@ var require_renderString2 = __commonJS({
60945
60987
  }
60946
60988
  });
60947
60989
 
60948
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
60990
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
60949
60991
  var require_utils8 = __commonJS({
60950
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
60992
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
60951
60993
  "use strict";
60952
60994
  Object.defineProperty(exports, "__esModule", {
60953
60995
  value: true
@@ -60962,9 +61004,9 @@ var require_utils8 = __commonJS({
60962
61004
  }
60963
61005
  });
60964
61006
 
60965
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
61007
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
60966
61008
  var require_node5 = __commonJS({
60967
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
61009
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
60968
61010
  "use strict";
60969
61011
  Object.defineProperty(exports, "__esModule", {
60970
61012
  value: true
@@ -61017,9 +61059,9 @@ var require_node5 = __commonJS({
61017
61059
  }
61018
61060
  });
61019
61061
 
61020
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
61062
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
61021
61063
  var require_constant = __commonJS({
61022
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
61064
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
61023
61065
  "use strict";
61024
61066
  Object.defineProperty(exports, "__esModule", {
61025
61067
  value: true
@@ -61030,9 +61072,9 @@ var require_constant = __commonJS({
61030
61072
  }
61031
61073
  });
61032
61074
 
61033
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
61075
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
61034
61076
  var require_node6 = __commonJS({
61035
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.2_@modern-js+codesmith@2.0.2/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
61077
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.3_@modern-js+codesmith@2.0.3/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
61036
61078
  "use strict";
61037
61079
  Object.defineProperty(exports, "__esModule", {
61038
61080
  value: true
@@ -103223,9 +103265,9 @@ var require_inquirer = __commonJS({
103223
103265
  }
103224
103266
  });
103225
103267
 
103226
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
103268
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
103227
103269
  var require_transform = __commonJS({
103228
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
103270
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
103229
103271
  "use strict";
103230
103272
  Object.defineProperty(exports, "__esModule", {
103231
103273
  value: true
@@ -103394,9 +103436,9 @@ var require_transform = __commonJS({
103394
103436
  }
103395
103437
  });
103396
103438
 
103397
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
103439
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
103398
103440
  var require_prompt2 = __commonJS({
103399
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
103441
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
103400
103442
  "use strict";
103401
103443
  Object.defineProperty(exports, "__esModule", {
103402
103444
  value: true
@@ -103532,9 +103574,9 @@ var require_prompt2 = __commonJS({
103532
103574
  }
103533
103575
  });
103534
103576
 
103535
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
103577
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
103536
103578
  var require_inquirer2 = __commonJS({
103537
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
103579
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
103538
103580
  "use strict";
103539
103581
  Object.defineProperty(exports, "__esModule", {
103540
103582
  value: true
@@ -103604,9 +103646,9 @@ var require_inquirer2 = __commonJS({
103604
103646
  }
103605
103647
  });
103606
103648
 
103607
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
103649
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
103608
103650
  var require_node7 = __commonJS({
103609
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
103651
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
103610
103652
  "use strict";
103611
103653
  Object.defineProperty(exports, "__esModule", {
103612
103654
  value: true
@@ -106191,9 +106233,9 @@ var require_node8 = __commonJS({
106191
106233
  }
106192
106234
  });
106193
106235
 
106194
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
106236
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
106195
106237
  var require_zh = __commonJS({
106196
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
106238
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
106197
106239
  "use strict";
106198
106240
  Object.defineProperty(exports, "__esModule", {
106199
106241
  value: true
@@ -106228,9 +106270,9 @@ var require_zh = __commonJS({
106228
106270
  }
106229
106271
  });
106230
106272
 
106231
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
106273
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
106232
106274
  var require_en = __commonJS({
106233
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
106275
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
106234
106276
  "use strict";
106235
106277
  Object.defineProperty(exports, "__esModule", {
106236
106278
  value: true
@@ -106265,9 +106307,9 @@ var require_en = __commonJS({
106265
106307
  }
106266
106308
  });
106267
106309
 
106268
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
106310
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
106269
106311
  var require_locale = __commonJS({
106270
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
106312
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
106271
106313
  "use strict";
106272
106314
  Object.defineProperty(exports, "__esModule", {
106273
106315
  value: true
@@ -106292,9 +106334,9 @@ var require_locale = __commonJS({
106292
106334
  }
106293
106335
  });
106294
106336
 
106295
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
106337
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
106296
106338
  var require_transform2 = __commonJS({
106297
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
106339
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
106298
106340
  "use strict";
106299
106341
  Object.defineProperty(exports, "__esModule", {
106300
106342
  value: true
@@ -106329,9 +106371,70 @@ var require_transform2 = __commonJS({
106329
106371
  }
106330
106372
  });
106331
106373
 
106332
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
106374
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js
106375
+ var require_checkUseNvm = __commonJS({
106376
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js"(exports) {
106377
+ "use strict";
106378
+ Object.defineProperty(exports, "__esModule", {
106379
+ value: true
106380
+ });
106381
+ exports.checkUseNvm = checkUseNvm;
106382
+ exports.getNoteVersion = getNoteVersion;
106383
+ var _path = _interopRequireDefault(require("path"));
106384
+ var _codesmith = require_node3();
106385
+ var _utils = require_dist();
106386
+ var _codesmithApiNpm = require_node();
106387
+ function _interopRequireDefault(obj) {
106388
+ return obj && obj.__esModule ? obj : { default: obj };
106389
+ }
106390
+ var NODE_MAJOR_VERSION_MAP = {
106391
+ "lts/*": 18,
106392
+ "lts/argon": 4,
106393
+ "lts/boron": 6,
106394
+ "lts/carbon": 8,
106395
+ "lts/dubnium": 10,
106396
+ "lts/erbium": 12,
106397
+ "lts/fermium": 14,
106398
+ "lts/gallium": 16,
106399
+ "lts/hydrogen": 18
106400
+ };
106401
+ async function getNoteVersion() {
106402
+ const result = await (0, _utils.execa)("node", ["--version"]);
106403
+ return result.stdout.slice(1);
106404
+ }
106405
+ async function checkUseNvm(cwd, logger2) {
106406
+ if (process.platform.startsWith("win")) {
106407
+ return false;
106408
+ }
106409
+ if (!await (0, _codesmith.fsExists)(_path.default.join(cwd, ".nvmrc"))) {
106410
+ return false;
106411
+ }
106412
+ const nvmrcContent = (await _utils.fs.readFile(_path.default.join(cwd, ".nvmrc"), "utf-8")).replace("\n", "");
106413
+ const expectNodeVersion = NODE_MAJOR_VERSION_MAP[nvmrcContent] || nvmrcContent;
106414
+ const currentNodeVersion = await getNoteVersion();
106415
+ if (expectNodeVersion === _utils.semver.major(currentNodeVersion)) {
106416
+ return false;
106417
+ }
106418
+ if (!await (0, _codesmithApiNpm.canUseNvm)()) {
106419
+ logger2.warn(`current node version is not expect, you should install ${expectNodeVersion}`);
106420
+ return false;
106421
+ }
106422
+ try {
106423
+ await (0, _codesmithApiNpm.execaWithStreamLog)("source ~/.nvm/nvm.sh && nvm install", [], {
106424
+ shell: true,
106425
+ cwd
106426
+ });
106427
+ return true;
106428
+ } catch (e) {
106429
+ return false;
106430
+ }
106431
+ }
106432
+ }
106433
+ });
106434
+
106435
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
106333
106436
  var require_node9 = __commonJS({
106334
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
106437
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
106335
106438
  "use strict";
106336
106439
  Object.defineProperty(exports, "__esModule", {
106337
106440
  value: true
@@ -106349,6 +106452,7 @@ var require_node9 = __commonJS({
106349
106452
  var _inquirer = _interopRequireDefault(require_inquirer3());
106350
106453
  var _locale = require_locale();
106351
106454
  var _transform = require_transform2();
106455
+ var _checkUseNvm = require_checkUseNvm();
106352
106456
  function _interopRequireDefault(obj) {
106353
106457
  return obj && obj.__esModule ? obj : { default: obj };
106354
106458
  }
@@ -106415,21 +106519,32 @@ var require_node9 = __commonJS({
106415
106519
  const {
106416
106520
  config: {
106417
106521
  packageManager,
106418
- noNeedInstall
106522
+ noNeedInstall,
106523
+ noNeedCheckNvm
106419
106524
  }
106420
106525
  } = this.generatorContext;
106421
106526
  if (noNeedInstall || process.env.NoNeedInstall === "true") {
106422
106527
  return;
106423
106528
  }
106529
+ let useNvm = false;
106530
+ if (!noNeedCheckNvm && process.env.NoNeedCheckNvm !== "true") {
106531
+ useNvm = await (0, _checkUseNvm.checkUseNvm)((options === null || options === void 0 ? void 0 : options.cwd) || this.generatorCore.outputPath, this.generatorCore.logger);
106532
+ }
106424
106533
  let intallPromise;
106425
106534
  if (command) {
106426
106535
  intallPromise = (0, _utils.execa)(command);
106427
106536
  } else if (packageManager === "pnpm") {
106428
- intallPromise = this.npmApi.pnpmInstall(options || {});
106537
+ intallPromise = this.npmApi.pnpmInstall(_objectSpread10(_objectSpread10({}, options || {}), {}, {
106538
+ useNvm
106539
+ }));
106429
106540
  } else if (packageManager === "yarn") {
106430
- intallPromise = this.npmApi.yarnInstall(options || {});
106541
+ intallPromise = this.npmApi.yarnInstall(_objectSpread10(_objectSpread10({}, options || {}), {}, {
106542
+ useNvm
106543
+ }));
106431
106544
  } else {
106432
- intallPromise = this.npmApi.npmInstall(options || {});
106545
+ intallPromise = this.npmApi.npmInstall(_objectSpread10(_objectSpread10({}, options || {}), {}, {
106546
+ useNvm
106547
+ }));
106433
106548
  }
106434
106549
  try {
106435
106550
  await intallPromise;
@@ -137464,7 +137579,8 @@ var require_chainId2 = __commonJS({
137464
137579
  IGNORE_CSS: "ignore-css",
137465
137580
  CSS_MODULES_TS: "css-modules-typescript",
137466
137581
  MINI_CSS_EXTRACT: "mini-css-extract",
137467
- IMAGE_COMPRESS: "image-compress"
137582
+ IMAGE_COMPRESS: "image-compress",
137583
+ SVGO: "svgo"
137468
137584
  },
137469
137585
  PLUGIN: {
137470
137586
  HMR: "hmr",
@@ -137489,7 +137605,8 @@ var require_chainId2 = __commonJS({
137489
137605
  SUBRESOURCE_INTEGRITY: "subresource-integrity",
137490
137606
  ASSETS_RETRY: "ASSETS_RETRY",
137491
137607
  AUTO_SET_ROOT_SIZE: "auto-set-root-size",
137492
- HTML_ASYNC_CHUNK: "html-async-chunk"
137608
+ HTML_ASYNC_CHUNK: "html-async-chunk",
137609
+ SwcPolyfillCheckerPlugin: "swc-polyfill-checker-plugin"
137493
137610
  },
137494
137611
  MINIMIZER: {
137495
137612
  JS: "js",
@@ -138594,9 +138711,9 @@ var require_dist3 = __commonJS({
138594
138711
  }
138595
138712
  });
138596
138713
 
138597
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.2/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js
138714
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.3/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js
138598
138715
  var require_utils12 = __commonJS({
138599
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.2/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js"(exports) {
138716
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.3/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js"(exports) {
138600
138717
  "use strict";
138601
138718
  Object.defineProperty(exports, "__esModule", {
138602
138719
  value: true
@@ -138616,9 +138733,9 @@ var require_utils12 = __commonJS({
138616
138733
  }
138617
138734
  });
138618
138735
 
138619
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.2/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js
138736
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.3/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js
138620
138737
  var require_node10 = __commonJS({
138621
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.2/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js"(exports) {
138738
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.3/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js"(exports) {
138622
138739
  "use strict";
138623
138740
  Object.defineProperty(exports, "__esModule", {
138624
138741
  value: true
@@ -141703,14 +141820,14 @@ function getGeneratorPath(generator, distTag) {
141703
141820
  var import_lodash6 = __toESM(require_lodash2());
141704
141821
  var import_codesmith2 = __toESM(require_node3());
141705
141822
 
141706
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/modern/index.js
141823
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/modern/index.js
141707
141824
  var import_lodash5 = __toESM(require_lodash3());
141708
141825
 
141709
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/modern/prompt.js
141826
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/modern/prompt.js
141710
141827
  init_esm6();
141711
141828
  var import_inquirer = __toESM(require_inquirer());
141712
141829
 
141713
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/modern/transform.js
141830
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/modern/transform.js
141714
141831
  var import_lodash4 = __toESM(require_lodash3());
141715
141832
  init_esm4();
141716
141833
  var _excluded = ["type", "title", "default", "enum", "x-validate"];
@@ -141871,7 +141988,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
141871
141988
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
141872
141989
  }
141873
141990
 
141874
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/modern/prompt.js
141991
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/modern/prompt.js
141875
141992
  function ownKeys3(object, enumerableOnly) {
141876
141993
  var keys = Object.keys(object);
141877
141994
  if (Object.getOwnPropertySymbols) {
@@ -141994,7 +142111,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
141994
142111
  return answers;
141995
142112
  }
141996
142113
 
141997
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/modern/inquirer.js
142114
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/modern/inquirer.js
141998
142115
  function ownKeys4(object, enumerableOnly) {
141999
142116
  var keys = Object.keys(object);
142000
142117
  if (Object.getOwnPropertySymbols) {
@@ -142055,7 +142172,7 @@ var CLIReader = class {
142055
142172
  }
142056
142173
  };
142057
142174
 
142058
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.2_mhkz4ikn5s5pzn5fluzp7hmrvm/node_modules/@modern-js/codesmith-formily/dist/js/modern/index.js
142175
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.3_m2xzc4l6wqgwto6nf3bjzlxcgi/node_modules/@modern-js/codesmith-formily/dist/js/modern/index.js
142059
142176
  init_esm4();
142060
142177
  function _defineProperty10(obj, key, value) {
142061
142178
  if (key in obj) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20221220182630",
14
+ "version": "0.0.0-next-20221221085031",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -20,22 +20,22 @@
20
20
  ],
21
21
  "devDependencies": {
22
22
  "@babel/runtime": "^7.18.0",
23
- "@modern-js/codesmith": "2.0.2",
24
- "@modern-js/codesmith-api-app": "2.0.2",
23
+ "@modern-js/codesmith": "2.0.3",
24
+ "@modern-js/codesmith-api-app": "2.0.3",
25
25
  "@types/jest": "^27",
26
26
  "@types/node": "^14",
27
27
  "jest": "^27",
28
28
  "typescript": "^4",
29
- "@modern-js/base-generator": "0.0.0-next-20221220182630",
30
- "@modern-js/generator-common": "0.0.0-next-20221220182630",
31
- "@modern-js/generator-plugin": "0.0.0-next-20221220182630",
32
- "@modern-js/generator-utils": "0.0.0-next-20221220182630",
33
- "@modern-js/module-generator": "0.0.0-next-20221220182630",
34
- "@modern-js/monorepo-generator": "0.0.0-next-20221220182630",
35
- "@modern-js/mwa-generator": "0.0.0-next-20221220182630",
36
- "@modern-js/utils": "0.0.0-next-20221220182630",
37
- "@scripts/build": "0.0.0-next-20221220182630",
38
- "@scripts/jest-config": "0.0.0-next-20221220182630"
29
+ "@modern-js/base-generator": "0.0.0-next-20221221085031",
30
+ "@modern-js/generator-common": "0.0.0-next-20221221085031",
31
+ "@modern-js/generator-plugin": "0.0.0-next-20221221085031",
32
+ "@modern-js/module-generator": "0.0.0-next-20221221085031",
33
+ "@modern-js/generator-utils": "0.0.0-next-20221221085031",
34
+ "@modern-js/monorepo-generator": "0.0.0-next-20221221085031",
35
+ "@modern-js/mwa-generator": "0.0.0-next-20221221085031",
36
+ "@modern-js/utils": "0.0.0-next-20221221085031",
37
+ "@scripts/build": "0.0.0-next-20221221085031",
38
+ "@scripts/jest-config": "0.0.0-next-20221221085031"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {