@modern-js/monorepo-tools 2.33.0 → 2.34.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.
- package/dist/cjs/cli/new.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/locale/en.js +2 -1
- package/dist/cjs/locale/zh.js +2 -1
- package/dist/esm/cli/new.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/locale/en.js +2 -1
- package/dist/esm/locale/zh.js +2 -1
- package/dist/types/locale/en.d.ts +1 -0
- package/dist/types/locale/index.d.ts +2 -0
- package/dist/types/locale/zh.d.ts +1 -0
- package/dist/types/package/index.d.ts +1 -1
- package/package.json +11 -11
- package/CHANGELOG.md +0 -2081
package/dist/cjs/cli/new.js
CHANGED
|
@@ -14,7 +14,7 @@ const newCli = (program, locale) => {
|
|
|
14
14
|
program.command("new").usage("[options]").description(_locale.i18n.t(_locale.localeKeys.command.new.describe)).option("--config-file <configFile>", _locale.i18n.t(_locale.localeKeys.command.shared.config)).option("--lang <lang>", _locale.i18n.t(_locale.localeKeys.command.new.lang)).option("-c, --config <config>", _locale.i18n.t(_locale.localeKeys.command.new.config)).option("-p, --plugin <plugin>", _locale.i18n.t(_locale.localeKeys.command.new.plugin), (val, memo) => {
|
|
15
15
|
memo.push(val);
|
|
16
16
|
return memo;
|
|
17
|
-
}, []).option("-d, --debug", _locale.i18n.t(_locale.localeKeys.command.new.debug), false).option("--dist-tag <tag>", _locale.i18n.t(_locale.localeKeys.command.new.distTag)).option("--registry", _locale.i18n.t(_locale.localeKeys.command.new.registry)).action(async (options) => {
|
|
17
|
+
}, []).option("-d, --debug", _locale.i18n.t(_locale.localeKeys.command.new.debug), false).option("--dist-tag <tag>", _locale.i18n.t(_locale.localeKeys.command.new.distTag)).option("--registry", _locale.i18n.t(_locale.localeKeys.command.new.registry)).option("--no-need-install", _locale.i18n.t(_locale.localeKeys.command.shared.noNeedInstall)).action(async (options) => {
|
|
18
18
|
await (0, _newaction.MonorepoNewAction)({
|
|
19
19
|
...options,
|
|
20
20
|
locale: options.lang || locale
|
package/dist/cjs/index.js
CHANGED
|
@@ -49,7 +49,7 @@ const monorepoTools = () => ({
|
|
|
49
49
|
(0, _cli.clearCli)(program, api);
|
|
50
50
|
(0, _cli.deployCli)(program, api);
|
|
51
51
|
(0, _cli.newCli)(program, locale);
|
|
52
|
-
upgradeModel.defineCommand(program.command("upgrade").option("-c --config <config>", _locale.i18n.t(_locale.localeKeys.command.shared.config)));
|
|
52
|
+
upgradeModel.defineCommand(program.command("upgrade").option("-c --config <config>", _locale.i18n.t(_locale.localeKeys.command.shared.config)).option("--no-need-install", _locale.i18n.t(_locale.localeKeys.command.shared.noNeedInstall)));
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
},
|
package/dist/cjs/locale/en.js
CHANGED
|
@@ -11,7 +11,8 @@ Object.defineProperty(exports, "EN_LOCALE", {
|
|
|
11
11
|
const EN_LOCALE = {
|
|
12
12
|
command: {
|
|
13
13
|
shared: {
|
|
14
|
-
config: "specify the configuration file, which can be a relative or absolute path"
|
|
14
|
+
config: "specify the configuration file, which can be a relative or absolute path",
|
|
15
|
+
noNeedInstall: "not run install command"
|
|
15
16
|
},
|
|
16
17
|
new: {
|
|
17
18
|
describe: "generator runner for monorepo project",
|
package/dist/cjs/locale/zh.js
CHANGED
package/dist/esm/cli/new.js
CHANGED
|
@@ -4,7 +4,7 @@ export const newCli = (program, locale) => {
|
|
|
4
4
|
program.command("new").usage("[options]").description(i18n.t(localeKeys.command.new.describe)).option("--config-file <configFile>", i18n.t(localeKeys.command.shared.config)).option("--lang <lang>", i18n.t(localeKeys.command.new.lang)).option("-c, --config <config>", i18n.t(localeKeys.command.new.config)).option("-p, --plugin <plugin>", i18n.t(localeKeys.command.new.plugin), (val, memo) => {
|
|
5
5
|
memo.push(val);
|
|
6
6
|
return memo;
|
|
7
|
-
}, []).option("-d, --debug", i18n.t(localeKeys.command.new.debug), false).option("--dist-tag <tag>", i18n.t(localeKeys.command.new.distTag)).option("--registry", i18n.t(localeKeys.command.new.registry)).action(async (options) => {
|
|
7
|
+
}, []).option("-d, --debug", i18n.t(localeKeys.command.new.debug), false).option("--dist-tag <tag>", i18n.t(localeKeys.command.new.distTag)).option("--registry", i18n.t(localeKeys.command.new.registry)).option("--no-need-install", i18n.t(localeKeys.command.shared.noNeedInstall)).action(async (options) => {
|
|
8
8
|
await MonorepoNewAction({
|
|
9
9
|
...options,
|
|
10
10
|
locale: options.lang || locale
|
package/dist/esm/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export const monorepoTools = () => ({
|
|
|
29
29
|
clearCli(program, api);
|
|
30
30
|
deployCli(program, api);
|
|
31
31
|
newCli(program, locale);
|
|
32
|
-
upgradeModel.defineCommand(program.command("upgrade").option("-c --config <config>", i18n.t(localeKeys.command.shared.config)));
|
|
32
|
+
upgradeModel.defineCommand(program.command("upgrade").option("-c --config <config>", i18n.t(localeKeys.command.shared.config)).option("--no-need-install", i18n.t(localeKeys.command.shared.noNeedInstall)));
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
},
|
package/dist/esm/locale/en.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export const EN_LOCALE = {
|
|
2
2
|
command: {
|
|
3
3
|
shared: {
|
|
4
|
-
config: "specify the configuration file, which can be a relative or absolute path"
|
|
4
|
+
config: "specify the configuration file, which can be a relative or absolute path",
|
|
5
|
+
noNeedInstall: "not run install command"
|
|
5
6
|
},
|
|
6
7
|
new: {
|
|
7
8
|
describe: "generator runner for monorepo project",
|
package/dist/esm/locale/zh.js
CHANGED
|
@@ -4,6 +4,7 @@ declare const localeKeys: {
|
|
|
4
4
|
command: {
|
|
5
5
|
shared: {
|
|
6
6
|
config: string;
|
|
7
|
+
noNeedInstall: string;
|
|
7
8
|
};
|
|
8
9
|
new: {
|
|
9
10
|
describe: string;
|
|
@@ -19,6 +20,7 @@ declare const localeKeys: {
|
|
|
19
20
|
command: {
|
|
20
21
|
shared: {
|
|
21
22
|
config: string;
|
|
23
|
+
noNeedInstall: string;
|
|
22
24
|
};
|
|
23
25
|
new: {
|
|
24
26
|
describe: string;
|
|
@@ -6,5 +6,5 @@ export declare class Package {
|
|
|
6
6
|
constructor(packageJson: INodePackageJson, packageConfigPath: string, rootPath: string);
|
|
7
7
|
get name(): string;
|
|
8
8
|
get path(): string;
|
|
9
|
-
get(key: keyof INodePackageJson): string | boolean | Record<string, string> | import("@rushstack/node-core-library").IPackageJsonDependencyTable | import("@rushstack/node-core-library").IPackageJsonScriptTable | import("@rushstack/node-core-library").IPackageJsonRepository | undefined;
|
|
9
|
+
get(key: keyof INodePackageJson): string | boolean | Record<string, string> | import("@rushstack/node-core-library").IPackageJsonDependencyTable | import("@rushstack/node-core-library").IPackageJsonScriptTable | import("@rushstack/node-core-library").IPackageJsonRepository | import("@rushstack/node-core-library").IPeerDependenciesMetaTable | undefined;
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.34.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"md5": "^2.3.0",
|
|
44
44
|
"p-map": "^4.0.0",
|
|
45
45
|
"@swc/helpers": "0.5.1",
|
|
46
|
-
"@modern-js/core": "2.
|
|
47
|
-
"@modern-js/new-action": "2.
|
|
48
|
-
"@modern-js/upgrade": "2.
|
|
49
|
-
"@modern-js/plugin": "2.
|
|
50
|
-
"@modern-js/plugin-changeset": "2.
|
|
51
|
-
"@modern-js/plugin-i18n": "2.
|
|
52
|
-
"@modern-js/plugin-lint": "2.
|
|
53
|
-
"@modern-js/utils": "2.
|
|
46
|
+
"@modern-js/core": "2.34.0",
|
|
47
|
+
"@modern-js/new-action": "2.34.0",
|
|
48
|
+
"@modern-js/upgrade": "2.34.0",
|
|
49
|
+
"@modern-js/plugin": "2.34.0",
|
|
50
|
+
"@modern-js/plugin-changeset": "2.34.0",
|
|
51
|
+
"@modern-js/plugin-i18n": "2.34.0",
|
|
52
|
+
"@modern-js/plugin-lint": "2.34.0",
|
|
53
|
+
"@modern-js/utils": "2.34.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^29",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@types/node": "^14",
|
|
59
59
|
"jest": "^29",
|
|
60
60
|
"typescript": "^5",
|
|
61
|
-
"@scripts/build": "2.
|
|
62
|
-
"@scripts/jest-config": "2.
|
|
61
|
+
"@scripts/build": "2.34.0",
|
|
62
|
+
"@scripts/jest-config": "2.34.0"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
65
|
"publishConfig": {
|