@modern-js/repo-generator 1.2.4 → 1.2.5-rc.0

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/js/node/main.js +93 -66
  2. package/package.json +12 -11
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 3337:
4
+ /***/ 1036:
5
5
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6
6
 
7
7
  module.exports = __webpack_require__(75339);
@@ -32129,7 +32129,7 @@ module.exports.wrap = wrap;
32129
32129
  "use strict";
32130
32130
 
32131
32131
 
32132
- const fs = __webpack_require__(62204)
32132
+ const fs = __webpack_require__(19677)
32133
32133
  const path = __webpack_require__(71017)
32134
32134
  const mkdirsSync = (__webpack_require__(17433).mkdirsSync)
32135
32135
  const utimesMillisSync = (__webpack_require__(16333).utimesMillisSync)
@@ -32316,7 +32316,7 @@ module.exports = {
32316
32316
  "use strict";
32317
32317
 
32318
32318
 
32319
- const fs = __webpack_require__(62204)
32319
+ const fs = __webpack_require__(19677)
32320
32320
  const path = __webpack_require__(71017)
32321
32321
  const mkdirs = (__webpack_require__(17433).mkdirs)
32322
32322
  const pathExists = (__webpack_require__(84906).pathExists)
@@ -32619,7 +32619,7 @@ module.exports = {
32619
32619
 
32620
32620
  const u = (__webpack_require__(84357).fromCallback)
32621
32621
  const path = __webpack_require__(71017)
32622
- const fs = __webpack_require__(62204)
32622
+ const fs = __webpack_require__(19677)
32623
32623
  const mkdir = __webpack_require__(17433)
32624
32624
 
32625
32625
  function createFile (file, callback) {
@@ -32727,7 +32727,7 @@ module.exports = {
32727
32727
 
32728
32728
  const u = (__webpack_require__(84357).fromCallback)
32729
32729
  const path = __webpack_require__(71017)
32730
- const fs = __webpack_require__(62204)
32730
+ const fs = __webpack_require__(19677)
32731
32731
  const mkdir = __webpack_require__(17433)
32732
32732
  const pathExists = (__webpack_require__(84906).pathExists)
32733
32733
  const { areIdentical } = __webpack_require__(31197)
@@ -32798,7 +32798,7 @@ module.exports = {
32798
32798
 
32799
32799
 
32800
32800
  const path = __webpack_require__(71017)
32801
- const fs = __webpack_require__(62204)
32801
+ const fs = __webpack_require__(19677)
32802
32802
  const pathExists = (__webpack_require__(84906).pathExists)
32803
32803
 
32804
32804
  /**
@@ -32904,7 +32904,7 @@ module.exports = {
32904
32904
  "use strict";
32905
32905
 
32906
32906
 
32907
- const fs = __webpack_require__(62204)
32907
+ const fs = __webpack_require__(19677)
32908
32908
 
32909
32909
  function symlinkType (srcpath, type, callback) {
32910
32910
  callback = (typeof type === 'function') ? type : callback
@@ -33035,7 +33035,7 @@ module.exports = {
33035
33035
  // This is adapted from https://github.com/normalize/mz
33036
33036
  // Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
33037
33037
  const u = (__webpack_require__(84357).fromCallback)
33038
- const fs = __webpack_require__(62204)
33038
+ const fs = __webpack_require__(19677)
33039
33039
 
33040
33040
  const api = [
33041
33041
  'access',
@@ -33368,7 +33368,7 @@ module.exports = {
33368
33368
  "use strict";
33369
33369
 
33370
33370
 
33371
- const fs = __webpack_require__(62204)
33371
+ const fs = __webpack_require__(19677)
33372
33372
  const path = __webpack_require__(71017)
33373
33373
  const copySync = (__webpack_require__(55391).copySync)
33374
33374
  const removeSync = (__webpack_require__(13490).removeSync)
@@ -33444,7 +33444,7 @@ module.exports = {
33444
33444
  "use strict";
33445
33445
 
33446
33446
 
33447
- const fs = __webpack_require__(62204)
33447
+ const fs = __webpack_require__(19677)
33448
33448
  const path = __webpack_require__(71017)
33449
33449
  const copy = (__webpack_require__(97969).copy)
33450
33450
  const remove = (__webpack_require__(13490).remove)
@@ -33526,7 +33526,7 @@ module.exports = move
33526
33526
 
33527
33527
 
33528
33528
  const u = (__webpack_require__(84357).fromCallback)
33529
- const fs = __webpack_require__(62204)
33529
+ const fs = __webpack_require__(19677)
33530
33530
  const path = __webpack_require__(71017)
33531
33531
  const mkdir = __webpack_require__(17433)
33532
33532
  const pathExists = (__webpack_require__(84906).pathExists)
@@ -33593,7 +33593,7 @@ module.exports = {
33593
33593
  "use strict";
33594
33594
 
33595
33595
 
33596
- const fs = __webpack_require__(62204)
33596
+ const fs = __webpack_require__(19677)
33597
33597
  const u = (__webpack_require__(84357).fromCallback)
33598
33598
  const rimraf = __webpack_require__(94392)
33599
33599
 
@@ -33623,7 +33623,7 @@ module.exports = {
33623
33623
  "use strict";
33624
33624
 
33625
33625
 
33626
- const fs = __webpack_require__(62204)
33626
+ const fs = __webpack_require__(19677)
33627
33627
  const path = __webpack_require__(71017)
33628
33628
  const assert = __webpack_require__(39491)
33629
33629
 
@@ -34095,7 +34095,7 @@ module.exports = {
34095
34095
  "use strict";
34096
34096
 
34097
34097
 
34098
- const fs = __webpack_require__(62204)
34098
+ const fs = __webpack_require__(19677)
34099
34099
 
34100
34100
  function utimesMillis (path, atime, mtime, callback) {
34101
34101
  // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback)
@@ -39967,7 +39967,7 @@ exports["default"] = (message) => {
39967
39967
 
39968
39968
  /***/ }),
39969
39969
 
39970
- /***/ 50695:
39970
+ /***/ 83584:
39971
39971
  /***/ ((module) => {
39972
39972
 
39973
39973
  "use strict";
@@ -39998,13 +39998,13 @@ function clone (obj) {
39998
39998
 
39999
39999
  /***/ }),
40000
40000
 
40001
- /***/ 62204:
40001
+ /***/ 19677:
40002
40002
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
40003
40003
 
40004
40004
  var fs = __webpack_require__(57147)
40005
- var polyfills = __webpack_require__(79874)
40006
- var legacy = __webpack_require__(31563)
40007
- var clone = __webpack_require__(50695)
40005
+ var polyfills = __webpack_require__(18187)
40006
+ var legacy = __webpack_require__(15601)
40007
+ var clone = __webpack_require__(83584)
40008
40008
 
40009
40009
  var util = __webpack_require__(73837)
40010
40010
 
@@ -40434,7 +40434,7 @@ function retry () {
40434
40434
 
40435
40435
  /***/ }),
40436
40436
 
40437
- /***/ 31563:
40437
+ /***/ 15601:
40438
40438
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
40439
40439
 
40440
40440
  var Stream = (__webpack_require__(12781).Stream)
@@ -40559,7 +40559,7 @@ function legacy (fs) {
40559
40559
 
40560
40560
  /***/ }),
40561
40561
 
40562
- /***/ 79874:
40562
+ /***/ 18187:
40563
40563
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
40564
40564
 
40565
40565
  var constants = __webpack_require__(22057)
@@ -40874,8 +40874,10 @@ function patch (fs) {
40874
40874
  return function (target, options) {
40875
40875
  var stats = options ? orig.call(fs, target, options)
40876
40876
  : orig.call(fs, target)
40877
- if (stats.uid < 0) stats.uid += 0x100000000
40878
- if (stats.gid < 0) stats.gid += 0x100000000
40877
+ if (stats) {
40878
+ if (stats.uid < 0) stats.uid += 0x100000000
40879
+ if (stats.gid < 0) stats.gid += 0x100000000
40880
+ }
40879
40881
  return stats;
40880
40882
  }
40881
40883
  }
@@ -55913,7 +55915,7 @@ exports.parse = function (s) {
55913
55915
 
55914
55916
  let _fs
55915
55917
  try {
55916
- _fs = __webpack_require__(62204)
55918
+ _fs = __webpack_require__(19677)
55917
55919
  } catch (_) {
55918
55920
  _fs = __webpack_require__(57147)
55919
55921
  }
@@ -64294,8 +64296,8 @@ function pauseStreams (streams, options) {
64294
64296
 
64295
64297
  const util = __webpack_require__(73837);
64296
64298
  const braces = __webpack_require__(88922);
64297
- const picomatch = __webpack_require__(64823);
64298
- const utils = __webpack_require__(99756);
64299
+ const picomatch = __webpack_require__(95930);
64300
+ const utils = __webpack_require__(44081);
64299
64301
  const isEmptyString = val => val === '' || val === './';
64300
64302
 
64301
64303
  /**
@@ -68899,18 +68901,18 @@ exports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink');
68899
68901
 
68900
68902
  /***/ }),
68901
68903
 
68902
- /***/ 64823:
68904
+ /***/ 95930:
68903
68905
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
68904
68906
 
68905
68907
  "use strict";
68906
68908
 
68907
68909
 
68908
- module.exports = __webpack_require__(35631);
68910
+ module.exports = __webpack_require__(25081);
68909
68911
 
68910
68912
 
68911
68913
  /***/ }),
