@modern-js/repo-generator 0.0.0-canary-2021118101453 → 0.0.0-canary-2021111484056

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 +148 -96
  2. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 91797:
4
+ /***/ 3337:
5
5
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6
6
 
7
7
  module.exports = __webpack_require__(75339);
@@ -8670,8 +8670,8 @@ var buildFullPath = __webpack_require__(95889);
8670
8670
  var buildURL = __webpack_require__(52737);
8671
8671
  var http = __webpack_require__(13685);
8672
8672
  var https = __webpack_require__(95687);
8673
- var httpFollow = (__webpack_require__(30920).http);
8674
- var httpsFollow = (__webpack_require__(30920).https);
8673
+ var httpFollow = (__webpack_require__(22117).http);
8674
+ var httpsFollow = (__webpack_require__(22117).https);
8675
8675
  var url = __webpack_require__(57310);
8676
8676
  var zlib = __webpack_require__(59796);
8677
8677
  var pkg = __webpack_require__(31025);
@@ -31509,7 +31509,7 @@ module.exports = fill;
31509
31509
 
31510
31510
  /***/ }),
31511
31511
 
31512
- /***/ 60832:
31512
+ /***/ 42846:
31513
31513
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
31514
31514
 
31515
31515
  var debug;
@@ -31531,7 +31531,7 @@ module.exports = function () {
31531
31531
 
31532
31532
  /***/ }),
31533
31533
 
31534
- /***/ 30920:
31534
+ /***/ 22117:
31535
31535
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
31536
31536
 
31537
31537
  var url = __webpack_require__(57310);
@@ -31540,7 +31540,7 @@ var http = __webpack_require__(13685);
31540
31540
  var https = __webpack_require__(95687);
31541
31541
  var Writable = (__webpack_require__(12781).Writable);
31542
31542
  var assert = __webpack_require__(39491);
31543
- var debug = __webpack_require__(60832);
31543
+ var debug = __webpack_require__(42846);
31544
31544
 
31545
31545
  // Create handlers that pass events from native requests
31546
31546
  var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
@@ -32061,11 +32061,12 @@ function removeMatchingHeaders(regex, headers) {
32061
32061
  var lastValue;
32062
32062
  for (var header in headers) {
32063
32063
  if (regex.test(header)) {
32064
- lastValue = headers[header].toString().trim();
32064
+ lastValue = headers[header];
32065
32065
  delete headers[header];
32066
32066
  }
32067
32067
  }
32068
- return lastValue;
32068
+ return (lastValue === null || typeof lastValue === "undefined") ?
32069
+ undefined : String(lastValue).trim();
32069
32070
  }
32070
32071
 
32071
32072
  function createErrorType(code, defaultMessage) {
@@ -34111,7 +34112,7 @@ module.exports = {
34111
34112
 
34112
34113
  "use strict";
34113
34114
 
34114
- const MiniPass = __webpack_require__(39357)
34115
+ const MiniPass = __webpack_require__(81675)
34115
34116
  const EE = (__webpack_require__(82361).EventEmitter)
34116
34117
  const fs = __webpack_require__(57147)
34117
34118
 
@@ -66063,7 +66064,7 @@ function isNumber (x) {
66063
66064
 
66064
66065
  /***/ }),
66065
66066
 
66066
- /***/ 39357:
66067
+ /***/ 81675:
66067
66068
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
66068
66069
 
66069
66070
  "use strict";
@@ -66234,7 +66235,12 @@ module.exports = class Minipass extends Stream {
66234
66235
  // because we're mid-write, so that'd be bad.
66235
66236
  if (this[BUFFERLENGTH] !== 0)
66236
66237
  this[FLUSH](true)
66237
- this.emit('data', chunk)
66238
+
66239
+ // if we are still flowing after flushing the buffer we can emit the
66240
+ // chunk otherwise we have to buffer it.
66241
+ this.flowing
66242
+ ? this.emit('data', chunk)
66243
+ : this[BUFFERPUSH](chunk)
66238
66244
  } else
66239
66245
  this[BUFFERPUSH](chunk)
66240
66246
 
@@ -66759,7 +66765,7 @@ const Buffer = (__webpack_require__(14300).Buffer)
66759
66765
  const realZlib = __webpack_require__(59796)
66760
66766
 
66761
66767
  const constants = exports.constants = __webpack_require__(14473)
66762
- const Minipass = __webpack_require__(39357)
66768
+ const Minipass = __webpack_require__(81675)
66763
66769
 
66764
66770
  const OriginalBufferConcat = Buffer.concat
66765
66771
 
@@ -94458,7 +94464,7 @@ class PackJob {
94458
94464
  }
94459
94465
  }
94460
94466
 
