@modern-js/upgrade 2.47.0 → 2.48.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -1
- package/dist/locale/en.d.ts +1 -0
- package/dist/locale/en.js +2 -1
- package/dist/locale/index.d.ts +2 -0
- package/dist/locale/zh.d.ts +1 -0
- package/dist/locale/zh.js +2 -1
- package/package.json +12 -8
package/dist/index.js
CHANGED
@@ -40,7 +40,7 @@ function defineCommand(program) {
|
|
40
40
|
import_locale.i18n.changeLanguage({
|
41
41
|
locale
|
42
42
|
});
|
43
|
-
program.description(import_locale.i18n.t(import_locale.localeKeys.command.describe)).option("--dist-tag <distTag>", import_locale.i18n.t(import_locale.localeKeys.command.distTag), "").option("--registry <registry>", import_locale.i18n.t(import_locale.localeKeys.command.registry), "").option("-d,--debug", import_locale.i18n.t(import_locale.localeKeys.command.debug), false).option("--cwd <cwd>", import_locale.i18n.t(import_locale.localeKeys.command.cwd), "").option("--no-need-install", import_locale.i18n.t(import_locale.localeKeys.command.noNeedInstall)).action(async (params) => {
|
43
|
+
program.alias("upgrade").description(import_locale.i18n.t(import_locale.localeKeys.command.describe)).usage("npx @modern-js/upgrade [options]").option("-c --config <config>", import_locale.i18n.t(import_locale.localeKeys.command.config)).option("--dist-tag <distTag>", import_locale.i18n.t(import_locale.localeKeys.command.distTag), "").option("--registry <registry>", import_locale.i18n.t(import_locale.localeKeys.command.registry), "").option("-d,--debug", import_locale.i18n.t(import_locale.localeKeys.command.debug), false).option("--cwd <cwd>", import_locale.i18n.t(import_locale.localeKeys.command.cwd), "").option("--no-need-install", import_locale.i18n.t(import_locale.localeKeys.command.noNeedInstall)).action(async (params) => {
|
44
44
|
const { upgradeAction } = await Promise.resolve().then(() => __toESM(require("./upgrade")));
|
45
45
|
return upgradeAction(params);
|
46
46
|
});
|
package/dist/locale/en.d.ts
CHANGED
package/dist/locale/en.js
CHANGED
@@ -28,7 +28,8 @@ const EN_LOCALE = {
|
|
28
28
|
registry: "set npm registry url to run npm command",
|
29
29
|
debug: "using debug mode to log something",
|
30
30
|
cwd: "project path",
|
31
|
-
noNeedInstall: "not run install command"
|
31
|
+
noNeedInstall: "not run install command",
|
32
|
+
config: "specify the configuration file, which can be a relative or absolute path"
|
32
33
|
}
|
33
34
|
};
|
34
35
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/locale/index.d.ts
CHANGED
@@ -8,6 +8,7 @@ declare const localeKeys: {
|
|
8
8
|
debug: string;
|
9
9
|
noNeedInstall: string;
|
10
10
|
cwd: string;
|
11
|
+
config: string;
|
11
12
|
};
|
12
13
|
} | {
|
13
14
|
command: {
|
@@ -17,6 +18,7 @@ declare const localeKeys: {
|
|
17
18
|
debug: string;
|
18
19
|
cwd: string;
|
19
20
|
noNeedInstall: string;
|
21
|
+
config: string;
|
20
22
|
};
|
21
23
|
};
|
22
24
|
export { i18n, localeKeys };
|
package/dist/locale/zh.d.ts
CHANGED
package/dist/locale/zh.js
CHANGED
package/package.json
CHANGED
@@ -15,13 +15,17 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.48.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/index.d.ts",
|
21
21
|
"main": "./dist/index.js",
|
22
22
|
"bin": {
|
23
|
-
"
|
23
|
+
"run": "./bin/run.js"
|
24
24
|
},
|
25
|
+
"files": [
|
26
|
+
"bin",
|
27
|
+
"dist"
|
28
|
+
],
|
25
29
|
"exports": {
|
26
30
|
".": {
|
27
31
|
"node": {
|
@@ -33,10 +37,10 @@
|
|
33
37
|
}
|
34
38
|
},
|
35
39
|
"dependencies": {
|
36
|
-
"@modern-js/codesmith": "2.3.
|
40
|
+
"@modern-js/codesmith": "2.3.5",
|
37
41
|
"@swc/helpers": "0.5.3",
|
38
|
-
"@modern-js/plugin-i18n": "2.
|
39
|
-
"@modern-js/utils": "2.
|
42
|
+
"@modern-js/plugin-i18n": "2.48.0",
|
43
|
+
"@modern-js/utils": "2.48.0"
|
40
44
|
},
|
41
45
|
"devDependencies": {
|
42
46
|
"@types/jest": "^29",
|
@@ -44,9 +48,9 @@
|
|
44
48
|
"jest": "^29",
|
45
49
|
"ts-node": "^10.9.1",
|
46
50
|
"typescript": "^5",
|
47
|
-
"@modern-js/upgrade-generator": "3.3.
|
48
|
-
"@scripts/jest-config": "2.
|
49
|
-
"@scripts/build": "2.
|
51
|
+
"@modern-js/upgrade-generator": "3.3.11",
|
52
|
+
"@scripts/jest-config": "2.48.0",
|
53
|
+
"@scripts/build": "2.48.0"
|
50
54
|
},
|
51
55
|
"sideEffects": false,
|
52
56
|
"publishConfig": {
|