@modern-js/app-tools 2.33.0 → 2.33.1
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 +2 -2
- package/dist/cjs/locale/en.js +2 -1
- package/dist/cjs/locale/zh.js +2 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/locale/en.js +2 -1
- package/dist/esm/locale/zh.js +2 -1
- package/dist/esm-node/index.js +2 -2
- package/dist/esm-node/locale/en.js +2 -1
- package/dist/esm-node/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/package.json +24 -24
- package/CHANGELOG.md +0 -5208
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)();
|
package/dist/cjs/locale/en.js
CHANGED
@@ -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",
|
package/dist/cjs/locale/zh.js
CHANGED
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
|
];
|
package/dist/esm/locale/en.js
CHANGED
@@ -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",
|
package/dist/esm/locale/zh.js
CHANGED
package/dist/esm-node/index.js
CHANGED
@@ -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",
|
@@ -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;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.33.
|
18
|
+
"version": "2.33.1",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -73,24 +73,24 @@
|
|
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.
|
77
|
-
"@modern-js/builder-plugin-esbuild": "2.33.
|
78
|
-
"@modern-js/builder-plugin-node-polyfill": "2.33.
|
79
|
-
"@modern-js/builder-shared": "2.33.
|
80
|
-
"@modern-js/builder-webpack-provider": "2.33.
|
81
|
-
"@modern-js/core": "2.33.
|
82
|
-
"@modern-js/new-action": "2.33.
|
83
|
-
"@modern-js/node-bundle-require": "2.33.
|
84
|
-
"@modern-js/plugin": "2.33.
|
85
|
-
"@modern-js/plugin-data-loader": "2.33.
|
86
|
-
"@modern-js/plugin-i18n": "2.33.
|
87
|
-
"@modern-js/plugin-lint": "2.33.
|
88
|
-
"@modern-js/prod-server": "2.33.
|
89
|
-
"@modern-js/server": "2.33.
|
90
|
-
"@modern-js/types": "2.33.
|
91
|
-
"@modern-js/upgrade": "2.33.
|
92
|
-
"@modern-js/
|
93
|
-
"@modern-js/
|
76
|
+
"@modern-js/builder": "2.33.1",
|
77
|
+
"@modern-js/builder-plugin-esbuild": "2.33.1",
|
78
|
+
"@modern-js/builder-plugin-node-polyfill": "2.33.1",
|
79
|
+
"@modern-js/builder-shared": "2.33.1",
|
80
|
+
"@modern-js/builder-webpack-provider": "2.33.1",
|
81
|
+
"@modern-js/core": "2.33.1",
|
82
|
+
"@modern-js/new-action": "2.33.1",
|
83
|
+
"@modern-js/node-bundle-require": "2.33.1",
|
84
|
+
"@modern-js/plugin": "2.33.1",
|
85
|
+
"@modern-js/plugin-data-loader": "2.33.1",
|
86
|
+
"@modern-js/plugin-i18n": "2.33.1",
|
87
|
+
"@modern-js/plugin-lint": "2.33.1",
|
88
|
+
"@modern-js/prod-server": "2.33.1",
|
89
|
+
"@modern-js/server": "2.33.1",
|
90
|
+
"@modern-js/types": "2.33.1",
|
91
|
+
"@modern-js/upgrade": "2.33.1",
|
92
|
+
"@modern-js/server-core": "2.33.1",
|
93
|
+
"@modern-js/utils": "2.33.1"
|
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.
|
103
|
-
"@modern-js/builder-rspack-provider": "2.33.
|
104
|
-
"@scripts/
|
105
|
-
"@scripts/
|
102
|
+
"@modern-js/builder-plugin-swc": "2.33.1",
|
103
|
+
"@modern-js/builder-rspack-provider": "2.33.1",
|
104
|
+
"@scripts/jest-config": "2.33.1",
|
105
|
+
"@scripts/build": "2.33.1"
|
106
106
|
},
|
107
107
|
"peerDependencies": {
|
108
|
-
"@modern-js/builder-rspack-provider": "^2.33.
|
108
|
+
"@modern-js/builder-rspack-provider": "^2.33.1"
|
109
109
|
},
|
110
110
|
"peerDependenciesMeta": {
|
111
111
|
"@modern-js/builder-rspack-provider": {
|