@modern-js/repo-generator 0.0.0-next-20240930063021 → 0.0.0-next-20240930065356

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 +210 -37
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -1,19 +1,11 @@
1
1
  (function(global1, factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("@modern-js/codesmith-api-app"), require("@modern-js/plugin-i18n"), require("path"), require("@modern-js/codesmith"), require("@modern-js/codesmith-api-json"), require("@modern-js/codesmith-api-git"), require("@modern-js/codesmith-utils"), require("@modern-js/codesmith-formily"), require("@modern-js/codesmith-api-npm"));
2
+ if (typeof module === "object" && typeof module.exports === "object") factory(exports, require("path"));
3
3
  else if (typeof define === "function" && define.amd) define([
4
4
  "exports",
5
- "@modern-js/codesmith-api-app",
6
- "@modern-js/plugin-i18n",
7
- "path",
8
- "@modern-js/codesmith",
9
- "@modern-js/codesmith-api-json",
10
- "@modern-js/codesmith-api-git",
11
- "@modern-js/codesmith-utils",
12
- "@modern-js/codesmith-formily",
13
- "@modern-js/codesmith-api-npm"
5
+ "path"
14
6
  ], factory);
15
- else if (global1 = typeof globalThis !== "undefined" ? globalThis : global1 || self) factory(global1.index = {}, global1.codesmithApiApp, global1.pluginI18N, global1.path, global1.codesmith, global1.codesmithApiJson, global1.codesmithApiGit, global1.codesmithUtils, global1.codesmithFormily, global1.codesmithApiNpm);
16
- })(this, function(exports, _codesmithapiapp, _plugini18n, _path, _codesmith, _codesmithapijson, _codesmithapigit, _codesmithutils, _codesmithformily, _codesmithapinpm) {
7
+ else if (global1 = typeof globalThis !== "undefined" ? globalThis : global1 || self) factory(global1.index = {}, global1.path);
8
+ })(this, function(exports, _path) {
17
9
  "use strict";
18
10
  Object.defineProperty(exports, "__esModule", {
19
11
  value: true
@@ -103,6 +95,13 @@
103
95
  step((generator = generator.apply(__this, __arguments)).next());
104
96
  });
105
97
  };
98
+ // globals:@modern-js/codesmith-api-app
99
+ var require_codesmith_api_app = __commonJS({
100
+ "globals:@modern-js/codesmith-api-app" (exports, module1) {
101
+ "use strict";
102
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithApiApp"];
103
+ }
104
+ });
106
105
  // ../../../../node_modules/.pnpm/lodash.flattendeep@4.4.0/node_modules/lodash.flattendeep/index.js
107
106
  var require_lodash = __commonJS({
108
107
  "../../../../node_modules/.pnpm/lodash.flattendeep@4.4.0/node_modules/lodash.flattendeep/index.js" (exports, module1) {
@@ -1290,6 +1289,20 @@
1290
1289
  module1.exports = merge2;
1291
1290
  }
1292
1291
  });
1292
+ // globals:@modern-js/plugin-i18n
1293
+ var require_plugin_i18n = __commonJS({
1294
+ "globals:@modern-js/plugin-i18n" (exports, module1) {
1295
+ "use strict";
1296
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["pluginI18N"];
1297
+ }
1298
+ });
1299
+ // globals:@modern-js/codesmith
1300
+ var require_codesmith = __commonJS({
1301
+ "globals:@modern-js/codesmith" (exports, module1) {
1302
+ "use strict";
1303
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmith"];
1304
+ }
1305
+ });
1293
1306
  // ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
1294
1307
  var require_universalify = __commonJS({
1295
1308
  "../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js" (exports) {
@@ -16577,6 +16590,13 @@ ${error.message}` : execaMessage;
16577
16590
  };
16578
16591
  }
16579
16592
  });
16593
+ // globals:@modern-js/codesmith-api-json
16594
+ var require_codesmith_api_json = __commonJS({
16595
+ "globals:@modern-js/codesmith-api-json" (exports, module1) {
16596
+ "use strict";
16597
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithApiJson"];
16598
+ }
16599
+ });
16580
16600
  // ../../../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js
16581
16601
  var require_array_union = __commonJS({
16582
16602
  "../../../../node_modules/.pnpm/array-union@2.1.0/node_modules/array-union/index.js" (exports, module1) {
@@ -34918,6 +34938,36 @@ function encode_char(c) {
34918
34938
  }
34919
34939
  }
34920
34940
  });
34941
+ // globals:@modern-js/codesmith-api-git
34942
+ var require_codesmith_api_git = __commonJS({
34943
+ "globals:@modern-js/codesmith-api-git" (exports, module1) {
34944
+ "use strict";
34945
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithApiGit"];
34946
+ }
34947
+ });
34948
+ // globals:@modern-js/codesmith-utils
34949
+ var require_codesmith_utils = __commonJS({
34950
+ "globals:@modern-js/codesmith-utils" (exports, module1) {
34951
+ "use strict";
34952
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithUtils"];
34953
+ }
34954
+ });
34955
+ // globals:@modern-js/codesmith-formily
34956
+ var require_codesmith_formily = __commonJS({
34957
+ "globals:@modern-js/codesmith-formily" (exports, module1) {
34958
+ "use strict";
34959
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithFormily"];
34960
+ }
34961
+ });
34962
+ // globals:@modern-js/codesmith-api-npm
34963
+ var require_codesmith_api_npm = __commonJS({
34964
+ "globals:@modern-js/codesmith-api-npm" (exports, module1) {
34965
+ "use strict";
34966
+ module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithApiNpm"];
34967
+ }
34968
+ });
34969
+ // src/index.ts
34970
+ var import_codesmith_api_app = __toESM(require_codesmith_api_app());
34921
34971
  // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@0.0.0-canary-20240930052349/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
34922
34972
  var import_lodash = __toESM(require_lodash());
34923
34973
  var import_lodash2 = __toESM(require_lodash2());
@@ -34925,6 +34975,8 @@ function encode_char(c) {
34925
34975
  var import_lodash4 = __toESM(require_lodash4());
34926
34976
  var import_lodash5 = __toESM(require_lodash5());
34927
34977
  var import_lodash6 = __toESM(require_lodash6());
34978
+ // ../../generator-common/dist/esm-node/locale/index.js
34979
+ var import_plugin_i18n = __toESM(require_plugin_i18n());
34928
34980
  // ../../generator-common/dist/esm-node/locale/en.js
34929
34981
  var EN_LOCALE = {
34930
34982
  solution: {
@@ -35098,7 +35150,7 @@ function encode_char(c) {
35098
35150
  }
35099
35151
  };
35100
35152
  // ../../generator-common/dist/esm-node/locale/index.js
35101
- var i18n = new _plugini18n.I18n();
35153
+ var i18n = new import_plugin_i18n.I18n();
35102
35154
  var localeKeys = i18n.init("en", {
35103
35155
  zh: ZH_LOCALE,
35104
35156
  en: EN_LOCALE
@@ -35833,7 +35885,7 @@ function encode_char(c) {
35833
35885
  function _to_consumable_array(arr) {
35834
35886
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
35835
35887
  }
35836
- // ../../../../node_modules/.pnpm/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
35888
+ // ../../../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
35837
35889
  function __generator(thisArg, body) {
35838
35890
  var _ = {
35839
35891
  label: 0,
@@ -35843,8 +35895,12 @@ function encode_char(c) {
35843
35895
  },
35844
35896
  trys: [],
35845
35897
  ops: []
35846
- }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
35847
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
35898
+ }, f, y, t, g;
35899
+ return g = {
35900
+ next: verb(0),
35901
+ "throw": verb(1),
35902
+ "return": verb(2)
35903
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
35848
35904
  return this;
35849
35905
  }), g;
35850
35906
  function verb(n) {
@@ -35925,6 +35981,8 @@ function encode_char(c) {
35925
35981
  };
35926
35982
  }
35927
35983
  }
35984
+ // ../../generator-plugin/dist/esm/index.js
35985
+ var import_codesmith6 = __toESM(require_codesmith());
35928
35986
  // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@0.0.0-canary-20240930052349/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
35929
35987
  var import_fs_extra = __toESM(require_lib());
35930
35988
  // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@0.0.0-canary-20240930052349/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
@@ -35956,6 +36014,98 @@ function encode_char(c) {
35956
36014
  });
35957
36015
  };
35958
36016
  }
36017
+ // ../../../../node_modules/.pnpm/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
36018
+ function __generator2(thisArg, body) {
36019
+ var _ = {
36020
+ label: 0,
36021
+ sent: function() {
36022
+ if (t[0] & 1) throw t[1];
36023
+ return t[1];
36024
+ },
36025
+ trys: [],
36026
+ ops: []
36027
+ }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
36028
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
36029
+ return this;
36030
+ }), g;
36031
+ function verb(n) {
36032
+ return function(v) {
36033
+ return step([
36034
+ n,
36035
+ v
36036
+ ]);
36037
+ };
36038
+ }
36039
+ function step(op) {
36040
+ if (f) throw new TypeError("Generator is already executing.");
36041
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
36042
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
36043
+ if (y = 0, t) op = [
36044
+ op[0] & 2,
36045
+ t.value
36046
+ ];
36047
+ switch(op[0]){
36048
+ case 0:
36049
+ case 1:
36050
+ t = op;
36051
+ break;
36052
+ case 4:
36053
+ _.label++;
36054
+ return {
36055
+ value: op[1],
36056
+ done: false
36057
+ };
36058
+ case 5:
36059
+ _.label++;
36060
+ y = op[1];
36061
+ op = [
36062
+ 0
36063
+ ];
36064
+ continue;
36065
+ case 7:
36066
+ op = _.ops.pop();
36067
+ _.trys.pop();
36068
+ continue;
36069
+ default:
36070
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
36071
+ _ = 0;
36072
+ continue;
36073
+ }
36074
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
36075
+ _.label = op[1];
36076
+ break;
36077
+ }
36078
+ if (op[0] === 6 && _.label < t[1]) {
36079
+ _.label = t[1];
36080
+ t = op;
36081
+ break;
36082
+ }
36083
+ if (t && _.label < t[2]) {
36084
+ _.label = t[2];
36085
+ _.ops.push(op);
36086
+ break;
36087
+ }
36088
+ if (t[2]) _.ops.pop();
36089
+ _.trys.pop();
36090
+ continue;
36091
+ }
36092
+ op = body.call(thisArg, _);
36093
+ } catch (e) {
36094
+ op = [
36095
+ 6,
36096
+ e
36097
+ ];
36098
+ y = 0;
36099
+ } finally{
36100
+ f = t = 0;
36101
+ }
36102
+ if (op[0] & 5) throw op[1];
36103
+ return {
36104
+ value: op[0] ? op[1] : void 0,
36105
+ done: true
36106
+ };
36107
+ }
36108
+ }
35959
36109
  // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@0.0.0-canary-20240930052349/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
35960
36110
  var import_execa2 = __toESM(require_execa());
35961
36111
  function canUseNpm() {
@@ -35964,7 +36114,7 @@ function encode_char(c) {
35964
36114
  function _canUseNpm() {
35965
36115
  _canUseNpm = _async_to_generator2(function() {
35966
36116
  var e;
35967
- return __generator(this, function(_state) {
36117
+ return __generator2(this, function(_state) {
35968
36118
  switch(_state.label){
35969
36119
  case 0:
35970
36120
  _state.trys.push([
@@ -36008,7 +36158,7 @@ function encode_char(c) {
36008
36158
  function _canUsePnpm() {
36009
36159
  _canUsePnpm = _async_to_generator2(function() {
36010
36160
  var e;
36011
- return __generator(this, function(_state) {
36161
+ return __generator2(this, function(_state) {
36012
36162
  switch(_state.label){
36013
36163
  case 0:
36014
36164
  _state.trys.push([
@@ -36048,6 +36198,8 @@ function encode_char(c) {
36048
36198
  }
36049
36199
  // ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@0.0.0-canary-20240930052349/node_modules/@modern-js/codesmith-utils/dist/esm/ora.js
36050
36200
  var import_ora = __toESM(require_ora());
36201
+ // ../../generator-utils/dist/esm/locale/index.js
36202
+ var import_plugin_i18n2 = __toESM(require_plugin_i18n());
36051
36203
  // ../../generator-utils/dist/esm/locale/en.js
36052
36204
  var EN_LOCALE2 = {
36053
36205
  packageName: {
@@ -36067,7 +36219,7 @@ function encode_char(c) {
36067
36219
  }
36068
36220
  };
36069
36221
  // ../../generator-utils/dist/esm/locale/index.js
36070
- var i18n2 = new _plugini18n.I18n();
36222
+ var i18n2 = new import_plugin_i18n2.I18n();
36071
36223
  var localeKeys2 = i18n2.init("en", {
36072
36224
  zh: ZH_LOCALE2,
36073
36225
  en: EN_LOCALE2
@@ -37365,6 +37517,9 @@ function encode_char(c) {
37365
37517
  if (staticProps) _defineProperties(Constructor, staticProps);
37366
37518
  return Constructor;
37367
37519
  }
37520
+ // ../../generator-plugin/dist/esm/context/file.js
37521
+ var import_codesmith = __toESM(require_codesmith());
37522
+ var import_codesmith_api_json = __toESM(require_codesmith_api_json());
37368
37523
  var import_globby = __toESM(require_globby());
37369
37524
  var FileType;
37370
37525
  (function(FileType22) {
@@ -37691,7 +37846,7 @@ function encode_char(c) {
37691
37846
  };
37692
37847
  _proto.prepare = function prepare(generator, projectPath, templatePath) {
37693
37848
  this.projectPath = projectPath;
37694
- this.jsonAPI = new _codesmithapijson.JsonAPI(generator);
37849
+ this.jsonAPI = new import_codesmith_api_json.JsonAPI(generator);
37695
37850
  this.templatePath = templatePath;
37696
37851
  };
37697
37852
  _proto.addFile = function addFile1(params) {
@@ -37739,7 +37894,7 @@ function encode_char(c) {
37739
37894
  return __generator(this, function(_state) {
37740
37895
  switch(_state.label){
37741
37896
  case 0:
37742
- fsMaterial = new _codesmith.FsMaterial(_this.projectPath);
37897
+ fsMaterial = new import_codesmith.FsMaterial(_this.projectPath);
37743
37898
  return [
37744
37899
  4,
37745
37900
  _this.jsonAPI.update(fsMaterial.get(fileName), {
@@ -37946,6 +38101,8 @@ function encode_char(c) {
37946
38101
  ]);
37947
38102
  return PluginFileAPI2;
37948
38103
  }();
38104
+ // ../../generator-plugin/dist/esm/context/git.js
38105
+ var import_codesmith_api_git = __toESM(require_codesmith_api_git());
37949
38106
  var PluginGitAPI = /* @__PURE__ */ function() {
37950
38107
  "use strict";
37951
38108
  function PluginGitAPI2() {
@@ -37957,7 +38114,7 @@ function encode_char(c) {
37957
38114
  this.gitMessage = gitMessage;
37958
38115
  };
37959
38116
  _proto.prepare = function prepare(generator, projectPath) {
37960
- this.gitApi = new _codesmithapigit.GitAPI(generator);
38117
+ this.gitApi = new import_codesmith_api_git.GitAPI(generator);
37961
38118
  this.projectPath = projectPath;
37962
38119
  };
37963
38120
  _proto.isInGitRepo = function isInGitRepo() {
@@ -38209,6 +38366,8 @@ function encode_char(c) {
38209
38366
  ]);
38210
38367
  return PluginInputContext2;
38211
38368
  }();
38369
+ // ../../new-action/dist/esm/utils/index.js
38370
+ var import_codesmith_utils = __toESM(require_codesmith_utils());
38212
38371
  var swap = (obj)=>{
38213
38372
  return Object.keys(obj).reduce((acc, key2)=>{
38214
38373
  acc[obj[key2]] = key2;
@@ -38267,12 +38426,15 @@ function encode_char(c) {
38267
38426
  function usePluginNameExport(solution, options) {
38268
38427
  return __async(this, null, function*() {
38269
38428
  const solutionVersion = yield getModernPluginVersion(solution, SolutionToolsMap[Solution.MWA], options);
38270
- if (_codesmithutils.semver.valid(solutionVersion) && _codesmithutils.semver.gte(solutionVersion, "2.0.0")) {
38271
- return _codesmithutils.semver.gt(solutionVersion, "2.24.0");
38429
+ if (import_codesmith_utils.semver.valid(solutionVersion) && import_codesmith_utils.semver.gte(solutionVersion, "2.0.0")) {
38430
+ return import_codesmith_utils.semver.gt(solutionVersion, "2.24.0");
38272
38431
  }
38273
38432
  return true;
38274
38433
  });
38275
38434
  }
38435
+ // ../../new-action/dist/esm/mwa.js
38436
+ var import_codesmith2 = __toESM(require_codesmith());
38437
+ var import_codesmith_formily = __toESM(require_codesmith_formily());
38276
38438
  // ../../new-action/dist/esm/constants.js
38277
38439
  var enableAlreadyText = {
38278
38440
  zh: "当前功能已开启,请确认对应插件依赖是否已安装。若需重新开启该功能,请移除插件依赖后再次尝试。",
@@ -38291,14 +38453,14 @@ function encode_char(c) {
38291
38453
  i18n.changeLanguage({
38292
38454
  locale: language
38293
38455
  });
38294
- const smith = new _codesmith.CodeSmith({
38456
+ const smith = new import_codesmith2.CodeSmith({
38295
38457
  debug,
38296
38458
  registryUrl: registry
38297
38459
  });
38298
38460
  if (!alreadyRepo(cwd)) {
38299
38461
  smith.logger.warn("not valid modern.js repo");
38300
38462
  }
38301
- const formilyAPI = new _codesmithformily.FormilyAPI({
38463
+ const formilyAPI = new import_codesmith_formily.FormilyAPI({
38302
38464
  materials: {},
38303
38465
  config: {},
38304
38466
  data: {},
@@ -38371,6 +38533,9 @@ function encode_char(c) {
38371
38533
  pwd: cwd
38372
38534
  });
38373
38535
  });
38536
+ // ../../new-action/dist/esm/module.js
38537
+ var import_codesmith3 = __toESM(require_codesmith());
38538
+ var import_codesmith_formily2 = __toESM(require_codesmith_formily());
38374
38539
  var ModuleNewAction = (options)=>__async(void 0, null, function*() {
38375
38540
  const { locale = "zh", distTag = "", debug = false, registry = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
38376
38541
  let UserConfig = {};
@@ -38383,14 +38548,14 @@ function encode_char(c) {
38383
38548
  i18n.changeLanguage({
38384
38549
  locale: language
38385
38550
  });
38386
- const smith = new _codesmith.CodeSmith({
38551
+ const smith = new import_codesmith3.CodeSmith({
38387
38552
  debug,
38388
38553
  registryUrl: registry
38389
38554
  });
38390
38555
  if (!alreadyRepo(cwd)) {
38391
38556
  smith.logger.warn("not valid modern.js repo");
38392
38557
  }
38393
- const formilyAPI = new _codesmithformily.FormilyAPI({
38558
+ const formilyAPI = new import_codesmith_formily2.FormilyAPI({
38394
38559
  materials: {},
38395
38560
  config: {},
38396
38561
  data: {},
@@ -38588,6 +38753,8 @@ function encode_char(c) {
38588
38753
  ]);
38589
38754
  return PluginNewAPI2;
38590
38755
  }();
38756
+ // ../../generator-plugin/dist/esm/context/npm.js
38757
+ var import_codesmith_api_npm = __toESM(require_codesmith_api_npm());
38591
38758
  var PluginNpmAPI = /* @__PURE__ */ function() {
38592
38759
  "use strict";
38593
38760
  function PluginNpmAPI2(projectPath, packageManager) {
@@ -38609,7 +38776,7 @@ function encode_char(c) {
38609
38776
  ];
38610
38777
  return [
38611
38778
  4,
38612
- (0, _codesmithapinpm.pnpmInstall)({
38779
+ (0, import_codesmith_api_npm.pnpmInstall)({
38613
38780
  cwd: _this.projectPath
38614
38781
  })
38615
38782
  ];
@@ -38626,7 +38793,7 @@ function encode_char(c) {
38626
38793
  ];
38627
38794
  return [
38628
38795
  4,
38629
- (0, _codesmithapinpm.yarnInstall)({
38796
+ (0, import_codesmith_api_npm.yarnInstall)({
38630
38797
  cwd: _this.projectPath
38631
38798
  })
38632
38799
  ];
@@ -38639,7 +38806,7 @@ function encode_char(c) {
38639
38806
  case 4:
38640
38807
  return [
38641
38808
  4,
38642
- (0, _codesmithapinpm.npmInstall)({
38809
+ (0, import_codesmith_api_npm.npmInstall)({
38643
38810
  cwd: _this.projectPath
38644
38811
  })
38645
38812
  ];
@@ -38724,6 +38891,8 @@ function encode_char(c) {
38724
38891
  ]);
38725
38892
  return PluginContext2;
38726
38893
  }();
38894
+ // ../../generator-plugin/dist/esm/locale/index.js
38895
+ var import_plugin_i18n3 = __toESM(require_plugin_i18n());
38727
38896
  // ../../generator-plugin/dist/esm/locale/en.js
38728
38897
  var EN_LOCALE3 = {
38729
38898
  setup_plugin: "Get plugin info...",
@@ -38739,11 +38908,13 @@ function encode_char(c) {
38739
38908
  run_plugin: "正在执行插件操作..."
38740
38909
  };
38741
38910
  // ../../generator-plugin/dist/esm/locale/index.js
38742
- var i18n3 = new _plugini18n.I18n();
38911
+ var i18n3 = new import_plugin_i18n3.I18n();
38743
38912
  var localeKeys3 = i18n3.init("en", {
38744
38913
  zh: ZH_LOCALE3,
38745
38914
  en: EN_LOCALE3
38746
38915
  });
38916
+ // ../../generator-plugin/dist/esm/utils/index.js
38917
+ var import_codesmith5 = __toESM(require_codesmith());
38747
38918
  // ../../generator-plugin/dist/esm/utils/module.js
38748
38919
  function requireModule(modulePath) {
38749
38920
  var module1 = __require(modulePath);
@@ -38751,6 +38922,8 @@ function encode_char(c) {
38751
38922
  "default"
38752
38923
  ]) || module1;
38753
38924
  }
38925
+ // ../../generator-plugin/dist/esm/utils/getPackageMeta.js
38926
+ var import_codesmith4 = __toESM(require_codesmith());
38754
38927
  var NPM_API_TIMEOUT = 3e4;
38755
38928
  function getPackageMeta(packageName, packageVersion, options) {
38756
38929
  return _getPackageMeta.apply(this, arguments);
@@ -38775,7 +38948,7 @@ function encode_char(c) {
38775
38948
  getPkgInfoPromise = (0, import_execa.default)("npm", params);
38776
38949
  return [
38777
38950
  4,
38778
- (0, _codesmith.timeoutPromise)(getPkgInfoPromise, NPM_API_TIMEOUT, "Get npm version of '".concat(packageName, "'"))
38951
+ (0, import_codesmith4.timeoutPromise)(getPkgInfoPromise, NPM_API_TIMEOUT, "Get npm version of '".concat(packageName, "'"))
38779
38952
  ];
38780
38953
  case 1:
38781
38954
  stdout = _state.sent().stdout;
@@ -38840,10 +39013,10 @@ function encode_char(c) {
38840
39013
  }
38841
39014
  ];
38842
39015
  }
38843
- _getPackageInfo = (0, _codesmith.getPackageInfo)(plugin), name = _getPackageInfo.name, version = _getPackageInfo.version;
39016
+ _getPackageInfo = (0, import_codesmith5.getPackageInfo)(plugin), name = _getPackageInfo.name, version = _getPackageInfo.version;
38844
39017
  return [
38845
39018
  4,
38846
- (0, _codesmith.downloadPackage)(name, version, {
39019
+ (0, import_codesmith5.downloadPackage)(name, version, {
38847
39020
  registryUrl,
38848
39021
  install: true
38849
39022
  })
@@ -38938,7 +39111,7 @@ function encode_char(c) {
38938
39111
  6
38939
39112
  ];
38940
39113
  case 4:
38941
- _getPackageInfo = (0, _codesmith.getPackageInfo)(plugin), name = _getPackageInfo.name, pkgVersion = _getPackageInfo.version;
39114
+ _getPackageInfo = (0, import_codesmith6.getPackageInfo)(plugin), name = _getPackageInfo.name, pkgVersion = _getPackageInfo.version;
38942
39115
  return [
38943
39116
  4,
38944
39117
  getPackageMeta(name, pkgVersion, {
@@ -39346,7 +39519,7 @@ function encode_char(c) {
39346
39519
  var src_default = (context, generator)=>__async(void 0, null, function*() {
39347
39520
  var _a;
39348
39521
  process.setMaxListeners(20);
39349
- const appApi = new _codesmithapiapp.AppAPI(context, generator);
39522
+ const appApi = new import_codesmith_api_app.AppAPI(context, generator);
39350
39523
  const { locale } = context.config;
39351
39524
  i18n.changeLanguage({
39352
39525
  locale
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20240930063021",
18
+ "version": "0.0.0-next-20240930065356",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,14 +30,14 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/base-generator": "0.0.0-next-20240930063021",
34
- "@modern-js/generator-common": "0.0.0-next-20240930063021",
35
- "@modern-js/generator-utils": "0.0.0-next-20240930063021",
36
- "@modern-js/generator-plugin": "0.0.0-next-20240930063021",
37
- "@modern-js/mwa-generator": "0.0.0-next-20240930063021",
38
- "@modern-js/module-generator": "0.0.0-next-20240930063021",
39
- "@scripts/build": "0.0.0-next-20240930063021",
40
- "@scripts/jest-config": "0.0.0-next-20240930063021"
33
+ "@modern-js/base-generator": "0.0.0-next-20240930065356",
34
+ "@modern-js/generator-common": "0.0.0-next-20240930065356",
35
+ "@modern-js/generator-utils": "0.0.0-next-20240930065356",
36
+ "@modern-js/generator-plugin": "0.0.0-next-20240930065356",
37
+ "@modern-js/mwa-generator": "0.0.0-next-20240930065356",
38
+ "@scripts/build": "0.0.0-next-20240930065356",
39
+ "@scripts/jest-config": "0.0.0-next-20240930065356",
40
+ "@modern-js/module-generator": "0.0.0-next-20240930065356"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {