@modern-js/repo-generator 0.0.0-canary-20220608100857 → 0.0.0-canary-20220610101129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/node/main.js +3 -3
- package/package.json +9 -9
package/dist/js/node/main.js
CHANGED
|
@@ -295008,7 +295008,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
295008
295008
|
exports.applyOptionsChain = void 0;
|
|
295009
295009
|
// eslint-disable-next-line import/no-useless-path-segments
|
|
295010
295010
|
const index_1 = __webpack_require__(10163);
|
|
295011
|
-
|
|
295011
|
+
function applyOptionsChain(defaults, options, utils, mergeFn = Object.assign) {
|
|
295012
295012
|
if (!options) {
|
|
295013
295013
|
return defaults;
|
|
295014
295014
|
}
|
|
@@ -295025,13 +295025,13 @@ const applyOptionsChain = (defaults, options, utils, mergeFn = Object.assign) =>
|
|
|
295025
295025
|
}
|
|
295026
295026
|
}
|
|
295027
295027
|
else if (Array.isArray(options)) {
|
|
295028
|
-
return options.reduce((memo, cur) =>
|
|
295028
|
+
return options.reduce((memo, cur) => applyOptionsChain(memo, cur, utils, mergeFn), defaults);
|
|
295029
295029
|
}
|
|
295030
295030
|
else {
|
|
295031
295031
|
throw new Error(`applyOptionsChain error:\ndefault options is: ${JSON.stringify(defaults)}`);
|
|
295032
295032
|
}
|
|
295033
295033
|
return defaults;
|
|
295034
|
-
}
|
|
295034
|
+
}
|
|
295035
295035
|
exports.applyOptionsChain = applyOptionsChain;
|
|
295036
295036
|
|
|
295037
295037
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-canary-
|
|
14
|
+
"version": "0.0.0-canary-20220610101129",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/js/node/main.js",
|
|
17
17
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"@modern-js/codesmith": "^1.2.2",
|
|
27
27
|
"@modern-js/codesmith-api-app": "^1.2.4",
|
|
28
28
|
"@modern-js/codesmith-tools": "^1.2.1",
|
|
29
|
-
"@modern-js/generator-common": "
|
|
30
|
-
"@modern-js/generator-utils": "
|
|
31
|
-
"@modern-js/module-generator": "
|
|
32
|
-
"@modern-js/monorepo-generator": "
|
|
33
|
-
"@modern-js/mwa-generator": "
|
|
34
|
-
"@modern-js/base-generator": "
|
|
35
|
-
"@modern-js/generator-plugin": "
|
|
36
|
-
"@modern-js/utils": "
|
|
29
|
+
"@modern-js/generator-common": "1.4.12",
|
|
30
|
+
"@modern-js/generator-utils": "1.2.6",
|
|
31
|
+
"@modern-js/module-generator": "2.0.3",
|
|
32
|
+
"@modern-js/monorepo-generator": "2.0.3",
|
|
33
|
+
"@modern-js/mwa-generator": "2.0.2",
|
|
34
|
+
"@modern-js/base-generator": "1.4.4",
|
|
35
|
+
"@modern-js/generator-plugin": "1.2.10",
|
|
36
|
+
"@modern-js/utils": "0.0.0-canary-20220610101129",
|
|
37
37
|
"@types/jest": "^27",
|
|
38
38
|
"@types/node": "^14",
|
|
39
39
|
"typescript": "^4",
|