@modern-js/app-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/index.js CHANGED
@@ -156,7 +156,7 @@ const appTools = (options = {
156
156
  await deploy(api, options2);
157
157
  process.exit(0);
158
158
  });
159
- 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("-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 (options2) => {
159
+ 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("-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 (options2) => {
160
160
  const { MWANewAction } = await Promise.resolve().then(() => /* @__PURE__ */ _interop_require_wildcard._(require("@modern-js/new-action")));
161
161
  await MWANewAction({
162
162
  ...options2,
@@ -168,7 +168,7 @@ const appTools = (options = {
168
168
  inspect(api, options2);
169
169
  });
170
170
  const { defineCommand } = await Promise.resolve().then(() => /* @__PURE__ */ _interop_require_wildcard._(require("@modern-js/upgrade")));
171
- defineCommand(program.command("upgrade").option("-c --config <config>", _locale.i18n.t(_locale.localeKeys.command.shared.config)));
171
+ 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)));
172
172
  },
173
173
  async prepare() {
174
174
  const command = (0, _utils.getCommand)();
@@ -13,7 +13,8 @@ const EN_LOCALE = {
13
13
  shared: {
14
14
  analyze: "analyze bundle size",
15
15
  config: "specify the configuration file, which can be a relative or absolute path",
16
- skipBuild: "skip the build phase"
16
+ skipBuild: "skip the build phase",
17
+ noNeedInstall: "not run install command"
17
18
  },
18
19
  dev: {
19
20
  describe: "starting the dev server",
@@ -13,7 +13,8 @@ const ZH_LOCALE = {
13
13
  shared: {
14
14
  analyze: "分析构建产物体积,查看各个模块打包后的大小",
15
15
  config: "指定配置文件路径,可以为相对路径或绝对路径",
16
- skipBuild: "跳过构建阶段"
16
+ skipBuild: "跳过构建阶段",
17
+ noNeedInstall: "无需安装依赖"
17
18
  },
18
19
  dev: {
19
20
  describe: "启动开发服务器",
package/dist/esm/index.js CHANGED
@@ -414,7 +414,7 @@ export var appTools = function() {
414
414
  return _ref.apply(this, arguments);
415
415
  };
416
416
  }());
417
- 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("-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(function() {
417
+ 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("-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(function() {
418
418
  var _ref = _async_to_generator(function(options2) {
419
419
  var MWANewAction;
420
420
  return _ts_generator(this, function(_state2) {
@@ -473,7 +473,7 @@ export var appTools = function() {
473
473
  ];
474
474
  case 3:
475
475
  defineCommand = _state.sent().defineCommand;
476
- defineCommand(program.command("upgrade").option("-c --config <config>", i18n.t(localeKeys.command.shared.config)));
476
+ defineCommand(program.command("upgrade").option("-c --config <config>", i18n.t(localeKeys.command.shared.config)).option("--no-need-install", i18n.t(localeKeys.command.shared.noNeedInstall)));
477
477
  return [
478
478
  2
479
479
  ];
@@ -3,7 +3,8 @@ export var EN_LOCALE = {
3
3
  shared: {
4
4
  analyze: "analyze bundle size",
5
5
  config: "specify the configuration file, which can be a relative or absolute path",
6
- skipBuild: "skip the build phase"
6
+ skipBuild: "skip the build phase",
7
+ noNeedInstall: "not run install command"
7
8
  },
8
9
  dev: {
9
10
  describe: "starting the dev server",
@@ -3,7 +3,8 @@ export var ZH_LOCALE = {
3
3
  shared: {
4
4
  analyze: "分析构建产物体积,查看各个模块打包后的大小",
5
5
  config: "指定配置文件路径,可以为相对路径或绝对路径",
6
- skipBuild: "跳过构建阶段"
6
+ skipBuild: "跳过构建阶段",
7
+ noNeedInstall: "无需安装依赖"
7
8
  },
8
9
  dev: {
9
10
  describe: "启动开发服务器",
@@ -122,7 +122,7 @@ export const appTools = (options = {
122
122
  await deploy(api, options2);
123
123
  process.exit(0);
124
124
  });
125
- 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("-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 (options2) => {
125
+ 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("-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 (options2) => {
126
126
  const { MWANewAction } = await import("@modern-js/new-action");
127
127
  await MWANewAction({
128
128
  ...options2,
@@ -134,7 +134,7 @@ export const appTools = (options = {
134
134
  inspect(api, options2);
135
135
  });
136
136
  const { defineCommand } = await import("@modern-js/upgrade");
137
- defineCommand(program.command("upgrade").option("-c --config <config>", i18n.t(localeKeys.command.shared.config)));
137
+ defineCommand(program.command("upgrade").option("-c --config <config>", i18n.t(localeKeys.command.shared.config)).option("--no-need-install", i18n.t(localeKeys.command.shared.noNeedInstall)));
138
138
  },
139
139
  async prepare() {
140
140
  const command = getCommand();
@@ -3,7 +3,8 @@ export const EN_LOCALE = {
3
3
  shared: {
4
4
  analyze: "analyze bundle size",
5
5
  config: "specify the configuration file, which can be a relative or absolute path",
6
- skipBuild: "skip the build phase"
6
+ skipBuild: "skip the build phase",
7
+ noNeedInstall: "not run install command"
7
8
  },
8
9
  dev: {
9
10
  describe: "starting the dev server",
@@ -3,7 +3,8 @@ export const ZH_LOCALE = {
3
3
  shared: {
4
4
  analyze: "分析构建产物体积,查看各个模块打包后的大小",
5
5
  config: "指定配置文件路径,可以为相对路径或绝对路径",
6
- skipBuild: "跳过构建阶段"
6
+ skipBuild: "跳过构建阶段",
7
+ noNeedInstall: "无需安装依赖"
7
8
  },
8
9
  dev: {
9
10
  describe: "启动开发服务器",
@@ -4,6 +4,7 @@ export declare const EN_LOCALE: {
4
4
  analyze: string;
5
5
  config: string;
6
6
  skipBuild: string;
7
+ noNeedInstall: string;
7
8
  };
8
9
  dev: {
9
10
  describe: string;
@@ -6,6 +6,7 @@ declare const localeKeys: {
6
6
  analyze: string;
7
7
  config: string;
8
8
  skipBuild: string;
9
+ noNeedInstall: string;
9
10
  };
10
11
  dev: {
11
12
  describe: string;
@@ -44,6 +45,7 @@ declare const localeKeys: {
44
45
  analyze: string;
45
46
  config: string;
46
47
  skipBuild: string;
48
+ noNeedInstall: string;
47
49
  };
48
50
  dev: {
49
51
  describe: string;
@@ -4,6 +4,7 @@ export declare const ZH_LOCALE: {
4
4
  analyze: string;
5
5
  config: string;
6
6
  skipBuild: string;
7
+ noNeedInstall: string;
7
8
  };
8
9
  dev: {
9
10
  describe: string;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.33.0",
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",
@@ -66,31 +66,31 @@
66
66
  "modern-app": "./bin/modern.js"
67
67
  },
68
68
  "dependencies": {
69
- "@babel/parser": "^7.21.8",
70
- "@babel/traverse": "^7.21.5",
71
- "@babel/types": "^7.21.5",
69
+ "@babel/parser": "^7.22.15",
70
+ "@babel/traverse": "^7.22.15",
71
+ "@babel/types": "^7.22.15",
72
72
  "es-module-lexer": "^1.1.0",
73
73
  "esbuild": "0.17.19",
74
74
  "rspack-plugin-virtual-module": "0.1.7",
75
75
  "@swc/helpers": "0.5.1",
76
- "@modern-js/builder": "2.33.0",
77
- "@modern-js/builder-plugin-esbuild": "2.33.0",
78
- "@modern-js/builder-plugin-node-polyfill": "2.33.0",
79
- "@modern-js/builder-shared": "2.33.0",
80
- "@modern-js/builder-webpack-provider": "2.33.0",
81
- "@modern-js/core": "2.33.0",
82
- "@modern-js/new-action": "2.33.0",
83
- "@modern-js/node-bundle-require": "2.33.0",
84
- "@modern-js/plugin": "2.33.0",
85
- "@modern-js/plugin-data-loader": "2.33.0",
86
- "@modern-js/plugin-i18n": "2.33.0",
87
- "@modern-js/plugin-lint": "2.33.0",
88
- "@modern-js/prod-server": "2.33.0",
89
- "@modern-js/server": "2.33.0",
90
- "@modern-js/types": "2.33.0",
91
- "@modern-js/upgrade": "2.33.0",
92
- "@modern-js/utils": "2.33.0",
93
- "@modern-js/server-core": "2.33.0"
76
+ "@modern-js/builder": "2.34.0",
77
+ "@modern-js/builder-plugin-esbuild": "2.34.0",
78
+ "@modern-js/builder-plugin-node-polyfill": "2.34.0",
79
+ "@modern-js/builder-shared": "2.34.0",
80
+ "@modern-js/builder-webpack-provider": "2.34.0",
81
+ "@modern-js/core": "2.34.0",
82
+ "@modern-js/new-action": "2.34.0",
83
+ "@modern-js/node-bundle-require": "2.34.0",
84
+ "@modern-js/plugin": "2.34.0",
85
+ "@modern-js/plugin-data-loader": "2.34.0",
86
+ "@modern-js/plugin-i18n": "2.34.0",
87
+ "@modern-js/plugin-lint": "2.34.0",
88
+ "@modern-js/prod-server": "2.34.0",
89
+ "@modern-js/server": "2.34.0",
90
+ "@modern-js/types": "2.34.0",
91
+ "@modern-js/upgrade": "2.34.0",
92
+ "@modern-js/utils": "2.34.0",
93
+ "@modern-js/server-core": "2.34.0"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@types/babel__traverse": "^7.14.2",
@@ -99,13 +99,13 @@
99
99
  "jest": "^29",
100
100
  "typescript": "^5",
101
101
  "webpack": "^5.88.1",
102
- "@modern-js/builder-plugin-swc": "2.33.0",
103
- "@modern-js/builder-rspack-provider": "2.33.0",
104
- "@scripts/build": "2.33.0",
105
- "@scripts/jest-config": "2.33.0"
102
+ "@modern-js/builder-plugin-swc": "2.34.0",
103
+ "@modern-js/builder-rspack-provider": "2.34.0",
104
+ "@scripts/build": "2.34.0",
105
+ "@scripts/jest-config": "2.34.0"
106
106
  },
107
107
  "peerDependencies": {
108
- "@modern-js/builder-rspack-provider": "^2.33.0"
108
+ "@modern-js/builder-rspack-provider": "^2.34.0"
109
109
  },
110
110
  "peerDependenciesMeta": {
111
111
  "@modern-js/builder-rspack-provider": {