@modern-js/entry-generator 3.0.9 → 3.0.11

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.
package/README.md CHANGED
@@ -19,8 +19,8 @@ Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-sta
19
19
 
20
20
  ## Contributing
21
21
 
22
- Please read the [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md).
22
+ Please read the [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md).
23
23
 
24
24
  ## License
25
25
 
26
- Modern.js is [MIT licensed](https://github.com/modern-js-dev/modern.js/blob/main/LICENSE).
26
+ Modern.js is [MIT licensed](https://github.com/web-infra-dev/modern.js/blob/main/LICENSE).
package/dist/index.js CHANGED
@@ -35512,8 +35512,10 @@ var require_is = __commonJS({
35512
35512
  isEmpty: () => isEmpty2,
35513
35513
  isFastRefresh: () => isFastRefresh,
35514
35514
  isRouterV5: () => isRouterV5,
35515
+ isSSGEntry: () => isSSGEntry,
35515
35516
  isSSR: () => isSSR,
35516
35517
  isServiceWorker: () => isServiceWorker,
35518
+ isSingleEntry: () => isSingleEntry2,
35517
35519
  isTypescript: () => isTypescript,
35518
35520
  isUseSSRBundle: () => isUseSSRBundle
35519
35521
  });
@@ -35571,6 +35573,12 @@ var require_is = __commonJS({
35571
35573
  var _a2, _b, _c;
35572
35574
  return typeof ((_a2 = config.runtime) == null ? void 0 : _a2.router) !== "boolean" && ((_c = (_b = config == null ? void 0 : config.runtime) == null ? void 0 : _b.router) == null ? void 0 : _c.mode) === "react-router-5";
35573
35575
  };
35576
+ var isSSGEntry = (config, entryName, entrypoints) => {
35577
+ const ssgConfig = config.output.ssg;
35578
+ const useSSG = isSingleEntry2(entrypoints) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig == null ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig == null ? void 0 : ssgConfig[entryName]);
35579
+ return useSSG;
35580
+ };
35581
+ var isSingleEntry2 = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
35574
35582
  }
35575
35583
  });
35576
35584
 