68912
68914
 
68913
- /***/ 21259:
68915
+ /***/ 6432:
68914
68916
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
68915
68917
 
68916
68918
  "use strict";
@@ -69097,14 +69099,14 @@ module.exports = {
69097
69099
 
69098
69100
  /***/ }),
69099
69101
 
69100
- /***/ 88301:
69102
+ /***/ 53082:
69101
69103
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
69102
69104
 
69103
69105
  "use strict";
69104
69106
 
69105
69107
 
69106
- const constants = __webpack_require__(21259);
69107
- const utils = __webpack_require__(99756);
69108
+ const constants = __webpack_require__(6432);
69109
+ const utils = __webpack_require__(44081);
69108
69110
 
69109
69111
  /**
69110
69112
  * Constants
@@ -69353,7 +69355,14 @@ const parse = (input, options) => {
69353
69355
  }
69354
69356
 
69355
69357
  if (token.inner.includes('*') && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
69356
- output = token.close = `)${rest})${extglobStar})`;
69358
+ // Any non-magical string (`.ts`) or even nested expression (`.{ts,tsx}`) can follow after the closing parenthesis.
69359
+ // In this case, we need to parse the string and use it in the output of the original pattern.
69360
+ // Suitable patterns: `/!(*.d).ts`, `/!(*.d).{ts,tsx}`, `**/!(*-dbg).@(js)`.
69361
+ //
69362
+ // Disabling the `fastpaths` option due to a problem with parsing strings as `.ts` in the pattern like `**/!(*.d).ts`.
69363
+ const expression = parse(rest, { ...options, fastpaths: false }).output;
69364
+
69365
+ output = token.close = `)${expression})${extglobStar})`;
69357
69366
  }
69358
69367
 
69359
69368
  if (token.prev.type === 'bos') {
@@ -70189,17 +70198,17 @@ module.exports = parse;
70189
70198
 
70190
70199
  /***/ }),
70191
70200
 
70192
- /***/ 35631:
70201
+ /***/ 25081:
70193
70202
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
70194
70203
 
70195
70204
  "use strict";
70196
70205
 
70197
70206
 
70198
70207
  const path = __webpack_require__(71017);
70199
- const scan = __webpack_require__(95321);
70200
- const parse = __webpack_require__(88301);
70201
- const utils = __webpack_require__(99756);
70202
- const constants = __webpack_require__(21259);
70208
+ const scan = __webpack_require__(6678);
70209
+ const parse = __webpack_require__(53082);
70210
+ const utils = __webpack_require__(44081);
70211
+ const constants = __webpack_require__(6432);
70203
70212
  const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
70204
70213
 
70205
70214
  /**
@@ -70539,13 +70548,13 @@ module.exports = picomatch;
70539
70548
 
70540
70549
  /***/ }),
70541
70550
 
70542
- /***/ 95321:
70551
+ /***/ 6678:
70543
70552
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
70544
70553
 
70545
70554
  "use strict";
70546
70555
 
70547
70556
 
70548
- const utils = __webpack_require__(99756);
70557
+ const utils = __webpack_require__(44081);
70549
70558
  const {
70550
70559
  CHAR_ASTERISK, /* * */
70551
70560
  CHAR_AT, /* @ */
@@ -70562,7 +70571,7 @@ const {
70562
70571
  CHAR_RIGHT_CURLY_BRACE, /* } */
70563
70572
  CHAR_RIGHT_PARENTHESES, /* ) */
70564
70573
  CHAR_RIGHT_SQUARE_BRACKET /* ] */
70565
- } = __webpack_require__(21259);
70574
+ } = __webpack_require__(6432);
70566
70575
 
70567
70576
  const isPathSeparator = code => {
70568
70577
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
@@ -70938,7 +70947,7 @@ module.exports = scan;
70938
70947
 
70939
70948
  /***/ }),
70940
70949
 
70941
- /***/ 99756:
70950
+ /***/ 44081:
70942
70951
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
70943
70952
 
70944
70953
  "use strict";
@@ -70951,7 +70960,7 @@ const {
70951
70960
  REGEX_REMOVE_BACKSLASH,
70952
70961
  REGEX_SPECIAL_CHARS,
70953
70962
  REGEX_SPECIAL_CHARS_GLOBAL
70954
- } = __webpack_require__(21259);
70963
+ } = __webpack_require__(6432);
70955
70964
 
70956
70965
  exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
70957
70966
  exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
@@ -71719,7 +71728,7 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
71719
71728
 
71720
71729
  module.exports = PassThrough;
71721
71730
 
71722
- var Transform = __webpack_require__(65977);
71731
+ var Transform = __webpack_require__(31563);
71723
71732
 
71724
71733
  __webpack_require__(57337)(PassThrough, Transform);
71725
71734
 
@@ -72865,7 +72874,7 @@ function indexOf(xs, x) {
72865
72874
 
72866
72875
  /***/ }),
72867
72876
 
72868
- /***/ 65977:
72877
+ /***/ 31563:
72869
72878
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
72870
72879
 
72871
72880
  "use strict";
@@ -74662,7 +74671,7 @@ if (process.env.READABLE_STREAM === 'disable' && Stream) {
74662
74671
  exports.Readable = exports;
74663
74672
  exports.Writable = __webpack_require__(72437);
74664
74673
  exports.Duplex = __webpack_require__(91008);
74665
- exports.Transform = __webpack_require__(65977);
74674
+ exports.Transform = __webpack_require__(31563);
74666
74675
  exports.PassThrough = __webpack_require__(61417);
74667
74676
  exports.finished = __webpack_require__(97648);
74668
74677
  exports.pipeline = __webpack_require__(20721);
@@ -99769,10 +99778,18 @@ class I18n {
99769
99778
  }
99770
99779
 
99771
99780
  getMessage(lang, key, vars, fallbackText) {
99772
- const model = this.languageMap[lang];
99781
+ // 判断语言当前语料库是否存在,不存在使用 en 作为默认语言
99782
+ const languages = Object.keys(this.languageMap);
99783
+ const resultLang = languages.find(l => l === lang);
99784
+
99785
+ if (!resultLang && languages.length === 0) {
99786
+ return fallbackText || key;
99787
+ }
99788
+
99789
+ const model = this.languageMap[resultLang || 'en' || 0];
99773
99790
 
99774
99791
  if (!model) {
99775
- throw new Error(`current ${lang} language is not exisit`);
99792
+ return fallbackText || key;
99776
99793
  }
99777
99794
 
99778
99795
  const message = (0, _get2.default)(model, key);
@@ -101946,7 +101963,7 @@ exports.MWANewActionGenerators = MWANewActionGenerators;
101946
101963
 
101947
101964
  /***/ }),
101948
101965
 
101949
- /***/ 51832:
101966
+ /***/ 86834:
101950
101967
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
101951
101968
 
101952
101969
  "use strict";
@@ -101996,8 +102013,8 @@ var merge_default = /*#__PURE__*/__webpack_require__.n(merge);
101996
102013
  // EXTERNAL MODULE: ../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js
101997
102014
  var isFunction = __webpack_require__(4311);
101998
102015
  var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction);
101999
- // EXTERNAL MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.5/node_modules/@babel/runtime/regenerator/index.js
102000
- var regenerator = __webpack_require__(3337);
102016
+ // EXTERNAL MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/regenerator/index.js
102017
+ var regenerator = __webpack_require__(1036);
102001
102018
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
102002
102019
  // EXTERNAL MODULE: external "path"
102003
102020
  var external_path_ = __webpack_require__(71017);
@@ -102043,10 +102060,18 @@ class I18n {
102043
102060
  }
102044
102061
 
102045
102062
  getMessage(lang, key, vars, fallbackText) {
102046
- const model = this.languageMap[lang];
102063
+ // 判断语言当前语料库是否存在,不存在使用 en 作为默认语言
102064
+ const languages = Object.keys(this.languageMap);
102065
+ const resultLang = languages.find(l => l === lang);
102066
+
102067
+ if (!resultLang && languages.length === 0) {
102068
+ return fallbackText || key;
102069
+ }
102070
+
102071
+ const model = this.languageMap[resultLang || 'en' || 0];
102047
102072
 
102048
102073
  if (!model) {
102049
- throw new Error(`current ${lang} language is not exisit`);
102074
+ return fallbackText || key;
102050
102075
  }
102051
102076
 
102052
102077
  const message = get_default()(model, key);
@@ -108003,7 +108028,7 @@ class AppAPI {
108003
108028
  }
108004
108029
 
108005
108030
  }
108006
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.1/node_modules/@modern-js/generator-common/dist/js/modern/locale/zh.js
108031
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.2/node_modules/@modern-js/generator-common/dist/js/modern/locale/zh.js
108007
108032
  const modern_locale_zh_ZH_LOCALE = {
108008
108033
  solution: {
108009
108034
  self: '请选择你想创建的工程类型',
@@ -108129,7 +108154,7 @@ const modern_locale_zh_ZH_LOCALE = {
108129
108154
  }
108130
108155
  }
108131
108156
  };
108132
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.1/node_modules/@modern-js/generator-common/dist/js/modern/locale/en.js
108157
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.2/node_modules/@modern-js/generator-common/dist/js/modern/locale/en.js
108133
108158
  const modern_locale_en_EN_LOCALE = {
108134
108159
  solution: {
108135
108160
  self: 'Please select the solution you want to create',
@@ -108255,7 +108280,7 @@ const modern_locale_en_EN_LOCALE = {
108255
108280
  }
108256
108281
  }
108257
108282
  };
108258
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.1/node_modules/@modern-js/generator-common/dist/js/modern/locale/index.js
108283
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.2/node_modules/@modern-js/generator-common/dist/js/modern/locale/index.js
108259
108284
 
108260
108285
 
108261
108286
 
@@ -108265,7 +108290,7 @@ const dist_js_modern_locale_localeKeys = dist_js_modern_locale_i18n.init('zh', {
108265
108290
  en: modern_locale_en_EN_LOCALE
108266
108291
  });
108267
108292
 
108268
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.1/node_modules/@modern-js/generator-common/dist/js/modern/newAction/common/index.js
108293
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.2/node_modules/@modern-js/generator-common/dist/js/modern/newAction/common/index.js
108269
108294
 
108270
108295
  let common_ActionType;
108271
108296
 
@@ -108342,7 +108367,7 @@ const common_ActionTypeTextMap = {
108342
108367
  [common_ActionType.Function]: common_ActionFunctionText,
108343
108368
  [common_ActionType.Refactor]: common_ActionRefactorText
108344
108369
  };
108345
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.1/node_modules/@modern-js/generator-common/dist/js/modern/newAction/mwa/index.js
108370
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.2/node_modules/@modern-js/generator-common/dist/js/modern/newAction/mwa/index.js
108346
108371
 
108347
108372
 
108348
108373
  const mwa_MWAActionTypes = [common_ActionType.Element, common_ActionType.Function // ActionType.Refactor,
@@ -110176,7 +110201,7 @@ const MWANewAction = async options => {
110176
110201
  pwd: cwd
110177
110202
  });
110178
110203
  };
110179
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.1/node_modules/@modern-js/generator-common/dist/js/modern/newAction/module/index.js
110204
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-common@1.2.2/node_modules/@modern-js/generator-common/dist/js/modern/newAction/module/index.js
110180
110205
 
110181
110206
 
110182
110207
  const module_ModuleActionTypes = [common_ActionType.Function];
@@ -110948,7 +110973,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
110948
110973
  _context2.next = 2;
110949
110974
  return Promise.all(plugins.map( /*#__PURE__*/function () {
110950
110975
  var _ref = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
110951
- var pkgJSON, _pkgJSON, meta;
110976
+ var pkgJSON, version, _pkgJSON, meta;
110952
110977
 
110953
110978
  return regenerator_default().wrap(function _callee$(_context) {
110954
110979
  while (1) {
@@ -110964,7 +110989,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
110964
110989
 
110965
110990
  case 3:
110966
110991
  pkgJSON = _context.sent;
110967
- _context.next = 9;
110992
+ _context.next = 11;
110968
110993
  break;
110969
110994
 
110970
110995
  case 6:
@@ -110977,12 +111002,14 @@ var GeneratorPlugin = /*#__PURE__*/function () {
110977
111002
 
110978
111003
  case 8:
110979
111004
  pkgJSON = _context.sent;
111005
+ version = pkgJSON['dist-tags'] ? pkgJSON['dist-tags'][distTag || 'latest'] : '';
111006
+ pkgJSON = version ? pkgJSON.versions[version] : pkgJSON;
110980
111007
 
110981
- case 9:
111008
+ case 11:
110982
111009
  _pkgJSON = pkgJSON, meta = _pkgJSON.meta;
110983
111010
 
110984
111011
  if (meta) {
110985
- _context.next = 12;
111012
+ _context.next = 14;
110986
111013
  break;
110987
111014
  }
110988
111015
 
@@ -110990,7 +111017,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
110990
111017
  plugin: plugin
110991
111018
  }));
110992
111019
 
110993
- case 12:
111020
+ case 14:
110994
111021
  if (meta.extend) {
110995
111022
  _this.extendPlugin[meta.extend] = [].concat(_toConsumableArray(_this.extendPlugin[meta.extend] || []), [plugin]);
110996
111023
  } else if (meta.type && meta.key) {
@@ -110999,7 +111026,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
110999
111026
  })]);
111000
111027
  }
111001
111028
 
111002
- case 13:
111029
+ case 15:
111003
111030
  case "end":
111004
111031
  return _context.stop();
111005
111032
  }
@@ -111671,7 +111698,7 @@ var _codesmithApiApp = __webpack_require__(83028);
111671
111698
 
111672
111699
  var _generatorCommon = __webpack_require__(50828);
111673
111700
 
111674
- var _generatorPlugin = __webpack_require__(51832);
111701
+ var _generatorPlugin = __webpack_require__(86834);
111675
111702
 
111676
111703
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
111677
111704
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.4",
14
+ "version": "1.2.5-rc.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -26,20 +26,20 @@
26
26
  "@modern-js/codesmith": "^1.0.7",
27
27
  "@modern-js/codesmith-api-app": "^1.0.7",
28
28
  "@modern-js/codesmith-tools": "^1.0.8",
29
- "@modern-js/generator-common": "^1.2.2",
30
- "@modern-js/generator-utils": "^1.1.1",
31
- "@modern-js/module-generator": "^1.2.2",
32
- "@modern-js/monorepo-generator": "^1.2.2",
33
- "@modern-js/mwa-generator": "^1.2.2",
34
- "@modern-js/base-generator": "^1.2.2",
35
- "@modern-js/generator-plugin": "^1.1.2",
29
+ "@modern-js/generator-common": "^1.2.3-rc.0",
30
+ "@modern-js/generator-utils": "^1.1.2-rc.0",
31
+ "@modern-js/module-generator": "^1.2.3-rc.0",
32
+ "@modern-js/monorepo-generator": "^1.2.3-rc.0",
33
+ "@modern-js/mwa-generator": "^1.2.3-rc.0",
34
+ "@modern-js/base-generator": "^1.2.3-rc.0",
35
+ "@modern-js/generator-plugin": "^1.1.3-rc.0",
36
36
  "@types/jest": "^26",
37
37
  "@types/lodash": "^4.14.168",
38
38
  "@types/node": "^14",
39
39
  "lodash": "^4.17.21",
40
40
  "typescript": "^4",
41
- "@modern-js/module-tools": "^1.1.3",
42
- "@modern-js/plugin-testing": "^1.2.0"
41
+ "@modern-js/module-tools": "^1.1.4",
42
+ "@modern-js/plugin-testing": "^1.2.2"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "modernConfig": {
@@ -57,5 +57,6 @@
57
57
  "build": "modern build",
58
58
  "build:csmith": "csmith-tools build",
59
59
  "test": "modern test --passWithNoTests"
60
- }
60
+ },
61
+ "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
61
62
  }