@tsed/components-scan 8.43.1 → 8.43.2
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/lib/esm/importFiles.js +3 -1
- package/package.json +7 -7
package/lib/esm/importFiles.js
CHANGED
|
@@ -2,7 +2,9 @@ import { pathToFileURL } from "node:url";
|
|
|
2
2
|
import { cleanGlobPatterns } from "./cleanGlobPatterns.js";
|
|
3
3
|
export async function importFiles(patterns, exclude) {
|
|
4
4
|
const { globby } = await import("globby");
|
|
5
|
-
const
|
|
5
|
+
const globs = cleanGlobPatterns(patterns, exclude);
|
|
6
|
+
// globby >= 15 no longer applies absolute negated patterns, they must be given through the `ignore` option
|
|
7
|
+
const files = await globby(globs.filter((glob) => !glob.startsWith("!")), { ignore: globs.filter((glob) => glob.startsWith("!")).map((glob) => glob.slice(1)) });
|
|
6
8
|
const symbols = [];
|
|
7
9
|
for (const file of files.sort((a, b) => (a < b ? -1 : 1))) {
|
|
8
10
|
if (!file.endsWith(".d.ts")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/components-scan",
|
|
3
|
-
"version": "8.43.
|
|
3
|
+
"version": "8.43.2",
|
|
4
4
|
"description": "Components scan utilities for Ts.ED Framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tsed/normalize-path": "8.43.
|
|
27
|
-
"globby": "
|
|
26
|
+
"@tsed/normalize-path": "8.43.2",
|
|
27
|
+
"globby": "16.2.4",
|
|
28
28
|
"tslib": ">=2.7.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tsed/barrels": "8.43.
|
|
32
|
-
"@tsed/core": "8.43.
|
|
33
|
-
"@tsed/di": "8.43.
|
|
34
|
-
"@tsed/typescript": "8.43.
|
|
31
|
+
"@tsed/barrels": "8.43.2",
|
|
32
|
+
"@tsed/core": "8.43.2",
|
|
33
|
+
"@tsed/di": "8.43.2",
|
|
34
|
+
"@tsed/typescript": "8.43.2",
|
|
35
35
|
"typescript": "6.0.2",
|
|
36
36
|
"vitest": "4.1.4"
|
|
37
37
|
},
|