@modern-js/app-tools 2.60.3-alpha.0 → 2.60.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -116,10 +116,13 @@ const registerCompiler = async (appDir, distDir, alias) => {
|
|
116
116
|
}
|
117
117
|
const tsConfigPaths = (await import("@modern-js/utils/tsconfig-paths")).default;
|
118
118
|
if (await import_utils.fs.pathExists(appDir)) {
|
119
|
-
tsConfigPaths.
|
120
|
-
|
121
|
-
|
122
|
-
|
119
|
+
const loaderRes = tsConfigPaths.loadConfig(appDir);
|
120
|
+
if (loaderRes.resultType === "success") {
|
121
|
+
tsConfigPaths.register({
|
122
|
+
baseUrl: absoluteBaseUrl || "./",
|
123
|
+
paths: tsPaths
|
124
|
+
});
|
125
|
+
}
|
123
126
|
}
|
124
127
|
};
|
125
128
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -38,7 +38,7 @@ var registerEsbuild = function() {
|
|
38
38
|
}();
|
39
39
|
var registerCompiler = function() {
|
40
40
|
var _ref = _async_to_generator(function(appDir, distDir, alias) {
|
41
|
-
var TS_CONFIG_FILENAME, tsconfigPath, isTsProject, aliasConfig, _aliasConfig_paths, paths, _aliasConfig_absoluteBaseUrl, absoluteBaseUrl, tsPaths, tsConfig, MODERN_NODE_LOADER, tsNode, tsNodeOptions, error, tsConfigPaths;
|
41
|
+
var TS_CONFIG_FILENAME, tsconfigPath, isTsProject, aliasConfig, _aliasConfig_paths, paths, _aliasConfig_absoluteBaseUrl, absoluteBaseUrl, tsPaths, tsConfig, MODERN_NODE_LOADER, tsNode, tsNodeOptions, error, tsConfigPaths, loaderRes;
|
42
42
|
return _ts_generator(this, function(_state) {
|
43
43
|
switch (_state.label) {
|
44
44
|
case 0:
|
@@ -166,10 +166,13 @@ var registerCompiler = function() {
|
|
166
166
|
];
|
167
167
|
case 11:
|
168
168
|
if (_state.sent()) {
|
169
|
-
tsConfigPaths.
|
170
|
-
|
171
|
-
|
172
|
-
|
169
|
+
loaderRes = tsConfigPaths.loadConfig(appDir);
|
170
|
+
if (loaderRes.resultType === "success") {
|
171
|
+
tsConfigPaths.register({
|
172
|
+
baseUrl: absoluteBaseUrl || "./",
|
173
|
+
paths: tsPaths
|
174
|
+
});
|
175
|
+
}
|
173
176
|
}
|
174
177
|
return [
|
175
178
|
2
|
@@ -83,10 +83,13 @@ const registerCompiler = async (appDir, distDir, alias) => {
|
|
83
83
|
}
|
84
84
|
const tsConfigPaths = (await import("@modern-js/utils/tsconfig-paths")).default;
|
85
85
|
if (await fs.pathExists(appDir)) {
|
86
|
-
tsConfigPaths.
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
const loaderRes = tsConfigPaths.loadConfig(appDir);
|
87
|
+
if (loaderRes.resultType === "success") {
|
88
|
+
tsConfigPaths.register({
|
89
|
+
baseUrl: absoluteBaseUrl || "./",
|
90
|
+
paths: tsPaths
|
91
|
+
});
|
92
|
+
}
|
90
93
|
}
|
91
94
|
};
|
92
95
|
export {
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.60.3
|
18
|
+
"version": "2.60.3",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -88,19 +88,19 @@
|
|
88
88
|
"mlly": "^1.6.1",
|
89
89
|
"pkg-types": "^1.1.0",
|
90
90
|
"std-env": "^3.7.0",
|
91
|
-
"@modern-js/
|
92
|
-
"@modern-js/plugin": "2.60.
|
93
|
-
"@modern-js/
|
94
|
-
"@modern-js/plugin-
|
95
|
-
"@modern-js/
|
96
|
-
"@modern-js/
|
97
|
-
"@modern-js/
|
98
|
-
"@modern-js/
|
99
|
-
"@modern-js/
|
100
|
-
"@modern-js/server-utils": "2.60.
|
101
|
-
"@modern-js/
|
102
|
-
"@modern-js/
|
103
|
-
"@modern-js/utils": "2.60.
|
91
|
+
"@modern-js/node-bundle-require": "2.60.3",
|
92
|
+
"@modern-js/plugin": "2.60.3",
|
93
|
+
"@modern-js/plugin-i18n": "2.60.3",
|
94
|
+
"@modern-js/plugin-data-loader": "2.60.3",
|
95
|
+
"@modern-js/rsbuild-plugin-esbuild": "2.60.3",
|
96
|
+
"@modern-js/prod-server": "2.60.3",
|
97
|
+
"@modern-js/server": "2.60.3",
|
98
|
+
"@modern-js/core": "2.60.3",
|
99
|
+
"@modern-js/server-core": "2.60.3",
|
100
|
+
"@modern-js/server-utils": "2.60.3",
|
101
|
+
"@modern-js/types": "2.60.3",
|
102
|
+
"@modern-js/uni-builder": "2.60.3",
|
103
|
+
"@modern-js/utils": "2.60.3"
|
104
104
|
},
|
105
105
|
"devDependencies": {
|
106
106
|
"@rsbuild/plugin-webpack-swc": "~1.0.3",
|
@@ -112,8 +112,8 @@
|
|
112
112
|
"tsconfig-paths": "^4.2.0",
|
113
113
|
"typescript": "^5",
|
114
114
|
"webpack": "^5.95.0",
|
115
|
-
"@scripts/jest-config": "2.60.
|
116
|
-
"@scripts/build": "2.60.
|
115
|
+
"@scripts/jest-config": "2.60.3",
|
116
|
+
"@scripts/build": "2.60.3"
|
117
117
|
},
|
118
118
|
"peerDependencies": {
|
119
119
|
"ts-node": "^10.7.0",
|