94461
- const MiniPass = __webpack_require__(39357)
94467
+ const MiniPass = __webpack_require__(81675)
94462
94468
  const zlib = __webpack_require__(95289)
94463
94469
  const ReadEntry = __webpack_require__(66523)
94464
94470
  const WriteEntry = __webpack_require__(56004)
@@ -95635,7 +95641,7 @@ module.exports = Pax
95635
95641
 
95636
95642
  "use strict";
95637
95643
 
95638
- const MiniPass = __webpack_require__(39357)
95644
+ const MiniPass = __webpack_require__(81675)
95639
95645
  const normPath = __webpack_require__(41935)
95640
95646
 
95641
95647
  const SLURP = Symbol('slurp')
@@ -97066,7 +97072,7 @@ module.exports = {
97066
97072
 
97067
97073
  "use strict";
97068
97074
 
97069
- const MiniPass = __webpack_require__(39357)
97075
+ const MiniPass = __webpack_require__(81675)
97070
97076
  const Pax = __webpack_require__(15674)
97071
97077
  const Header = __webpack_require__(13391)
97072
97078
  const fs = __webpack_require__(57147)
@@ -102336,9 +102342,9 @@ var _common = __webpack_require__(25523);
102336
102342
 
102337
102343
  var _css = __webpack_require__(99961);
102338
102344
 
102339
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
102345
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
102340
102346
 
102341
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
102347
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
102342
102348
 
102343
102349
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
102344
102350
 
@@ -102508,9 +102514,9 @@ var _boolean = __webpack_require__(34069);
102508
102514
 
102509
102515
  var _css = __webpack_require__(99961);
102510
102516
 
102511
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
102517
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
102512
102518
 
102513
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
102519
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
102514
102520
 
102515
102521
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
102516
102522
 
@@ -103323,7 +103329,7 @@ exports.MWANewActionGenerators = MWANewActionGenerators;
103323
103329
 
103324
103330
  /***/ }),
103325
103331
 
103326
- /***/ 40156:
103332
+ /***/ 39222:
103327
103333
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
103328
103334
 
103329
103335
  "use strict";
@@ -103336,7 +103342,14 @@ __webpack_require__.d(__webpack_exports__, {
103336
103342
  "GeneratorPlugin": () => (/* binding */ GeneratorPlugin),
103337
103343
  "InputType": () => (/* reexport */ InputType),
103338
103344
  "LifeCycle": () => (/* reexport */ LifeCycle),
103339
- "PluginContext": () => (/* reexport */ PluginContext)
103345
+ "PluginContext": () => (/* reexport */ PluginContext),
103346
+ "PluginFileAPI": () => (/* reexport */ PluginFileAPI),
103347
+ "PluginGitAPI": () => (/* reexport */ PluginGitAPI),
103348
+ "PluginHandlebarsAPI": () => (/* reexport */ PluginHandlebarsAPI),
103349
+ "PluginInputContext": () => (/* reexport */ PluginInputContext),
103350
+ "PluginNewAPI": () => (/* reexport */ PluginNewAPI),
103351
+ "PluginNpmAPI": () => (/* reexport */ PluginNpmAPI),
103352
+ "installPlugins": () => (/* reexport */ utils_installPlugins)
103340
103353
  });
103341
103354
 
103342
103355
  // NAMESPACE OBJECT: ../../../../node_modules/.pnpm/@modern-js+easy-form-cli@1.0.6/node_modules/@modern-js/easy-form-cli/dist/js/modern/cliReader/handlers/index.js
@@ -103359,11 +103372,14 @@ __webpack_require__.d(modern_handlers_namespaceObject, {
103359
103372
  "listNode": () => (ListNode_listNode)
103360
103373
  });
103361
103374
 
103375
+ // EXTERNAL MODULE: ../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
103376
+ var merge = __webpack_require__(13904);
103377
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge);
103362
103378
  // EXTERNAL MODULE: ../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js
103363
103379
  var isFunction = __webpack_require__(4311);
103364
103380
  var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction);
103365
- // EXTERNAL MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/regenerator/index.js
103366
- var regenerator = __webpack_require__(91797);
103381
+ // EXTERNAL MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.5/node_modules/@babel/runtime/regenerator/index.js
103382
+ var regenerator = __webpack_require__(3337);
103367
103383
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
103368
103384
  // EXTERNAL MODULE: external "path"
103369
103385
  var external_path_ = __webpack_require__(71017);
@@ -104029,9 +104045,9 @@ const EnableSassSchema = {
104029
104045
  items: BooleanSchemas
104030
104046
  };
104031
104047
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/module/project.js
104032
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
104048
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
104033
104049
 
104034
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
104050
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
104035
104051
 
