@modern-js/server 2.40.0 → 2.40.1-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.
|
@@ -53,7 +53,11 @@ const enableRegister = (projectRoot, config) => {
|
|
|
53
53
|
"./shared"
|
|
54
54
|
];
|
|
55
55
|
const TS_CONFIG_FILENAME = `tsconfig.json`;
|
|
56
|
-
|
|
56
|
+
let tsconfigPath = import_path.default.resolve(projectRoot, TS_CONFIG_FILENAME);
|
|
57
|
+
const serverTsconfigPath = import_path.default.resolve(projectRoot, "tsconfig.server.json");
|
|
58
|
+
if (import_utils.fs.existsSync(serverTsconfigPath)) {
|
|
59
|
+
tsconfigPath = serverTsconfigPath;
|
|
60
|
+
}
|
|
57
61
|
const isTsProject = import_utils.fs.existsSync(tsconfigPath);
|
|
58
62
|
const existTsNode = checkDep("ts-node", [
|
|
59
63
|
projectRoot
|
|
@@ -24,6 +24,10 @@ var enableRegister = function(projectRoot, config) {
|
|
|
24
24
|
];
|
|
25
25
|
var TS_CONFIG_FILENAME = "tsconfig.json";
|
|
26
26
|
var tsconfigPath = path.resolve(projectRoot, TS_CONFIG_FILENAME);
|
|
27
|
+
var serverTsconfigPath = path.resolve(projectRoot, "tsconfig.server.json");
|
|
28
|
+
if (fs.existsSync(serverTsconfigPath)) {
|
|
29
|
+
tsconfigPath = serverTsconfigPath;
|
|
30
|
+
}
|
|
27
31
|
var isTsProject = fs.existsSync(tsconfigPath);
|
|
28
32
|
var existTsNode = checkDep("ts-node", [
|
|
29
33
|
projectRoot
|
|
@@ -20,7 +20,11 @@ const enableRegister = (projectRoot, config) => {
|
|
|
20
20
|
"./shared"
|
|
21
21
|
];
|
|
22
22
|
const TS_CONFIG_FILENAME = `tsconfig.json`;
|
|
23
|
-
|
|
23
|
+
let tsconfigPath = path.resolve(projectRoot, TS_CONFIG_FILENAME);
|
|
24
|
+
const serverTsconfigPath = path.resolve(projectRoot, "tsconfig.server.json");
|
|
25
|
+
if (fs.existsSync(serverTsconfigPath)) {
|
|
26
|
+
tsconfigPath = serverTsconfigPath;
|
|
27
|
+
}
|
|
24
28
|
const isTsProject = fs.existsSync(tsconfigPath);
|
|
25
29
|
const existTsNode = checkDep("ts-node", [
|
|
26
30
|
projectRoot
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.40.0",
|
|
18
|
+
"version": "2.40.1-alpha.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"path-to-regexp": "^6.2.0",
|
|
48
48
|
"ws": "^8.2.0",
|
|
49
49
|
"axios": "^1.2.1",
|
|
50
|
-
"@modern-js/prod-server": "2.40.0",
|
|
51
|
-
"@modern-js/server-utils": "2.40.0",
|
|
52
|
-
"@modern-js/types": "2.40.0",
|
|
53
50
|
"@modern-js/utils": "2.40.0",
|
|
54
|
-
"@modern-js/runtime-utils": "2.40.0"
|
|
51
|
+
"@modern-js/runtime-utils": "2.40.0",
|
|
52
|
+
"@modern-js/types": "2.40.0",
|
|
53
|
+
"@modern-js/prod-server": "2.40.0",
|
|
54
|
+
"@modern-js/server-utils": "2.40.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/connect-history-api-fallback": "^1.3.5",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"typescript": "^5",
|
|
67
67
|
"webpack": "^5.88.1",
|
|
68
68
|
"websocket": "^1",
|
|
69
|
-
"@modern-js/server-core": "2.40.0",
|
|
70
69
|
"@scripts/build": "2.40.0",
|
|
70
|
+
"@modern-js/server-core": "2.40.0",
|
|
71
71
|
"@scripts/jest-config": "2.40.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|