@modern-js/server 2.0.1 → 2.0.3-alpha.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
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @modern-js/server
|
|
2
2
|
|
|
3
|
+
## 2.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [39988b2]
|
|
8
|
+
- @modern-js/types@2.0.2
|
|
9
|
+
- @modern-js/prod-server@2.0.2
|
|
10
|
+
- @modern-js/utils@2.0.2
|
|
11
|
+
- @modern-js/server-utils@2.0.2
|
|
12
|
+
|
|
3
13
|
## 2.0.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -45,7 +45,7 @@ import path from "path";
|
|
|
45
45
|
import { createServer as createHttpsServer } from "https";
|
|
46
46
|
import {
|
|
47
47
|
API_DIR,
|
|
48
|
-
|
|
48
|
+
SERVER_BUNDLE_DIRECTORY,
|
|
49
49
|
SERVER_DIR,
|
|
50
50
|
SHARED_DIR
|
|
51
51
|
} from "@modern-js/utils";
|
|
@@ -268,7 +268,7 @@ class ModernDevServer extends ModernServer {
|
|
|
268
268
|
`${SERVER_DIR}/**/*`,
|
|
269
269
|
`${API_DIR}/**`,
|
|
270
270
|
`${SHARED_DIR}/**/*`,
|
|
271
|
-
`${distDir}/${
|
|
271
|
+
`${distDir}/${SERVER_BUNDLE_DIRECTORY}/*-server-loaders.js`
|
|
272
272
|
];
|
|
273
273
|
const watchOptions = mergeWatchOptions((_a = this.conf.server) == null ? void 0 : _a.watchOptions);
|
|
274
274
|
const defaultWatchedPaths = defaultWatched.map((p) => {
|
|
@@ -284,7 +284,7 @@ class ModernDevServer extends import_prod_server.ModernServer {
|
|
|
284
284
|
`${import_utils.SERVER_DIR}/**/*`,
|
|
285
285
|
`${import_utils.API_DIR}/**`,
|
|
286
286
|
`${import_utils.SHARED_DIR}/**/*`,
|
|
287
|
-
`${distDir}/${import_utils.
|
|
287
|
+
`${distDir}/${import_utils.SERVER_BUNDLE_DIRECTORY}/*-server-loaders.js`
|
|
288
288
|
];
|
|
289
289
|
const watchOptions = (0, import_watcher.mergeWatchOptions)((_a = this.conf.server) == null ? void 0 : _a.watchOptions);
|
|
290
290
|
const defaultWatchedPaths = defaultWatched.map((p) => {
|
|
@@ -343,7 +343,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
343
343
|
import { createServer } from "http";
|
|
344
344
|
import path from "path";
|
|
345
345
|
import { createServer as createHttpsServer } from "https";
|
|
346
|
-
import { API_DIR,
|
|
346
|
+
import { API_DIR, SERVER_BUNDLE_DIRECTORY, SERVER_DIR, SHARED_DIR } from "@modern-js/utils";
|
|
347
347
|
import { createProxyHandler, ModernServer, AGGRED_DIR } from "@modern-js/prod-server";
|
|
348
348
|
import { LOADABLE_STATS_FILE } from "@modern-js/utils/constants";
|
|
349
349
|
import { getDefaultDevOptions } from "../constants";
|
|
@@ -773,7 +773,7 @@ var ModernDevServer = /*#__PURE__*/ function(ModernServer) {
|
|
|
773
773
|
"".concat(SERVER_DIR, "/**/*"),
|
|
774
774
|
"".concat(API_DIR, "/**"),
|
|
775
775
|
"".concat(SHARED_DIR, "/**/*"),
|
|
776
|
-
"".concat(distDir, "/").concat(
|
|
776
|
+
"".concat(distDir, "/").concat(SERVER_BUNDLE_DIRECTORY, "/*-server-loaders.js")
|
|
777
777
|
];
|
|
778
778
|
var watchOptions = mergeWatchOptions((ref = this.conf.server) === null || ref === void 0 ? void 0 : ref.watchOptions);
|
|
779
779
|
var defaultWatchedPaths = defaultWatched.map(function(p) {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.0.
|
|
14
|
+
"version": "2.0.3-alpha.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -30,16 +30,19 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/core": "^7.18.0",
|
|
32
32
|
"@babel/register": "^7.17.7",
|
|
33
|
+
"@modern-js/prod-server": "2.0.2",
|
|
34
|
+
"@modern-js/server-utils": "2.0.2",
|
|
35
|
+
"@modern-js/types": "2.0.2",
|
|
36
|
+
"@modern-js/utils": "2.0.2",
|
|
33
37
|
"connect-history-api-fallback": "^2.0.0",
|
|
34
38
|
"minimatch": "^3.0.4",
|
|
35
39
|
"path-to-regexp": "^6.2.0",
|
|
36
|
-
"ws": "^8.2.0"
|
|
37
|
-
"@modern-js/prod-server": "2.0.1",
|
|
38
|
-
"@modern-js/server-utils": "2.0.1",
|
|
39
|
-
"@modern-js/types": "2.0.1",
|
|
40
|
-
"@modern-js/utils": "2.0.1"
|
|
40
|
+
"ws": "^8.2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
+
"@modern-js/server-core": "2.0.2",
|
|
44
|
+
"@scripts/build": "2.0.2",
|
|
45
|
+
"@scripts/jest-config": "2.0.2",
|
|
43
46
|
"@types/connect-history-api-fallback": "^1.3.5",
|
|
44
47
|
"@types/jest": "^27",
|
|
45
48
|
"@types/minimatch": "^3.0.5",
|
|
@@ -51,10 +54,7 @@
|
|
|
51
54
|
"tsconfig-paths": "4.1.1",
|
|
52
55
|
"typescript": "^4",
|
|
53
56
|
"webpack": "^5.75.0",
|
|
54
|
-
"websocket": "^1"
|
|
55
|
-
"@modern-js/server-core": "2.0.1",
|
|
56
|
-
"@scripts/jest-config": "2.0.1",
|
|
57
|
-
"@scripts/build": "2.0.1"
|
|
57
|
+
"websocket": "^1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"devcert": "^1.0.0",
|