@modern-js/repo-generator 3.1.38 → 3.1.39
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/index.js +11 -6
- package/package.json +11 -11
package/dist/index.js
CHANGED
@@ -148463,7 +148463,7 @@ async function usePluginNameExport(solution, options) {
|
|
148463
148463
|
// ../../new-action/dist/esm/mwa.js
|
148464
148464
|
var import_lodash10 = __toESM(require_lodash2());
|
148465
148465
|
var MWANewAction = async (options) => {
|
148466
|
-
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", cwd = process.cwd() } = options;
|
148466
|
+
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
|
148467
148467
|
let UserConfig = {};
|
148468
148468
|
try {
|
148469
148469
|
UserConfig = JSON.parse(config);
|
@@ -148521,7 +148521,9 @@ var MWANewAction = async (options) => {
|
|
148521
148521
|
distTag,
|
148522
148522
|
cwd
|
148523
148523
|
});
|
148524
|
-
const finalConfig = (0, import_lodash10.merge)(UserConfig,
|
148524
|
+
const finalConfig = (0, import_lodash10.merge)(UserConfig, {
|
148525
|
+
noNeedInstall: !needInstall
|
148526
|
+
}, ans, {
|
148525
148527
|
locale: UserConfig.locale || locale,
|
148526
148528
|
packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
|
148527
148529
|
distTag
|
@@ -148555,7 +148557,7 @@ var MWANewAction = async (options) => {
|
|
148555
148557
|
// ../../new-action/dist/esm/module.js
|
148556
148558
|
var import_lodash11 = __toESM(require_lodash2());
|
148557
148559
|
var ModuleNewAction = async (options) => {
|
148558
|
-
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", cwd = process.cwd() } = options;
|
148560
|
+
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
|
148559
148561
|
let UserConfig = {};
|
148560
148562
|
try {
|
148561
148563
|
UserConfig = JSON.parse(config);
|
@@ -148616,7 +148618,9 @@ var ModuleNewAction = async (options) => {
|
|
148616
148618
|
distTag,
|
148617
148619
|
cwd
|
148618
148620
|
});
|
148619
|
-
const finalConfig = (0, import_lodash11.merge)(UserConfig,
|
148621
|
+
const finalConfig = (0, import_lodash11.merge)(UserConfig, {
|
148622
|
+
noNeedInstall: !needInstall
|
148623
|
+
}, ans, {
|
148620
148624
|
locale: UserConfig.locale || locale,
|
148621
148625
|
packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
|
148622
148626
|
distTag
|
@@ -148654,7 +148658,7 @@ var import_path15 = __toESM(require("path"));
|
|
148654
148658
|
var import_lodash12 = __toESM(require_lodash2());
|
148655
148659
|
var REPO_GENERATOR = "@modern-js/repo-generator";
|
148656
148660
|
var MonorepoNewAction = async (options) => {
|
148657
|
-
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", plugin = [], cwd = process.cwd() } = options;
|
148661
|
+
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", plugin = [], cwd = process.cwd(), needInstall = true } = options;
|
148658
148662
|
let UserConfig = {};
|
148659
148663
|
try {
|
148660
148664
|
UserConfig = JSON.parse(config);
|
@@ -148687,7 +148691,8 @@ var MonorepoNewAction = async (options) => {
|
|
148687
148691
|
packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
|
148688
148692
|
isMonorepo: true,
|
148689
148693
|
distTag,
|
148690
|
-
plugins
|
148694
|
+
plugins,
|
148695
|
+
noNeedInstall: !needInstall
|
148691
148696
|
});
|
148692
148697
|
let generator = REPO_GENERATOR;
|
148693
148698
|
if (process.env.CODESMITH_ENV === "development") {
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.1.
|
18
|
+
"version": "3.1.39",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"main": "./dist/index.js",
|
21
21
|
"files": [
|
@@ -29,16 +29,16 @@
|
|
29
29
|
"@types/node": "^14",
|
30
30
|
"jest": "^29",
|
31
31
|
"typescript": "^5",
|
32
|
-
"@modern-js/generator-common": "3.1.
|
33
|
-
"@modern-js/module-generator": "3.1.
|
34
|
-
"@modern-js/monorepo-generator": "3.1.
|
35
|
-
"@modern-js/mwa-generator": "3.1.
|
36
|
-
"@modern-js/utils": "2.33.
|
37
|
-
"@modern-js/generator-plugin": "3.1.
|
38
|
-
"@modern-js/
|
39
|
-
"@modern-js/generator
|
40
|
-
"@scripts/jest-config": "2.33.
|
41
|
-
"@scripts/build": "2.33.
|
32
|
+
"@modern-js/generator-common": "3.1.39",
|
33
|
+
"@modern-js/module-generator": "3.1.39",
|
34
|
+
"@modern-js/monorepo-generator": "3.1.39",
|
35
|
+
"@modern-js/mwa-generator": "3.1.39",
|
36
|
+
"@modern-js/utils": "2.33.1",
|
37
|
+
"@modern-js/generator-plugin": "3.1.39",
|
38
|
+
"@modern-js/generator-utils": "3.1.39",
|
39
|
+
"@modern-js/base-generator": "3.1.39",
|
40
|
+
"@scripts/jest-config": "2.33.1",
|
41
|
+
"@scripts/build": "2.33.1"
|
42
42
|
},
|
43
43
|
"sideEffects": false,
|
44
44
|
"publishConfig": {
|