@tsed/barrels 5.3.1 → 5.4.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.
- package/bin/barrels.js +7 -2
- package/package.json +1 -1
- package/readme.md +1 -1
package/bin/barrels.js
CHANGED
|
@@ -53,9 +53,14 @@ async function build() {
|
|
|
53
53
|
.map((path) => `!${path}`)
|
|
54
54
|
.concat(directory.map((path) => `!${path}/index.ts`));
|
|
55
55
|
|
|
56
|
-
const
|
|
56
|
+
const directories = await globby(directory, {
|
|
57
|
+
cwd: process.cwd(),
|
|
58
|
+
onlyDirectories: true
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
const promises = directories
|
|
57
62
|
.map(async (directory) => {
|
|
58
|
-
const baseIndex = join(process.cwd(), directory);
|
|
63
|
+
const baseIndex = join(process.cwd(), directory?.path ?? directory);
|
|
59
64
|
|
|
60
65
|
const files = await globby([
|
|
61
66
|
"**/*.ts",
|
package/package.json
CHANGED