@modern-js/server-utils 2.60.0 → 2.60.1
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.
|
@@ -44,7 +44,7 @@ const readTsConfigByFile = (tsConfigFile, tsInstance) => {
|
|
|
44
44
|
projectReferences
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
-
const copyFiles = async (from, to, appDirectory
|
|
47
|
+
const copyFiles = async (from, to, appDirectory) => {
|
|
48
48
|
if (await import_utils.fs.pathExists(from)) {
|
|
49
49
|
const relativePath = import_path.default.relative(appDirectory, from);
|
|
50
50
|
const targetDir = import_path.default.join(to, relativePath);
|
|
@@ -52,7 +52,7 @@ const copyFiles = async (from, to, appDirectory, tsconfigPath) => {
|
|
|
52
52
|
filter: (src) => ![
|
|
53
53
|
".ts",
|
|
54
54
|
".js"
|
|
55
|
-
].includes(import_path.default.extname(src)) && src
|
|
55
|
+
].includes(import_path.default.extname(src)) && src.endsWith("tsconfig.json")
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
};
|
|
@@ -106,7 +106,7 @@ const compileByTs = async (appDirectory, config, compileOptions) => {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
for (const source of sourceDirs) {
|
|
109
|
-
await copyFiles(source, distDir, appDirectory
|
|
109
|
+
await copyFiles(source, distDir, appDirectory);
|
|
110
110
|
}
|
|
111
111
|
import_utils.logger.info(`Ts compile succeed`);
|
|
112
112
|
};
|
|
@@ -16,7 +16,7 @@ var readTsConfigByFile = function(tsConfigFile, tsInstance) {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
var copyFiles = function() {
|
|
19
|
-
var _ref = _async_to_generator(function(from, to, appDirectory
|
|
19
|
+
var _ref = _async_to_generator(function(from, to, appDirectory) {
|
|
20
20
|
var relativePath, targetDir;
|
|
21
21
|
return _ts_generator(this, function(_state) {
|
|
22
22
|
switch (_state.label) {
|
|
@@ -40,7 +40,7 @@ var copyFiles = function() {
|
|
|
40
40
|
return ![
|
|
41
41
|
".ts",
|
|
42
42
|
".js"
|
|
43
|
-
].includes(path.extname(src)) && src
|
|
43
|
+
].includes(path.extname(src)) && src.endsWith("tsconfig.json");
|
|
44
44
|
}
|
|
45
45
|
})
|
|
46
46
|
];
|
|
@@ -54,7 +54,7 @@ var copyFiles = function() {
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
-
return function copyFiles2(from, to, appDirectory
|
|
57
|
+
return function copyFiles2(from, to, appDirectory) {
|
|
58
58
|
return _ref.apply(this, arguments);
|
|
59
59
|
};
|
|
60
60
|
}();
|
|
@@ -133,7 +133,7 @@ var compileByTs = function() {
|
|
|
133
133
|
source = _step.value;
|
|
134
134
|
return [
|
|
135
135
|
4,
|
|
136
|
-
copyFiles(source, distDir, appDirectory
|
|
136
|
+
copyFiles(source, distDir, appDirectory)
|
|
137
137
|
];
|
|
138
138
|
case 3:
|
|
139
139
|
_state.sent();
|
|
@@ -11,7 +11,7 @@ const readTsConfigByFile = (tsConfigFile, tsInstance) => {
|
|
|
11
11
|
projectReferences
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
const copyFiles = async (from, to, appDirectory
|
|
14
|
+
const copyFiles = async (from, to, appDirectory) => {
|
|
15
15
|
if (await fs.pathExists(from)) {
|
|
16
16
|
const relativePath = path.relative(appDirectory, from);
|
|
17
17
|
const targetDir = path.join(to, relativePath);
|
|
@@ -19,7 +19,7 @@ const copyFiles = async (from, to, appDirectory, tsconfigPath) => {
|
|
|
19
19
|
filter: (src) => ![
|
|
20
20
|
".ts",
|
|
21
21
|
".js"
|
|
22
|
-
].includes(path.extname(src)) && src
|
|
22
|
+
].includes(path.extname(src)) && src.endsWith("tsconfig.json")
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
};
|
|
@@ -73,7 +73,7 @@ const compileByTs = async (appDirectory, config, compileOptions) => {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
for (const source of sourceDirs) {
|
|
76
|
-
await copyFiles(source, distDir, appDirectory
|
|
76
|
+
await copyFiles(source, distDir, appDirectory);
|
|
77
77
|
}
|
|
78
78
|
logger.info(`Ts compile succeed`);
|
|
79
79
|
};
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.60.
|
|
18
|
+
"version": "2.60.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"@babel/preset-typescript": "^7.24.7",
|
|
39
39
|
"@swc/helpers": "0.5.13",
|
|
40
40
|
"babel-plugin-transform-typescript-metadata": "^0.3.2",
|
|
41
|
-
"@modern-js/babel-
|
|
42
|
-
"@modern-js/babel-
|
|
43
|
-
"@modern-js/babel-
|
|
44
|
-
"@modern-js/utils": "2.60.
|
|
41
|
+
"@modern-js/babel-plugin-module-resolver": "2.60.1",
|
|
42
|
+
"@modern-js/babel-compiler": "2.60.1",
|
|
43
|
+
"@modern-js/babel-preset": "2.60.1",
|
|
44
|
+
"@modern-js/utils": "2.60.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/babel__core": "^7.20.5",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"jest": "^29",
|
|
51
51
|
"ts-jest": "^29.1.0",
|
|
52
52
|
"typescript": "^5",
|
|
53
|
-
"@modern-js/server-core": "2.60.
|
|
54
|
-
"@scripts/build": "2.60.
|
|
55
|
-
"@scripts/jest-config": "2.60.
|
|
53
|
+
"@modern-js/server-core": "2.60.1",
|
|
54
|
+
"@scripts/build": "2.60.1",
|
|
55
|
+
"@scripts/jest-config": "2.60.1"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"publishConfig": {
|