@@ -37022,14 +37030,12 @@ var require_prettyInstructions = __commonJS({
37022
37030
  __export2(prettyInstructions_exports, {
37023
37031
  getAddressUrls: () => getAddressUrls,
37024
37032
  getIpv4Interfaces: () => getIpv4Interfaces,
37025
- isSingleEntry: () => isSingleEntry2,
37026
37033
  prettyInstructions: () => prettyInstructions
37027
37034
  });
37028
37035
  module2.exports = __toCommonJS2(prettyInstructions_exports);
37029
37036
  var import_os = __toESM2(require("os"));
37030
37037
  var import_compiled = require_compiled();
37031
37038
  var import_is = require_is();
37032
- var isSingleEntry2 = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
37033
37039
  var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
37034
37040
  var getIpv4Interfaces = () => {
37035
37041
  const interfaces = import_os.default.networkInterfaces();
@@ -37068,7 +37074,7 @@ var require_prettyInstructions = __commonJS({
37068
37074
  );
37069
37075
  const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
37070
37076
  let message = "App running at:\n\n";
37071
- if (isSingleEntry2(entrypoints) || apiOnly) {
37077
+ if ((0, import_is.isSingleEntry)(entrypoints) || apiOnly) {
37072
37078
  message += urls.map(
37073
37079
  ({ type, url }) => ` ${import_compiled.chalk.bold(`> ${type.padEnd(10)}`)}${import_compiled.chalk.cyanBright(
37074
37080
  normalizeUrl(`${url}/${routes[0].urlPath}`)
@@ -37560,7 +37566,8 @@ var require_analyzeProject = __commonJS({
37560
37566
  };
37561
37567
  var analyzeProject_exports = {};
37562
37568
  __export2(analyzeProject_exports, {
37563
- isApiOnly: () => isApiOnly
37569
+ isApiOnly: () => isApiOnly,
37570
+ isWebOnly: () => isWebOnly
37564
37571
  });
37565
37572
  module2.exports = __toCommonJS2(analyzeProject_exports);
37566
37573
  var path4 = __toESM2(require("path"));
@@ -37571,6 +37578,10 @@ var require_analyzeProject = __commonJS({
37571
37578
  const options = (0, import_compiled.minimist)(process.argv.slice(2));
37572
37579
  return !existSrc || Boolean(options["api-only"]);
37573
37580
  });
37581
+ var isWebOnly = () => __async2(void 0, null, function* () {
37582
+ const options = (0, import_compiled.minimist)(process.argv.slice(2));
37583
+ return Boolean(options["web-only"]);
37584
+ });
37574
37585
  }
37575
37586
  });
37576
37587
 
@@ -77161,9 +77172,9 @@ var require_src2 = __commonJS({
77161
77172
  }
77162
77173
  });
77163
77174
 
77164
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
77175
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
77165
77176
  var require_env = __commonJS({
77166
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
77177
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
77167
77178
  "use strict";
77168
77179
  Object.defineProperty(exports, "__esModule", {
77169
77180
  value: true
@@ -77225,9 +77236,9 @@ var require_env = __commonJS({
77225
77236
  }
77226
77237
  });
77227
77238
 
77228
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
77239
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
77229
77240
  var require_install = __commonJS({
77230
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
77241
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
77231
77242
  "use strict";
77232
77243
  Object.defineProperty(exports, "__esModule", {
77233
77244
  value: true
@@ -77379,9 +77390,9 @@ var require_install = __commonJS({
77379
77390
  }
77380
77391
  });
77381
77392
 
77382
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
77393
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
77383
77394
  var require_utils = __commonJS({
77384
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
77395
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
77385
77396
  "use strict";
77386
77397
  Object.defineProperty(exports, "__esModule", {
77387
77398
  value: true
@@ -77445,9 +77456,9 @@ var require_utils = __commonJS({
77445
77456
  }
77446
77457
  });
77447
77458
 
77448
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
77459
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
77449
77460
  var require_node = __commonJS({
77450
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.4/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
77461
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
77451
77462
  "use strict";
77452
77463
  Object.defineProperty(exports, "__esModule", {
77453
77464
  value: true
@@ -77522,9 +77533,9 @@ var require_node = __commonJS({
77522
77533
  }
77523
77534
  });
77524
77535
 
77525
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
77536
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
77526
77537
  var require_utils2 = __commonJS({
77527
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
77538
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
77528
77539
  "use strict";
77529
77540
  Object.defineProperty(exports, "__esModule", {
77530
77541
  value: true
@@ -77599,9 +77610,9 @@ var require_utils2 = __commonJS({
77599
77610
  }
77600
77611
  });
77601
77612
 
77602
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
77613
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
77603
77614
  var require_node2 = __commonJS({
77604
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
77615
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
77605
77616
  "use strict";
77606
77617
  Object.defineProperty(exports, "__esModule", {
77607
77618
  value: true
@@ -77680,9 +77691,9 @@ var require_node2 = __commonJS({
77680
77691
  }
77681
77692
  });
77682
77693
 
77683
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
77694
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
77684
77695
  var require_constants3 = __commonJS({
77685
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
77696
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
77686
77697
  "use strict";
77687
77698
  Object.defineProperty(exports, "__esModule", {
77688
77699
  value: true
@@ -77703,9 +77714,9 @@ var require_constants3 = __commonJS({
77703
77714
  }
77704
77715
  });
77705
77716
 
77706
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
77717
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
77707
77718
  var require_logger3 = __commonJS({
77708
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
77719
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
77709
77720
  "use strict";
77710
77721
  Object.defineProperty(exports, "__esModule", {
77711
77722
  value: true
@@ -77773,9 +77784,9 @@ var require_logger3 = __commonJS({
77773
77784
  }
77774
77785
  });
77775
77786
 
77776
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
77787
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
77777
77788
  var require_constants4 = __commonJS({
77778
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
77789
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
77779
77790
  "use strict";
77780
77791
  Object.defineProperty(exports, "__esModule", {
77781
77792
  value: true
@@ -77786,9 +77797,9 @@ var require_constants4 = __commonJS({
77786
77797
  }
77787
77798
  });
77788
77799
 
77789
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
77800
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
77790
77801
  var require_FsResource = __commonJS({
77791
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
77802
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
77792
77803
  "use strict";
77793
77804
  Object.defineProperty(exports, "__esModule", {
77794
77805
  value: true
@@ -77839,9 +77850,9 @@ var require_FsResource = __commonJS({
77839
77850
  }
77840
77851
  });
77841
77852
 
77842
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
77853
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
77843
77854
  var require_FsMaterial = __commonJS({
77844
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
77855
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
77845
77856
  "use strict";
77846
77857
  Object.defineProperty(exports, "__esModule", {
77847
77858
  value: true
@@ -77893,9 +77904,9 @@ var require_FsMaterial = __commonJS({
77893
77904
  }
77894
77905
  });
77895
77906
 
77896
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
77907
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
77897
77908
  var require_nodeRequire = __commonJS({
77898
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
77909
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
77899
77910
  "use strict";
77900
77911
  Object.defineProperty(exports, "__esModule", {
77901
77912
  value: true
@@ -77920,9 +77931,9 @@ var require_nodeRequire = __commonJS({
77920
77931
  }
77921
77932
  });
77922
77933
 
77923
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
77934
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
77924
77935
  var require_fsExists = __commonJS({
77925
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
77936
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
77926
77937
  "use strict";
77927
77938
  Object.defineProperty(exports, "__esModule", {
77928
77939
  value: true
@@ -77942,9 +77953,9 @@ var require_fsExists = __commonJS({
77942
77953
  }
77943
77954
  });
77944
77955
 
77945
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
77956
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
77946
77957
  var require_getGeneratorDir = __commonJS({
77947
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
77958
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
77948
77959
  "use strict";
77949
77960
  Object.defineProperty(exports, "__esModule", {
77950
77961
  value: true
@@ -77978,9 +77989,9 @@ var require_getGeneratorDir = __commonJS({
77978
77989
  }
77979
77990
  });
77980
77991
 
77981
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
77992
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
77982
77993
  var require_generator = __commonJS({
77983
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
77994
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
77984
77995
  "use strict";
77985
77996
  Object.defineProperty(exports, "__esModule", {
77986
77997
  value: true
@@ -78228,9 +78239,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
78228
78239
  }
78229
78240
  });
78230
78241
 
78231
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
78242
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
78232
78243
  var require_packageManager = __commonJS({
78233
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
78244
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
78234
78245
  "use strict";
78235
78246
  Object.defineProperty(exports, "__esModule", {
78236
78247
  value: true
@@ -78308,9 +78319,9 @@ var require_packageManager = __commonJS({
78308
78319
  }
78309
78320
  });
78310
78321
 
78311
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
78322
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
78312
78323
  var require_timeoutPromise = __commonJS({
78313
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
78324
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
78314
78325
  "use strict";
78315
78326
  Object.defineProperty(exports, "__esModule", {
78316
78327
  value: true
@@ -86136,9 +86147,9 @@ var require_tar = __commonJS({
86136
86147
  }
86137
86148
  });
86138
86149
 
86139
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/constants.js
86150
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js
86140
86151
  var require_constants6 = __commonJS({
86141
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
86152
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
86142
86153
  "use strict";
86143
86154
  Object.defineProperty(exports, "__esModule", {
86144
86155
  value: true
@@ -86151,9 +86162,9 @@ var require_constants6 = __commonJS({
86151
86162
  }
86152
86163
  });
86153
86164
 
86154
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
86165
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
86155
86166
  var require_getNpmTarballUrl = __commonJS({
86156
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
86167
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
86157
86168
  "use strict";
86158
86169
  Object.defineProperty(exports, "__esModule", {
86159
86170
  value: true
@@ -86187,9 +86198,9 @@ var require_getNpmTarballUrl = __commonJS({
86187
86198
  }
86188
86199
  });
86189
86200
 
86190
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
86201
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
86191
86202
  var require_getNpmVersion = __commonJS({
86192
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
86203
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
86193
86204
  "use strict";
86194
86205
  Object.defineProperty(exports, "__esModule", {
86195
86206
  value: true
@@ -86225,9 +86236,9 @@ var require_getNpmVersion = __commonJS({
86225
86236
  }
86226
86237
  });
86227
86238
 
86228
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
86239
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
86229
86240
  var require_downloadPackage = __commonJS({
86230
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
86241
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
86231
86242
  "use strict";
86232
86243
  Object.defineProperty(exports, "__esModule", {
86233
86244
  value: true
@@ -86329,9 +86340,9 @@ var require_downloadPackage = __commonJS({
86329
86340
  }
86330
86341
  });
86331
86342
 
86332
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
86343
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
86333
86344
  var require_getPackageInfo = __commonJS({
86334
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
86345
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
86335
86346
  "use strict";
86336
86347
  Object.defineProperty(exports, "__esModule", {
86337
86348
  value: true
@@ -86363,9 +86374,9 @@ var require_getPackageInfo = __commonJS({
86363
86374
  }
86364
86375
  });
86365
86376
 
86366
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
86377
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
86367
86378
  var require_utils4 = __commonJS({
86368
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
86379
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
86369
86380
  "use strict";
86370
86381
  Object.defineProperty(exports, "__esModule", {
86371
86382
  value: true
@@ -86441,9 +86452,9 @@ var require_utils4 = __commonJS({
86441
86452
  }
86442
86453
  });
86443
86454
 
86444
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
86455
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
86445
86456
  var require_materials = __commonJS({
86446
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
86457
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
86447
86458
  "use strict";
86448
86459
  Object.defineProperty(exports, "__esModule", {
86449
86460
  value: true
@@ -86501,9 +86512,9 @@ var require_materials = __commonJS({
86501
86512
  }
86502
86513
  });
86503
86514
 
86504
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
86515
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
86505
86516
  var require_codesmith = __commonJS({
86506
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
86517
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
86507
86518
  "use strict";
86508
86519
  Object.defineProperty(exports, "__esModule", {
86509
86520
  value: true
@@ -86579,9 +86590,9 @@ var require_codesmith = __commonJS({
86579
86590
  }
86580
86591
  });
86581
86592
 
86582
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/index.js
86593
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js
86583
86594
  var require_node3 = __commonJS({
86584
- "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
86595
+ "../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
86585
86596
  "use strict";
86586
86597
  Object.defineProperty(exports, "__esModule", {
86587
86598
  value: true
@@ -92535,9 +92546,9 @@ var require_lib = __commonJS({
92535
92546
  }
92536
92547
  });
92537
92548
 
92538
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
92549
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
92539
92550
  var require_renderString = __commonJS({
92540
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
92551
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
92541
92552
  "use strict";
92542
92553
  Object.defineProperty(exports, "__esModule", {
92543
92554
  value: true
@@ -92586,9 +92597,9 @@ var require_renderString = __commonJS({
92586
92597
  }
92587
92598
  });
92588
92599
 
92589
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
92600
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
92590
92601
  var require_utils6 = __commonJS({
92591
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
92602
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
92592
92603
  "use strict";
92593
92604
  Object.defineProperty(exports, "__esModule", {
92594
92605
  value: true
@@ -92603,9 +92614,9 @@ var require_utils6 = __commonJS({
92603
92614
  }
92604
92615
  });
92605
92616
 
92606
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
92617
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
92607
92618
  var require_node4 = __commonJS({
92608
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
92619
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
92609
92620
  "use strict";
92610
92621
  Object.defineProperty(exports, "__esModule", {
92611
92622
  value: true
@@ -92619,6 +92630,27 @@ var require_node4 = __commonJS({
92619
92630
  });
92620
92631
  var _codesmith = require_node3();
92621
92632
  var _utils = require_utils6();
92633
+ function ownKeys(object, enumerableOnly) {
92634
+ var keys = Object.keys(object);
92635
+ if (Object.getOwnPropertySymbols) {
92636
+ var symbols = Object.getOwnPropertySymbols(object);
92637
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
92638
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
92639
+ })), keys.push.apply(keys, symbols);
92640
+ }
92641
+ return keys;
92642
+ }
92643
+ function _objectSpread(target) {
92644
+ for (var i = 1; i < arguments.length; i++) {
92645
+ var source = null != arguments[i] ? arguments[i] : {};
92646
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
92647
+ _defineProperty(target, key, source[key]);
92648
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
92649
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
92650
+ });
92651
+ }
92652
+ return target;
92653
+ }
92622
92654
  function _defineProperty(obj, key, value) {
92623
92655
  if (key in obj) {
92624
92656
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
@@ -92637,6 +92669,16 @@ var require_node4 = __commonJS({
92637
92669
  partials: {}
92638
92670
  };
92639
92671
  }
92672
+ registerHelp(helpers) {
92673
+ return __async(this, null, function* () {
92674
+ this.registers.helpers = _objectSpread(_objectSpread({}, this.registers.helpers), helpers);
92675
+ });
92676
+ }
92677
+ registerPartials(partials) {
92678
+ return __async(this, null, function* () {
92679
+ this.registers.partials = _objectSpread(_objectSpread({}, this.registers.partials), partials);
92680
+ });
92681
+ }
92640
92682
  renderTemplate(_0, _1) {
92641
92683
  return __async(this, arguments, function* (templateResource, target, parameters = {}) {
92642
92684
  if (templateResource._type !== _codesmith.FS_RESOURCE) {
@@ -93378,9 +93420,9 @@ var require_ejs = __commonJS({
93378
93420
  }
93379
93421
  });
93380
93422
 
93381
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
93423
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
93382
93424
  var require_renderString2 = __commonJS({
93383
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
93425
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
93384
93426
  "use strict";
93385
93427
  Object.defineProperty(exports, "__esModule", {
93386
93428
  value: true
@@ -93396,9 +93438,9 @@ var require_renderString2 = __commonJS({
93396
93438
  }
93397
93439
  });
93398
93440
 
93399
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
93441
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
93400
93442
  var require_utils8 = __commonJS({
93401
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
93443
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
93402
93444
  "use strict";
93403
93445
  Object.defineProperty(exports, "__esModule", {
93404
93446
  value: true
@@ -93413,9 +93455,9 @@ var require_utils8 = __commonJS({
93413
93455
  }
93414
93456
  });
93415
93457
 
93416
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
93458
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
93417
93459
  var require_node5 = __commonJS({
93418
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
93460
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
93419
93461
  "use strict";
93420
93462
  Object.defineProperty(exports, "__esModule", {
93421
93463
  value: true
@@ -93473,9 +93515,9 @@ var require_node5 = __commonJS({
93473
93515
  }
93474
93516
  });
93475
93517
 
93476
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
93518
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
93477
93519
  var require_constant = __commonJS({
93478
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
93520
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
93479
93521
  "use strict";
93480
93522
  Object.defineProperty(exports, "__esModule", {
93481
93523
  value: true
@@ -93486,9 +93528,9 @@ var require_constant = __commonJS({
93486
93528
  }
93487
93529
  });
93488
93530
 
93489
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
93531
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
93490
93532
  var require_node6 = __commonJS({
93491
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.4_@modern-js+codesmith@2.0.4/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
93533
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
93492
93534
  "use strict";
93493
93535
  Object.defineProperty(exports, "__esModule", {
93494
93536
  value: true
@@ -134847,9 +134889,9 @@ var require_inquirer = __commonJS({
134847
134889
  }
134848
134890
  });
134849
134891
 
134850
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
134892
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
134851
134893
  var require_transform = __commonJS({
134852
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
134894
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
134853
134895
  "use strict";
134854
134896
  Object.defineProperty(exports, "__esModule", {
134855
134897
  value: true
@@ -135018,9 +135060,9 @@ var require_transform = __commonJS({
135018
135060
  }
135019
135061
  });
135020
135062
 
135021
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
135063
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
135022
135064
  var require_prompt2 = __commonJS({
135023
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
135065
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
135024
135066
  "use strict";
135025
135067
  Object.defineProperty(exports, "__esModule", {
135026
135068
  value: true
@@ -135158,9 +135200,9 @@ var require_prompt2 = __commonJS({
135158
135200
  }
135159
135201
  });
135160
135202
 
135161
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
135203
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
135162
135204
  var require_inquirer2 = __commonJS({
135163
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
135205
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
135164
135206
  "use strict";
135165
135207
  Object.defineProperty(exports, "__esModule", {
135166
135208
  value: true
@@ -135232,9 +135274,9 @@ var require_inquirer2 = __commonJS({
135232
135274
  }
135233
135275
  });
135234
135276
 
135235
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
135277
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
135236
135278
  var require_node7 = __commonJS({
135237
- "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
135279
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
135238
135280
  "use strict";
135239
135281
  Object.defineProperty(exports, "__esModule", {
135240
135282
  value: true
@@ -138047,9 +138089,9 @@ var require_node8 = __commonJS({
138047
138089
  }
138048
138090
  });
138049
138091
 
138050
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
138092
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
138051
138093
  var require_zh = __commonJS({
138052
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
138094
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
138053
138095
  "use strict";
138054
138096
  Object.defineProperty(exports, "__esModule", {
138055
138097
  value: true
@@ -138084,9 +138126,9 @@ var require_zh = __commonJS({
138084
138126
  }
138085
138127
  });
138086
138128
 
138087
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
138129
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
138088
138130
  var require_en = __commonJS({
138089
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
138131
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
138090
138132
  "use strict";
138091
138133
  Object.defineProperty(exports, "__esModule", {
138092
138134
  value: true
@@ -138121,9 +138163,9 @@ var require_en = __commonJS({
138121
138163
  }
138122
138164
  });
138123
138165
 
138124
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
138166
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
138125
138167
  var require_locale = __commonJS({
138126
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
138168
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
138127
138169
  "use strict";
138128
138170
  Object.defineProperty(exports, "__esModule", {
138129
138171
  value: true
@@ -138148,9 +138190,9 @@ var require_locale = __commonJS({
138148
138190
  }
138149
138191
  });
138150
138192
 
138151
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
138193
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
138152
138194
  var require_transform2 = __commonJS({
138153
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
138195
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
138154
138196
  "use strict";
138155
138197
  Object.defineProperty(exports, "__esModule", {
138156
138198
  value: true
@@ -138185,9 +138227,9 @@ var require_transform2 = __commonJS({
138185
138227
  }
138186
138228
  });
138187
138229
 
138188
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js
138230
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js
138189
138231
  var require_checkUseNvm = __commonJS({
138190
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js"(exports) {
138232
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js"(exports) {
138191
138233
  "use strict";
138192
138234
  Object.defineProperty(exports, "__esModule", {
138193
138235
  value: true
@@ -138250,9 +138292,9 @@ var require_checkUseNvm = __commonJS({
138250
138292
  }
138251
138293
  });
138252
138294
 
138253
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
138295
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
138254
138296
  var require_node9 = __commonJS({
138255
- "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.4_abeg2odgkribreskybq6zrfqfq/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
138297
+ "../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
138256
138298
  "use strict";
138257
138299
  Object.defineProperty(exports, "__esModule", {
138258
138300
  value: true
@@ -138306,13 +138348,13 @@ var require_node9 = __commonJS({
138306
138348
  var AppAPI2 = class {
138307
138349
  constructor(generatorContext, generatorCore) {
138308
138350
  _defineProperty(this, "i18n", _locale.i18n);
138309
- _defineProperty(this, "generatorCore", void 0);
138310
- _defineProperty(this, "generatorContext", void 0);
138311
138351
  _defineProperty(this, "npmApi", void 0);
138312
138352
  _defineProperty(this, "gitApi", void 0);
138313
138353
  _defineProperty(this, "handlebarsAPI", void 0);
138314
138354
  _defineProperty(this, "ejsAPI", void 0);
138315
138355
  _defineProperty(this, "fsAPI", void 0);
138356
+ _defineProperty(this, "generatorCore", void 0);
138357
+ _defineProperty(this, "generatorContext", void 0);
138316
138358
  this.generatorCore = generatorCore;
138317
138359
  this.generatorContext = generatorContext;
138318
138360
  this.npmApi = new _codesmithApiNpm.NpmAPI(generatorCore);
@@ -138372,6 +138414,7 @@ var require_node9 = __commonJS({
138372
138414
  yield intallPromise;
138373
138415
  this.generatorCore.logger.info(_locale.i18n.t(_locale.localeKeys.install.success));
138374
138416
  } catch (e) {
138417
+ this.generatorCore.logger.warn(e);
138375
138418
  this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.install.failed, {
138376
138419
  command: command || `${packageManager} install`
138377
138420
  }));
@@ -138635,8 +138678,8 @@ var I18n = class {
138635
138678
  var ZH_LOCALE = {
138636
138679
  solution: {
138637
138680
  self: "请选择你想创建的工程类型",
138638
- mwa: "应用",
138639
- module: "模块",
138681
+ mwa: "Web 应用",
138682
+ module: "Npm 模块",
138640
138683
  monorepo: "Monorepo",
138641
138684
  custom: "自定义",
138642
138685
  default: "默认"
@@ -138646,10 +138689,10 @@ var ZH_LOCALE = {
138646
138689
  },
138647
138690
  sub_solution: {
138648
138691
  self: "请选择你想创建的工程类型",
138649
- mwa: "应用",
138650
- mwa_test: "应用(测试)",
138651
- module: "模块",
138652
- inner_module: "模块(内部)"
138692
+ mwa: "Web 应用",
138693
+ mwa_test: "Web 应用(测试)",
138694
+ module: "Npm 模块",
138695
+ inner_module: "Npm 模块(内部)"
138653
138696
  },
138654
138697
  action: {
138655
138698
  self: "请选择你想要的操作",
@@ -138669,7 +138712,7 @@ var ZH_LOCALE = {
138669
138712
  polyfill: "启用「基于 UA 的 Polyfill」功能",
138670
138713
  proxy: "启用「全局代理」",
138671
138714
  swc: "启用「SWC 编译」",
138672
- rspack: "启用「rspack 构建」"
138715
+ rspack: "启用「Rspack 构建」(实验性)"
138673
138716
  },
138674
138717
  element: {
138675
138718
  self: "创建工程元素",
@@ -138723,7 +138766,7 @@ var ZH_LOCALE = {
138723
138766
  buildTools: {
138724
138767
  self: "请选择构建工具",
138725
138768
  webpack: "webpack",
138726
- rspack: "rspack (experimental)"
138769
+ rspack: "Rspack (实验性)"
138727
138770
  }
138728
138771
  };
138729
138772
 
@@ -138731,9 +138774,9 @@ var ZH_LOCALE = {
138731
138774
  var EN_LOCALE = {
138732
138775
  solution: {
138733
138776
  self: "Please select the solution you want to create",
138734
- mwa: "Web App Solution",
138735
- module: "Module Solution",
138736
- monorepo: "Monorepo Solution",
138777
+ mwa: "Web App",
138778
+ module: "Npm Module",
138779
+ monorepo: "Monorepo",
138737
138780
  custom: "Custom Solution",
138738
138781
  default: "Default"
138739
138782
  },
@@ -138742,11 +138785,11 @@ var EN_LOCALE = {
138742
138785
  },
138743
138786
  sub_solution: {
138744
138787
  self: "Please select the solution you want to create",
138745
- mwa: "Web App Solution",
138746
- mwa_test: "Web App Solution (Test)",
138747
- module: "Module Solution",
138748
- inner_module: "Module Solution (Inner)",
138749
- monorepo: "Monorepo Solution"
138788
+ mwa: "Web App",
138789
+ mwa_test: "Web App (Test)",
138790
+ module: "Npm Module",
138791
+ inner_module: "Npm Module (Inner)",
138792
+ monorepo: "Monorepo"
138750
138793
  },
138751
138794
  action: {
138752
138795
  self: "Action",
@@ -138766,7 +138809,7 @@ var EN_LOCALE = {
138766
138809
  polyfill: "Enable UA-based Polyfill Feature",
138767
138810
  proxy: "Enable Global Proxy",
138768
138811
  swc: "Enable SWC Compile",
138769
- rspack: "Enable rspack Build"
138812
+ rspack: "Enable Rspack Build (experimental)"
138770
138813
  },
138771
138814
  element: {
138772
138815
  self: "Create project element",
@@ -138786,7 +138829,7 @@ var EN_LOCALE = {
138786
138829
  self: "Development Language"
138787
138830
  },
138788
138831
  packageManager: {
138789
- self: "Package Management Tool"
138832
+ self: "Package Manager"
138790
138833
  },
138791
138834
  packageName: {
138792
138835
  self: "Package Name",
@@ -138818,9 +138861,9 @@ var EN_LOCALE = {
138818
138861
  }
138819
138862
  },
138820
138863
  buildTools: {
138821
- self: "Build Tools",
138864
+ self: "Bundler",
138822
138865
  webpack: "webpack",
138823
- rspack: "rspack (experimental)"
138866
+ rspack: "Rspack (experimental)"
138824
138867
  }
138825
138868
  };
138826
138869
 
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "name": "@modern-js/entry-generator",
3
3
  "description": "A Progressive React Framework for modern web development.",
4
4
  "homepage": "https://modernjs.dev",
5
- "bugs": "https://github.com/modern-js-dev/modern.js/issues",
6
- "repository": "modern-js-dev/modern.js",
5
+ "bugs": "https://github.com/web-infra-dev/modern.js/issues",
6
+ "repository": "web-infra-dev/modern.js",
7
7
  "license": "MIT",
8
8
  "keywords": [
9
9
  "react",
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "3.0.9",
14
+ "version": "3.0.11",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -20,19 +20,19 @@
20
20
  ],
21
21
  "devDependencies": {
22
22
  "@babel/runtime": "^7.18.0",
23
- "@modern-js/codesmith": "2.0.4",
24
- "@modern-js/codesmith-api-app": "2.0.4",
25
- "@modern-js/codesmith-api-handlebars": "2.0.4",
23
+ "@modern-js/codesmith": "2.0.5",
24
+ "@modern-js/codesmith-api-app": "2.0.5",
25
+ "@modern-js/codesmith-api-handlebars": "2.0.5",
26
26
  "@types/jest": "^27",
27
27
  "@types/node": "^14",
28
28
  "jest": "^27",
29
29
  "typescript": "^4",
30
- "@modern-js/generator-common": "3.0.9",
31
- "@modern-js/plugin-i18n": "2.7.0",
32
- "@modern-js/generator-utils": "3.0.9",
33
- "@modern-js/utils": "2.7.0",
34
- "@scripts/build": "2.7.0",
35
- "@scripts/jest-config": "2.7.0"
30
+ "@modern-js/generator-common": "3.0.11",
31
+ "@modern-js/utils": "2.9.0",
32
+ "@modern-js/generator-utils": "3.0.11",
33
+ "@modern-js/plugin-i18n": "2.9.0",
34
+ "@scripts/build": "2.9.0",
35
+ "@scripts/jest-config": "2.9.0"
36
36
  },
37
37
  "sideEffects": false,
38
38
  "publishConfig": {
@@ -70,7 +70,7 @@ const Index = () => (
70
70
  <p>Find all configuration items provided by Modern.js.</p>
71
71
  </a>
72
72
  <a
73
- href="https://github.com/modern-js-dev/modern.js"
73
+ href="https://github.com/web-infra-dev/modern.js"
74
74
  target="_blank"
75
75
  rel="noopener noreferrer"
76
76
  className="card"