@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 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
  });
@@ -6,5 +6,6 @@ export declare const EN_LOCALE: {
6
6
  debug: string;
7
7
  cwd: string;
8
8
  noNeedInstall: string;
9
+ config: string;
9
10
  };
10
11
  };
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:
@@ -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 };
@@ -6,5 +6,6 @@ export declare const ZH_LOCALE: {
6
6
  debug: string;
7
7
  noNeedInstall: string;
8
8
  cwd: string;
9
+ config: string;
9
10
  };
10
11
  };
package/dist/locale/zh.js CHANGED
@@ -28,7 +28,8 @@ const ZH_LOCALE = {
28
28
  registry: "定制 npm registry",
29
29
  debug: "开启 Debug 模式,打印调试日志信息",
30
30
  noNeedInstall: "无需安装依赖",
31
- cwd: "项目路径"
31
+ cwd: "项目路径",
32
+ config: "指定配置文件路径,可以为相对路径或绝对路径"
32
33
  }
33
34
  };
34
35
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -15,13 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.47.0",
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
- "create": "./bin/run.js"
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.4",
40
+ "@modern-js/codesmith": "2.3.5",
37
41
  "@swc/helpers": "0.5.3",
38
- "@modern-js/plugin-i18n": "2.47.0",
39
- "@modern-js/utils": "2.47.0"
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.9",
48
- "@scripts/jest-config": "2.47.0",
49
- "@scripts/build": "2.47.0"
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": {