@modern-js/core 1.13.2 → 1.13.3
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/CHANGELOG.md +11 -0
- package/dist/bin.js +12 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
+
## 1.13.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f4822c0: feat(app-tools): start and inspect command support specify config file
|
|
8
|
+
|
|
9
|
+
feat(app-tools): start 和 inspect 命令支持指定配置文件
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [4f1889d]
|
|
12
|
+
- @modern-js/utils@1.8.1
|
|
13
|
+
|
|
3
14
|
## 1.13.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/bin.js
CHANGED
|
@@ -23,7 +23,18 @@ const cliParams = (0, utils_1.minimist)(process.argv.slice(2));
|
|
|
23
23
|
const runOptions = {
|
|
24
24
|
version,
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Commands that support specify config files
|
|
28
|
+
* Some commands can't support this feature, such as `new`
|
|
29
|
+
*/
|
|
30
|
+
const SUPPORT_CONFIG_PARAM_COMMANDS = [
|
|
31
|
+
'dev',
|
|
32
|
+
'build',
|
|
33
|
+
'deploy',
|
|
34
|
+
'start',
|
|
35
|
+
'inspect',
|
|
36
|
+
];
|
|
37
|
+
if (SUPPORT_CONFIG_PARAM_COMMANDS.includes(command) && cliParams.config) {
|
|
27
38
|
runOptions.configFile = cliParams.config;
|
|
28
39
|
}
|
|
29
40
|
_1.cli.run(process.argv.slice(2), runOptions);
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"modern",
|
|
11
11
|
"modern.js"
|
|
12
12
|
],
|
|
13
|
-
"version": "1.13.
|
|
13
|
+
"version": "1.13.3",
|
|
14
14
|
"jsnext:source": "./src/index.ts",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@modern-js/plugin": "^1.4.2",
|
|
42
|
-
"@modern-js/utils": "^1.8.
|
|
42
|
+
"@modern-js/utils": "^1.8.1",
|
|
43
43
|
"@modern-js/node-bundle-require": "^1.3.7"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@jest/types": "^27.0.6",
|
|
47
|
-
"@modern-js/types": "1.6.
|
|
47
|
+
"@modern-js/types": "1.6.2",
|
|
48
48
|
"@scripts/build": "0.0.0",
|
|
49
49
|
"@scripts/jest-config": "0.0.0",
|
|
50
50
|
"@types/babel__code-frame": "^7.0.3",
|