@modern-js/core 2.0.2 → 2.1.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/CHANGELOG.md +14 -0
- package/dist/runBin.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bafa52e: fix(core): incorrect NODE_ENV when run start command
|
|
8
|
+
|
|
9
|
+
fix(core): 修复运行 start 命令时 NODE_ENV 设置错误的问题
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [837620c]
|
|
12
|
+
- Updated dependencies [8a9482c]
|
|
13
|
+
- @modern-js/utils@2.1.0
|
|
14
|
+
- @modern-js/node-bundle-require@2.1.0
|
|
15
|
+
- @modern-js/plugin@2.1.0
|
|
16
|
+
|
|
3
17
|
## 2.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/runBin.js
CHANGED
|
@@ -7,7 +7,7 @@ const _1 = require(".");
|
|
|
7
7
|
const run = async (otherCoreOptions = {}, options = {}) => {
|
|
8
8
|
const command = process.argv[2];
|
|
9
9
|
if (!process.env.NODE_ENV) {
|
|
10
|
-
if (['build', '
|
|
10
|
+
if (['build', 'serve', 'deploy', 'release'].includes(command)) {
|
|
11
11
|
process.env.NODE_ENV = 'production';
|
|
12
12
|
}
|
|
13
13
|
else if (command === 'test') {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"modern",
|
|
11
11
|
"modern.js"
|
|
12
12
|
],
|
|
13
|
-
"version": "2.0
|
|
13
|
+
"version": "2.1.0",
|
|
14
14
|
"jsnext:source": "./src/index.ts",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@modern-js/node-bundle-require": "2.0
|
|
55
|
-
"@modern-js/plugin": "2.0
|
|
56
|
-
"@modern-js/utils": "2.0
|
|
54
|
+
"@modern-js/node-bundle-require": "2.1.0",
|
|
55
|
+
"@modern-js/plugin": "2.1.0",
|
|
56
|
+
"@modern-js/utils": "2.1.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@jest/types": "^27.0.6",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"terser-webpack-plugin": "^5.1.4",
|
|
73
73
|
"typescript": "^4",
|
|
74
74
|
"webpack": "^5.75.0",
|
|
75
|
-
"@modern-js/builder-shared": "2.0
|
|
76
|
-
"@modern-js/babel-preset-app": "2.0
|
|
77
|
-
"@modern-js/types": "2.0
|
|
78
|
-
"@scripts/jest-config": "2.0
|
|
79
|
-
"@scripts/build": "2.0
|
|
75
|
+
"@modern-js/builder-shared": "2.1.0",
|
|
76
|
+
"@modern-js/babel-preset-app": "2.1.0",
|
|
77
|
+
"@modern-js/types": "2.1.0",
|
|
78
|
+
"@scripts/jest-config": "2.1.0",
|
|
79
|
+
"@scripts/build": "2.1.0"
|
|
80
80
|
},
|
|
81
81
|
"sideEffects": false,
|
|
82
82
|
"publishConfig": {
|