@tsed/components-scan 7.0.0-beta.11 → 7.0.0-beta.12
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/cjs/importFiles.js +2 -10
- package/lib/cjs/importFiles.js.map +1 -1
- package/lib/esm/importFiles.js +2 -10
- package/lib/esm/importFiles.js.map +1 -1
- package/package.json +7 -4
- package/readme.md +2 -1
package/lib/cjs/importFiles.js
CHANGED
|
@@ -33,16 +33,8 @@ async function importFiles(patterns, exclude) {
|
|
|
33
33
|
for (const file of files.sort((a, b) => (a < b ? -1 : 1))) {
|
|
34
34
|
if (!file.endsWith(".d.ts")) {
|
|
35
35
|
// prevent .d.ts import if the global pattern isn't correctly configured
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Object.keys(exports).forEach((key) => symbols.push(exports[key]));
|
|
39
|
-
}
|
|
40
|
-
catch (er) {
|
|
41
|
-
// istanbul ignore next
|
|
42
|
-
console.error(er);
|
|
43
|
-
// istanbul ignore next
|
|
44
|
-
process.exit(1);
|
|
45
|
-
}
|
|
36
|
+
const exports = await (0, core_1.importPackage)(file);
|
|
37
|
+
Object.keys(exports).forEach((key) => symbols.push(exports[key]));
|
|
46
38
|
}
|
|
47
39
|
}
|
|
48
40
|
return symbols;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importFiles.js","sourceRoot":"","sources":["../../src/importFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,2DAAsD;AAE/C,KAAK,UAAU,WAAW,CAAC,QAA2B,EAAE,OAAiB;IAC9E,MAAM,EAAC,OAAO,EAAE,MAAM,EAAC,GAAG,wDAAa,QAAQ,GAAC,CAAC;IAEjD,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,IAAA,qCAAiB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IACjE,MAAM,OAAO,GAAU,EAAE,CAAC;IAE1B,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ent":["import {importPackage} from \"@tsed/core\";\nimport {cleanGlobPatterns} from \"./cleanGlobPatterns\";\n\nexport async function importFiles(patterns: string | string[], exclude: string[]): Promise<any[]> {\n const {default: globby} = await import(\"globby\");\n\n const files = await globby(cleanGlobPatterns(patterns, exclude));\n const symbols: any[] = [];\n\n for (const file of files.sort((a, b) => (a < b ? -1 : 1))) {\n if (!file.endsWith(\".d.ts\")) {\n // prevent .d.ts import if the global pattern isn't correctly configured\n const exports = await importPackage(file);\n Object.keys(exports).forEach((key) => symbols.push(exports[key]));\n }\n }\n\n return symbols;\n}\n"]}
|
package/lib/esm/importFiles.js
CHANGED
|
@@ -7,16 +7,8 @@ export async function importFiles(patterns, exclude) {
|
|
|
7
7
|
for (const file of files.sort((a, b) => (a < b ? -1 : 1))) {
|
|
8
8
|
if (!file.endsWith(".d.ts")) {
|
|
9
9
|
// prevent .d.ts import if the global pattern isn't correctly configured
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Object.keys(exports).forEach((key) => symbols.push(exports[key]));
|
|
13
|
-
}
|
|
14
|
-
catch (er) {
|
|
15
|
-
// istanbul ignore next
|
|
16
|
-
console.error(er);
|
|
17
|
-
// istanbul ignore next
|
|
18
|
-
process.exit(1);
|
|
19
|
-
}
|
|
10
|
+
const exports = await importPackage(file);
|
|
11
|
+
Object.keys(exports).forEach((key) => symbols.push(exports[key]));
|
|
20
12
|
}
|
|
21
13
|
}
|
|
22
14
|
return symbols;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importFiles.js","sourceRoot":"","sources":["../../src/importFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,QAA2B,EAAE,OAAiB;IAC9E,MAAM,EAAC,OAAO,EAAE,MAAM,EAAC,GAAG,MAAM,MAAM,CAAC,QA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AC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACnE;KACF;IAED,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import {importPackage} from \"@tsed/core\";\nimport {cleanGlobPatterns} from \"./cleanGlobPatterns\";\n\nexport async function importFiles(patterns: string | string[], exclude: string[]): Promise<any[]> {\n const {default: globby} = await import(\"globby\");\n\n const files = await globby(cleanGlobPatterns(patterns, exclude));\n const symbols: any[] = [];\n\n for (const file of files.sort((a, b) => (a < b ? -1 : 1))) {\n if (!file.endsWith(\".d.ts\")) {\n // prevent .d.ts import if the global pattern isn't correctly configured\n const exports = await importPackage(file);\n Object.keys(exports).forEach((key) => symbols.push(exports[key]));\n }\n }\n\n return symbols;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/components-scan",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.12",
|
|
4
4
|
"description": "Components scan utilities for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"tslib": "2.3.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tsed/core": "7.0.0-beta.
|
|
30
|
-
"@tsed/di": "7.0.0-beta.
|
|
29
|
+
"@tsed/core": "7.0.0-beta.12",
|
|
30
|
+
"@tsed/di": "7.0.0-beta.12",
|
|
31
31
|
"@types/normalize-path": "^3.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {},
|
|
@@ -37,5 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/tsedio/tsed/tree/beta/packages/third-parties/components-scan",
|
|
39
39
|
"author": "Romain Lenzotti",
|
|
40
|
-
"license": "MIT"
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"tag": "beta"
|
|
43
|
+
}
|
|
41
44
|
}
|
package/readme.md
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
[](https://badge.fury.io/js/%40tsed%2Fcommon)
|
|
12
12
|
[](https://github.com/semantic-release/semantic-release)
|
|
13
13
|
[](https://github.com/prettier/prettier)
|
|
14
|
-
[](https://github.com/sponsors/romakita)
|
|
15
|
+
[](https://opencollective.com/tsed)
|
|
15
16
|
|
|
16
17
|
</div>
|
|
17
18
|
|