104036
104052
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
104037
104053
 
@@ -104080,9 +104096,9 @@ const MonorepoDefaultConfig = {
104080
104096
  packageManager: PackageManager.Pnpm
104081
104097
  };
104082
104098
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/mwa/common.js
104083
- function common_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
104099
+ function common_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
104084
104100
 
104085
- function common_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { common_ownKeys(Object(source), true).forEach(function (key) { common_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { common_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
104101
+ function common_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? common_ownKeys(Object(source), !0).forEach(function (key) { common_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : common_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
104086
104102
 
104087
104103
  function common_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
104088
104104
 
@@ -104363,9 +104379,9 @@ class FsMaterial {
104363
104379
  var handlebars_lib = __webpack_require__(95309);
104364
104380
  var handlebars_lib_default = /*#__PURE__*/__webpack_require__.n(handlebars_lib);
104365
104381
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/handlebars.js
104366
- function handlebars_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
104382
+ function handlebars_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
104367
104383
 
104368
- function handlebars_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { handlebars_ownKeys(Object(source), true).forEach(function (key) { handlebars_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { handlebars_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
104384
+ function handlebars_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? handlebars_ownKeys(Object(source), !0).forEach(function (key) { handlebars_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : handlebars_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
104369
104385
 
104370
104386
  function handlebars_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
104371
104387
 
@@ -104373,7 +104389,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
104373
104389
 
104374
104390
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
104375
104391
 
104376
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
104392
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
104377
104393
 
104378
104394
 
104379
104395
  var PluginHandlebarsAPI = /*#__PURE__*/function () {
@@ -104425,9 +104441,9 @@ var PluginHandlebarsAPI = /*#__PURE__*/function () {
104425
104441
  var globby = __webpack_require__(45561);
104426
104442
  var globby_default = /*#__PURE__*/__webpack_require__.n(globby);
104427
104443
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/utils/file.js
104428
- function file_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
104444
+ function file_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
104429
104445
 
104430
- function file_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { file_ownKeys(Object(source), true).forEach(function (key) { file_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { file_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
104446
+ function file_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? file_ownKeys(Object(source), !0).forEach(function (key) { file_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : file_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
104431
104447
 
104432
104448
  function file_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
104433
104449
 
@@ -104684,9 +104700,9 @@ function _addManyFiles() {
104684
104700
  return _addManyFiles.apply(this, arguments);
104685
104701
  }
104686
104702
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/file.js
104687
- function context_file_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
104703
+ function context_file_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
104688
104704
 
104689
- function context_file_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { context_file_ownKeys(Object(source), true).forEach(function (key) { context_file_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { context_file_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
104705
+ function context_file_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? context_file_ownKeys(Object(source), !0).forEach(function (key) { context_file_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : context_file_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
104690
104706
 
104691
104707
  function context_file_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
104692
104708
 
@@ -104700,7 +104716,7 @@ function file_classCallCheck(instance, Constructor) { if (!(instance instanceof
104700
104716
 
104701
104717
  function file_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
104702
104718
 
104703
- function file_createClass(Constructor, protoProps, staticProps) { if (protoProps) file_defineProperties(Constructor.prototype, protoProps); if (staticProps) file_defineProperties(Constructor, staticProps); return Constructor; }
104719
+ function file_createClass(Constructor, protoProps, staticProps) { if (protoProps) file_defineProperties(Constructor.prototype, protoProps); if (staticProps) file_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
104704
104720
 
104705
104721
 
104706
104722
 
@@ -104742,6 +104758,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
104742
104758
  addFile: this.addFile.bind(this),
104743
104759
  addManyFiles: this.addManyFiles.bind(this),
104744
104760
  updateJSONFile: this.updateJSONFile.bind(this),
104761
+ updateModernConfig: this.updateModernConfig.bind(this),
104745
104762
  updateTextRawFile: this.updateTextRawFile.bind(this),
104746
104763
  rmFile: this.rmFile.bind(this),
104747
104764
  rmDir: this.rmDir.bind(this),
@@ -105179,7 +105196,7 @@ function git_classCallCheck(instance, Constructor) { if (!(instance instanceof C
105179
105196
 
105180
105197
  function git_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
105181
105198
 
105182
- function git_createClass(Constructor, protoProps, staticProps) { if (protoProps) git_defineProperties(Constructor.prototype, protoProps); if (staticProps) git_defineProperties(Constructor, staticProps); return Constructor; }
105199
+ function git_createClass(Constructor, protoProps, staticProps) { if (protoProps) git_defineProperties(Constructor.prototype, protoProps); if (staticProps) git_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
105183
105200
 
105184
105201
 
105185
105202
  var PluginGitAPI = /*#__PURE__*/function () {
@@ -105302,9 +105319,9 @@ var PluginGitAPI = /*#__PURE__*/function () {
105302
105319
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/input.js
105303
105320
 
105304
105321
 
105305
- function input_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
105322
+ function input_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
105306
105323
 
105307
- function input_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { input_ownKeys(Object(source), true).forEach(function (key) { input_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { input_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
105324
+ function input_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? input_ownKeys(Object(source), !0).forEach(function (key) { input_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : input_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
105308
105325
 
105309
105326
  function input_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
105310
105327
 
@@ -105312,7 +105329,7 @@ function input_classCallCheck(instance, Constructor) { if (!(instance instanceof
105312
105329
 
105313
105330
  function input_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
105314
105331
 
105315
- function input_createClass(Constructor, protoProps, staticProps) { if (protoProps) input_defineProperties(Constructor.prototype, protoProps); if (staticProps) input_defineProperties(Constructor, staticProps); return Constructor; }
105332
+ function input_createClass(Constructor, protoProps, staticProps) { if (protoProps) input_defineProperties(Constructor.prototype, protoProps); if (staticProps) input_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
105316
105333
 
105317
105334
  var InputType;
105318
105335
 
@@ -105329,6 +105346,7 @@ var PluginInputContext = /*#__PURE__*/function () {
105329
105346
  function PluginInputContext(inputs) {
105330
105347
  input_classCallCheck(this, PluginInputContext);
105331
105348
 
105349
+ this.inputValue = {};
105332
105350
  this.inputs = [];
105333
105351
  this.extendInputMap = {};
105334
105352
  this.extendOptionMap = {};
@@ -105343,7 +105361,8 @@ var PluginInputContext = /*#__PURE__*/function () {
105343
105361
  addInputAfter: this.addInputAfter.bind(this),
105344
105362
  setInput: this.setInput.bind(this),
105345
105363
  addOptionBefore: this.addOptionBefore.bind(this),
105346
- addOptionAfter: this.addOptionAfter.bind(this)
105364
+ addOptionAfter: this.addOptionAfter.bind(this),
105365
+ setInputValue: this.setInputValue.bind(this)
105347
105366
  };
105348
105367
  }
105349
105368
  }, {
@@ -105705,6 +105724,11 @@ var PluginInputContext = /*#__PURE__*/function () {
105705
105724
  this.initExtendOptionMap(key, optionKey);
105706
105725
  this.extendOptionMap[key][optionKey].after.push(option);
105707
105726
  }
105727
+ }, {
105728
+ key: "setInputValue",
105729
+ value: function setInputValue(value) {
105730
+ this.inputValue = value;
105731
+ }
105708
105732
  }]);
105709
105733
 
105710
105734
  return PluginInputContext;
@@ -105834,7 +105858,7 @@ function npm_classCallCheck(instance, Constructor) { if (!(instance instanceof C
105834
105858
 
105835
105859
  function npm_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
105836
105860
 
105837
- function npm_createClass(Constructor, protoProps, staticProps) { if (protoProps) npm_defineProperties(Constructor.prototype, protoProps); if (staticProps) npm_defineProperties(Constructor, staticProps); return Constructor; }
105861
+ function npm_createClass(Constructor, protoProps, staticProps) { if (protoProps) npm_defineProperties(Constructor.prototype, protoProps); if (staticProps) npm_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
105838
105862
 
105839
105863
 
105840
105864
 
@@ -106130,9 +106154,6 @@ const ModuleNewActionGenerators = {
106130
106154
  [ActionFunction.RuntimeApi]: '@modern-js/dependence-generator'
106131
106155
  }
106132
106156
  };
106133
- // EXTERNAL MODULE: ../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
106134
- var merge = __webpack_require__(13904);
106135
- var merge_default = /*#__PURE__*/__webpack_require__.n(merge);
106136
106157
  // EXTERNAL MODULE: external "events"
106137
106158
  var external_events_ = __webpack_require__(82361);
106138
106159
  // EXTERNAL MODULE: ../../../../node_modules/.pnpm/ora@5.4.1/node_modules/ora/index.js
@@ -109748,7 +109769,7 @@ const mwa_MWANewActionGenerators = {
109748
109769
  [common_ActionRefactor.BFFToApp]: '@modern-js/bff-refactor-generator'
109749
109770
  }
109750
109771
  };
109751
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-utils@1.1.1_typescript@4.5.2/node_modules/@modern-js/generator-utils/dist/js/modern/utils/env.js
109772
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-utils@1.1.1_typescript@4.5.4/node_modules/@modern-js/generator-utils/dist/js/modern/utils/env.js
109752
109773
 
109753
109774
  async function env_canUseNpm() {
109754
109775
  try {
@@ -109780,7 +109801,7 @@ async function env_canUsePnpm() {
109780
109801
  return false;
109781
109802
  }
109782
109803
  }
109783
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-utils@1.1.1_typescript@4.5.2/node_modules/@modern-js/generator-utils/dist/js/modern/utils/strip-ansi.js
109804
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-utils@1.1.1_typescript@4.5.4/node_modules/@modern-js/generator-utils/dist/js/modern/utils/strip-ansi.js
109784
109805
  function ansiRegex({
109785
109806
  onlyFirst = false
109786
109807
  } = {}) {
@@ -109795,7 +109816,7 @@ function stripAnsi(string) {
109795
109816
 
109796
109817
  return string.replace(ansiRegex(), '');
109797
109818
  }
109798
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-utils@1.1.1_typescript@4.5.2/node_modules/@modern-js/generator-utils/dist/js/modern/index.js
109819
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+generator-utils@1.1.1_typescript@4.5.4/node_modules/@modern-js/generator-utils/dist/js/modern/index.js
109799
109820
 
109800
109821
 
109801
109822
 
@@ -111352,7 +111373,7 @@ var dist_lib = JSON5;
111352
111373
 
111353
111374
  /* harmony default export */ const json5_dist = (dist_lib);
111354
111375
 
111355
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.4_typescript@4.5.2/node_modules/@modern-js/new-action/dist/js/modern/utils/index.js
111376
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.5_typescript@4.5.4/node_modules/@modern-js/new-action/dist/js/modern/utils/index.js
111356
111377
 
111357
111378
 
111358
111379
 
@@ -111401,7 +111422,7 @@ function hasEnabledFunction(action, dependencies, devDependencies, peerDependenc
111401
111422
 
111402
111423
  return false;
111403
111424
  }
111404
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.4_typescript@4.5.2/node_modules/@modern-js/new-action/dist/js/modern/mwa.js
111425
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.5_typescript@4.5.4/node_modules/@modern-js/new-action/dist/js/modern/mwa.js
111405
111426
 
111406
111427
 
111407
111428
 
@@ -111557,7 +111578,7 @@ const module_ModuleNewActionGenerators = {
111557
111578
  [common_ActionFunction.RuntimeApi]: '@modern-js/dependence-generator'
111558
111579
  }
111559
111580
  };
111560
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.4_typescript@4.5.2/node_modules/@modern-js/new-action/dist/js/modern/module.js
111581
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.5_typescript@4.5.4/node_modules/@modern-js/new-action/dist/js/modern/module.js
111561
111582
 
111562
111583
 
111563
111584
 
@@ -111770,7 +111791,7 @@ const MonorepoNewActionConfig = {
111770
111791
  isPublic: false
111771
111792
  }
111772
111793
  };
111773
- ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.4_typescript@4.5.2/node_modules/@modern-js/new-action/dist/js/modern/monorepo.js
111794
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@modern-js+new-action@1.1.5_typescript@4.5.4/node_modules/@modern-js/new-action/dist/js/modern/monorepo.js
111774
111795
 
111775
111796
 
111776
111797
 
@@ -111850,9 +111871,9 @@ const MonorepoNewAction = async options => {
111850
111871
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/new.js
111851
111872
 
111852
111873
 
111853
- function new_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
111874
+ function new_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
111854
111875
 
111855
- function new_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { new_ownKeys(Object(source), true).forEach(function (key) { new_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { new_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
111876
+ function new_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? new_ownKeys(Object(source), !0).forEach(function (key) { new_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : new_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
111856
111877
 
111857
111878
  function new_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
111858
111879
 
@@ -111864,7 +111885,7 @@ function new_classCallCheck(instance, Constructor) { if (!(instance instanceof C
111864
111885
 
111865
111886
  function new_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
111866
111887
 
111867
- function new_createClass(Constructor, protoProps, staticProps) { if (protoProps) new_defineProperties(Constructor.prototype, protoProps); if (staticProps) new_defineProperties(Constructor, staticProps); return Constructor; }
111888
+ function new_createClass(Constructor, protoProps, staticProps) { if (protoProps) new_defineProperties(Constructor.prototype, protoProps); if (staticProps) new_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
111868
111889
 
111869
111890
 
111870
111891
 
@@ -112059,9 +112080,9 @@ var PluginNewAPI = /*#__PURE__*/function () {
112059
112080
  return PluginNewAPI;
112060
112081
  }();
112061
112082
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/index.js
112062
- function context_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
112083
+ function context_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
112063
112084
 
112064
- function context_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { context_ownKeys(Object(source), true).forEach(function (key) { context_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { context_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
112085
+ function context_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? context_ownKeys(Object(source), !0).forEach(function (key) { context_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : context_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
112065
112086
 
112066
112087
  function context_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
112067
112088
 
@@ -112069,7 +112090,11 @@ function context_classCallCheck(instance, Constructor) { if (!(instance instance
112069
112090
 
112070
112091
  function context_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
112071
112092
 
112072
- function context_createClass(Constructor, protoProps, staticProps) { if (protoProps) context_defineProperties(Constructor.prototype, protoProps); if (staticProps) context_defineProperties(Constructor, staticProps); return Constructor; }
112093
+ function context_createClass(Constructor, protoProps, staticProps) { if (protoProps) context_defineProperties(Constructor.prototype, protoProps); if (staticProps) context_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
112094
+
112095
+
112096
+
112097
+
112073
112098
 
112074
112099
 
112075
112100
 
@@ -112246,13 +112271,14 @@ function _installPlugins() {
112246
112271
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/index.js
112247
112272
 
112248
112273
 
112274
+
112249
112275
  function treeshaking_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = treeshaking_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
112250
112276
 
112251
112277
 
112252
112278
 
112253
- function treeshaking_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
112279
+ function treeshaking_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
112254
112280
 
112255
- function treeshaking_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { treeshaking_ownKeys(Object(source), true).forEach(function (key) { treeshaking_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { treeshaking_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
112281
+ function treeshaking_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? treeshaking_ownKeys(Object(source), !0).forEach(function (key) { treeshaking_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : treeshaking_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
112256
112282
 
112257
112283
  function treeshaking_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
112258
112284
 
@@ -112276,7 +112302,8 @@ function treeshaking_classCallCheck(instance, Constructor) { if (!(instance inst
112276
112302
 
112277
112303
  function treeshaking_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
112278
112304
 
112279
- function treeshaking_createClass(Constructor, protoProps, staticProps) { if (protoProps) treeshaking_defineProperties(Constructor.prototype, protoProps); if (staticProps) treeshaking_defineProperties(Constructor, staticProps); return Constructor; }
112305
+ function treeshaking_createClass(Constructor, protoProps, staticProps) { if (protoProps) treeshaking_defineProperties(Constructor.prototype, protoProps); if (staticProps) treeshaking_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
112306
+
112280
112307
 
112281
112308
 
112282
112309
 
@@ -112289,11 +112316,11 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112289
112316
  function GeneratorPlugin(logger, event) {
112290
112317
  treeshaking_classCallCheck(this, GeneratorPlugin);
112291
112318
 
112319
+ this.plugins = [];
112292
112320
  this.extendPlugin = {};
112293
112321
  this.customPlugin = {};
112294
112322
  this.event = void 0;
112295
112323
  this.logger = void 0;
112296
- this.plugins = [];
112297
112324
  this.event = event;
112298
112325
  this.logger = logger;
112299
112326
 
@@ -112342,6 +112369,14 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112342
112369
  case 7:
112343
112370
  _pkgJSON = pkgJSON, meta = _pkgJSON.meta;
112344
112371
 
112372
+ if (meta) {
112373
+ _context.next = 10;
112374
+ break;
112375
+ }
112376
+
112377
+ throw new Error("plugin ".concat(plugin, " should has meta filed in package.json"));
112378
+
112379
+ case 10:
112345
112380
  if (meta.extend) {
112346
112381
  _this.extendPlugin[meta.extend] = [].concat(_toConsumableArray(_this.extendPlugin[meta.extend] || []), [plugin]);
112347
112382
  } else if (meta.type && meta.key) {
@@ -112350,7 +112385,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112350
112385
  })]);
112351
112386
  }
112352
112387
 
112353
- case 9:
112388
+ case 11:
112354
112389
  case "end":
112355
112390
  return _context.stop();
112356
112391
  }
@@ -112402,11 +112437,32 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112402
112437
  items: items
112403
112438
  };
112404
112439
  }
112440
+ }, {
112441
+ key: "getInputValue",
112442
+ value: function getInputValue() {
112443
+ var result = {};
112444
+
112445
+ var _iterator2 = treeshaking_createForOfIteratorHelper(this.plugins),
112446
+ _step2;
112447
+
112448
+ try {
112449
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
112450
+ var info = _step2.value;
112451
+ result = merge_default()(result, info.context.inputContext.inputValue);
112452
+ }
112453
+ } catch (err) {
112454
+ _iterator2.e(err);
112455
+ } finally {
112456
+ _iterator2.f();
112457
+ }
112458
+
112459
+ return result;
112460
+ }
112405
112461
  }, {
112406
112462
  key: "installPlugins",
112407
112463
  value: function () {
112408
112464
  var _installPlugins2 = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, inputData) {
112409
- var plugins, plugin, _iterator2, _step2, info;
112465
+ var plugins, plugin, _iterator3, _step3, info;
112410
112466
 
112411
112467
  return regenerator_default().wrap(function _callee3$(_context3) {
112412
112468
  while (1) {
@@ -112433,18 +112489,18 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112433
112489
 
112434
112490
  case 5:
112435
112491
  this.plugins = _context3.sent;
112436
- _iterator2 = treeshaking_createForOfIteratorHelper(this.plugins);
112492
+ _iterator3 = treeshaking_createForOfIteratorHelper(this.plugins);
112437
112493
 
112438
112494
  try {
112439
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
112440
- info = _step2.value;
112495
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
112496
+ info = _step3.value;
112441
112497
  info.context = new PluginContext(SolutionSchemas[solution]);
112442
112498
  info.module(info.context.context);
112443
112499
  }
112444
112500
  } catch (err) {
112445
- _iterator2.e(err);
112501
+ _iterator3.e(err);
112446
112502
  } finally {
112447
- _iterator2.f();
112503
+ _iterator3.f();
112448
112504
  }
112449
112505
 
112450
112506
  case 8:
@@ -112466,14 +112522,14 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112466
112522
  value: function getGitMessage() {
112467
112523
  var result = '';
112468
112524
 
112469
- var _iterator3 = treeshaking_createForOfIteratorHelper(this.plugins),
112470
- _step3;
112525
+ var _iterator4 = treeshaking_createForOfIteratorHelper(this.plugins),
112526
+ _step4;
112471
112527
 
112472
112528
  try {
112473
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
112529
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
112474
112530
  var _info$context;
112475
112531
 
112476
- var info = _step3.value;
112532
+ var info = _step4.value;
112477
112533
 
112478
112534
  if ((_info$context = info.context) !== null && _info$context !== void 0 && _info$context.gitAPI.gitMessage) {
112479
112535
  var _info$context2;
@@ -112482,9 +112538,9 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112482
112538
  }
112483
112539
  }
112484
112540
  } catch (err) {
112485
- _iterator3.e(err);
112541
+ _iterator4.e(err);
112486
112542
  } finally {
112487
- _iterator3.f();
112543
+ _iterator4.f();
112488
112544
  }
112489
112545
 
112490
112546
  return result;
@@ -112494,7 +112550,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112494
112550
  key: "handleForged",
112495
112551
  value: function () {
112496
112552
  var _handleForged = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(solution, basePath, inputData, projectPath, generatorCore) {
112497
- var _iterator4, _step4, _info$context3, _info$context4, info, onForgedFunc, _iterator5, _step5, _info$context5, _info, afterForged;
112553
+ var _iterator5, _step5, _info$context3, _info$context4, info, onForgedFunc, _iterator6, _step6, _info$context5, _info, afterForged;
112498
112554
 
112499
112555
  return regenerator_default().wrap(function _callee4$(_context4) {
112500
112556
  while (1) {
@@ -112512,18 +112568,18 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112512
112568
  return _context4.abrupt("return");
112513
112569
 
112514
112570
  case 3:
112515
- _iterator4 = treeshaking_createForOfIteratorHelper(this.plugins);
112571
+ _iterator5 = treeshaking_createForOfIteratorHelper(this.plugins);
112516
112572
  _context4.prev = 4;
112517
112573
 
112518
- _iterator4.s();
112574
+ _iterator5.s();
112519
112575
 
112520
112576
  case 6:
112521
- if ((_step4 = _iterator4.n()).done) {
112577
+ if ((_step5 = _iterator5.n()).done) {
112522
112578
  _context4.next = 15;
112523
112579
  break;
112524
112580
  }
112525
112581
 
112526
- info = _step4.value;
112582
+ info = _step5.value;
112527
112583
  (_info$context3 = info.context) === null || _info$context3 === void 0 ? void 0 : _info$context3.handlePrepareContext(generatorCore, solution, external_path_default().join(basePath, projectPath), external_path_default().join(info.templatePath, 'templates'), inputData);
112528
112584
  onForgedFunc = (_info$context4 = info.context) === null || _info$context4 === void 0 ? void 0 : _info$context4.lifeCycleFuncMap[LifeCycle.OnForged];
112529
112585
 
@@ -112547,28 +112603,28 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112547
112603
  _context4.prev = 17;
112548
112604
  _context4.t0 = _context4["catch"](4);
112549
112605
 
112550
- _iterator4.e(_context4.t0);
112606
+ _iterator5.e(_context4.t0);
112551
112607
 
112552
112608
  case 20:
112553
112609
  _context4.prev = 20;
112554
112610
 
112555
- _iterator4.f();
112611
+ _iterator5.f();
112556
112612
 
112557
112613
  return _context4.finish(20);
112558
112614
 
112559
112615
  case 23:
112560
- _iterator5 = treeshaking_createForOfIteratorHelper(this.plugins);
112616
+ _iterator6 = treeshaking_createForOfIteratorHelper(this.plugins);
112561
112617
  _context4.prev = 24;
112562
112618
 
112563
- _iterator5.s();
112619
+ _iterator6.s();
112564
112620
 
112565
112621
  case 26:
112566
- if ((_step5 = _iterator5.n()).done) {
112622
+ if ((_step6 = _iterator6.n()).done) {
112567
112623
  _context4.next = 34;
112568
112624
  break;
112569
112625
  }
112570
112626
 
112571
- _info = _step5.value;
112627
+ _info = _step6.value;
112572
112628
  afterForged = (_info$context5 = _info.context) === null || _info$context5 === void 0 ? void 0 : _info$context5.lifeCycleFuncMap[LifeCycle.AfterForged];
112573
112629
 
112574
112630
  if (!(afterForged && isFunction_default()(afterForged))) {
@@ -112591,12 +112647,12 @@ var GeneratorPlugin = /*#__PURE__*/function () {
112591
112647
  _context4.prev = 36;
112592
112648
  _context4.t1 = _context4["catch"](24);
112593
112649
 
112594
- _iterator5.e(_context4.t1);
112650
+ _iterator6.e(_context4.t1);
112595
112651
 
112596
112652
  case 39:
112597
112653
  _context4.prev = 39;
112598
112654
 
112599
- _iterator5.f();
112655
+ _iterator6.f();
112600
112656
 
112601
112657
  return _context4.finish(39);
112602
112658
 
@@ -113005,13 +113061,13 @@ var _codesmithApiApp = __webpack_require__(3437);
113005
113061
 
113006
113062
  var _generatorCommon = __webpack_require__(50828);
113007
113063
 
113008
- var _generatorPlugin = __webpack_require__(40156);
113064
+ var _generatorPlugin = __webpack_require__(39222);
113009
113065
 
113010
113066
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
113011
113067
 
113012
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
113068
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
113013
113069
 
113014
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
113070
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
113015
113071
 
113016
113072
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
113017
113073
 
@@ -113053,12 +113109,8 @@ const getNeedRunPlugin = (context, generatorPlugin) => {
113053
113109
  scenes
113054
113110
  } = context.config;
113055
113111
 
113056
- if (!scenes) {
113057
- return extendPlugin[solution] && extendPlugin[solution].length > 0;
113058
- }
113059
-
113060
- if (scenes === solution) {
113061
- return false;
113112
+ if (!scenes || scenes === solution) {
113113
+ return (extendPlugin === null || extendPlugin === void 0 ? void 0 : extendPlugin[solution]) && extendPlugin[solution].length > 0;
113062
113114
  }
113063
113115
 
113064
113116
  return Boolean((_customPlugin$solutio = customPlugin[solution]) === null || _customPlugin$solutio === void 0 ? void 0 : _customPlugin$solutio.find(plugin => plugin.key === scenes));
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-2021118101453",
14
+ "version": "0.0.0-canary-2021111484056",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -23,13 +23,13 @@
23
23
  "@modern-js/codesmith": "^1.0.0",
24
24
  "@modern-js/codesmith-api-app": "^1.0.0",
25
25
  "@modern-js/codesmith-tools": "^1.0.0",
26
- "@modern-js/generator-common": "^0.0.0-canary-2021118101453",
26
+ "@modern-js/generator-common": "^0.0.0-canary-2021111484056",
27
27
  "@modern-js/generator-utils": "^1.1.1",
28
- "@modern-js/module-generator": "^0.0.0-canary-2021118101453",
29
- "@modern-js/monorepo-generator": "^0.0.0-canary-2021118101453",
30
- "@modern-js/mwa-generator": "^0.0.0-canary-2021118101453",
31
- "@modern-js/base-generator": "^0.0.0-canary-2021118101453",
32
- "@modern-js/generator-plugin": "^0.0.0-canary-2021118101453",
28
+ "@modern-js/module-generator": "^0.0.0-canary-2021111484056",
29
+ "@modern-js/monorepo-generator": "^0.0.0-canary-2021111484056",
30
+ "@modern-js/mwa-generator": "^0.0.0-canary-2021111484056",
31
+ "@modern-js/base-generator": "^0.0.0-canary-2021111484056",
32
+ "@modern-js/generator-plugin": "^0.0.0-canary-2021111484056",
33
33
  "@types/jest": "^26",
34
34
  "@types/lodash": "^4.14.168",
35
35
  "@types/node": "^14",