@modern-js/app-tools 1.4.5 → 1.4.6
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 +22 -0
- package/dist/js/modern/utils/createCompiler.js +1 -2
- package/dist/js/modern/utils/createServer.js +1 -2
- package/dist/js/node/utils/createCompiler.js +1 -2
- package/dist/js/node/utils/createServer.js +1 -2
- package/jest.config.js +0 -1
- package/package.json +15 -15
- package/tests/utils.test.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8491b6dd: fix: optimise "types" exports from plugin
|
|
8
|
+
- Updated dependencies [bebb39b6]
|
|
9
|
+
- Updated dependencies [4b4e73b7]
|
|
10
|
+
- Updated dependencies [da60172c]
|
|
11
|
+
- Updated dependencies [ef28a4e6]
|
|
12
|
+
- Updated dependencies [6cff93dc]
|
|
13
|
+
- Updated dependencies [132f7b53]
|
|
14
|
+
- Updated dependencies [ff73a5cc]
|
|
15
|
+
- Updated dependencies [9d4a005b]
|
|
16
|
+
- @modern-js/plugin-analyze@1.3.5
|
|
17
|
+
- @modern-js/plugin-fast-refresh@1.2.3
|
|
18
|
+
- @modern-js/webpack@1.5.3
|
|
19
|
+
- @modern-js/prod-server@1.0.6
|
|
20
|
+
- @modern-js/server@1.4.9
|
|
21
|
+
- @modern-js/core@1.6.1
|
|
22
|
+
- @modern-js/types@1.3.6
|
|
23
|
+
- @modern-js/utils@1.3.7
|
|
24
|
+
|
|
3
25
|
## 1.4.5
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -10,8 +10,7 @@ export const closeServer = async () => {
|
|
|
10
10
|
export const createServer = async options => {
|
|
11
11
|
if (server) {
|
|
12
12
|
await server.close();
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
}
|
|
15
14
|
|
|
16
15
|
server = new Server(options);
|
|
17
16
|
const app = await server.init();
|
|
@@ -25,8 +25,7 @@ exports.closeServer = closeServer;
|
|
|
25
25
|
const createServer = async options => {
|
|
26
26
|
if (server) {
|
|
27
27
|
await server.close();
|
|
28
|
-
}
|
|
29
|
-
|
|
28
|
+
}
|
|
30
29
|
|
|
31
30
|
server = new _server.Server(options);
|
|
32
31
|
const app = await server.init();
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.4.
|
|
14
|
+
"version": "1.4.6",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"jsnext:source": "./src/index.ts",
|
|
31
31
|
"default": "./dist/js/node/index.js"
|
|
32
32
|
},
|
|
33
|
-
"./
|
|
33
|
+
"./types": {
|
|
34
34
|
"jsnext:source": "./lib/types.d.ts",
|
|
35
35
|
"default": "./lib/types.d.ts"
|
|
36
36
|
}
|
|
@@ -49,32 +49,32 @@
|
|
|
49
49
|
"modern": "./bin/modern.js"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@modern-js/core": "^1.6.0",
|
|
53
52
|
"@babel/runtime": "^7",
|
|
54
|
-
"@modern-js/
|
|
53
|
+
"@modern-js/core": "^1.6.1",
|
|
55
54
|
"@modern-js/i18n-cli-language-detector": "^1.2.1",
|
|
56
55
|
"@modern-js/new-action": "^1.3.3",
|
|
57
56
|
"@modern-js/plugin": "^1.3.2",
|
|
58
|
-
"@modern-js/plugin-analyze": "^1.3.
|
|
59
|
-
"@modern-js/plugin-fast-refresh": "^1.2.
|
|
57
|
+
"@modern-js/plugin-analyze": "^1.3.5",
|
|
58
|
+
"@modern-js/plugin-fast-refresh": "^1.2.3",
|
|
60
59
|
"@modern-js/plugin-i18n": "^1.2.1",
|
|
61
|
-
"@modern-js/server": "^1.
|
|
62
|
-
"@modern-js/
|
|
63
|
-
"@modern-js/
|
|
64
|
-
"@modern-js/
|
|
60
|
+
"@modern-js/prod-server": "^1.0.6",
|
|
61
|
+
"@modern-js/server": "^1.4.9",
|
|
62
|
+
"@modern-js/types": "^1.3.6",
|
|
63
|
+
"@modern-js/utils": "^1.3.7",
|
|
64
|
+
"@modern-js/webpack": "^1.5.3",
|
|
65
65
|
"inquirer": "^8.2.0",
|
|
66
|
-
"webpack": "^5.
|
|
66
|
+
"webpack": "^5.71.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
+
"@scripts/build": "0.0.0",
|
|
70
|
+
"@scripts/jest-config": "0.0.0",
|
|
71
|
+
"@types/inquirer": "^8.2.0",
|
|
69
72
|
"@types/jest": "^26",
|
|
70
73
|
"@types/node": "^14",
|
|
71
74
|
"@types/react": "^17",
|
|
72
75
|
"@types/react-dom": "^17",
|
|
73
|
-
"typescript": "^4",
|
|
74
|
-
"@scripts/build": "0.0.0",
|
|
75
76
|
"jest": "^27",
|
|
76
|
-
"
|
|
77
|
-
"@types/inquirer": "^8.2.0"
|
|
77
|
+
"typescript": "^4"
|
|
78
78
|
},
|
|
79
79
|
"sideEffects": false,
|
|
80
80
|
"publishConfig": {
|
package/tests/utils.test.ts
CHANGED
|
@@ -40,7 +40,6 @@ describe('test app-tools utils', () => {
|
|
|
40
40
|
getSpecifiedEntries(['c'], [
|
|
41
41
|
{ entryName: 'a' },
|
|
42
42
|
{ entryName: 'b' },
|
|
43
|
-
// eslint-disable-next-line promise/prefer-await-to-then
|
|
44
43
|
] as any).catch(e => {
|
|
45
44
|
expect((e as Error).message).toMatch('can not found entry c');
|
|
46
45
|
resolve();
|