@tsed/barrels 6.1.3 → 6.1.5

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 CHANGED
@@ -4,6 +4,7 @@ import {getConfig} from "./get-config.js";
4
4
 
5
5
  async function build() {
6
6
  const {directory = ["./src"], exclude = ["**/__mock__", "**/__mocks__", "**/*.spec.ts", "**/*.benchmark.ts"]} = await getConfig();
7
+
7
8
  await generateBarrels({exclude, directory, cwd: process.cwd()});
8
9
  }
9
10
 
@@ -1,5 +1,6 @@
1
1
  import {writeFile} from "node:fs/promises";
2
2
  import path, {dirname, join} from "node:path";
3
+ import {join as joinPosix} from "node:path/posix";
3
4
 
4
5
  import {globby} from "globby";
5
6
 
@@ -28,7 +29,7 @@ export async function generateBarrels({exclude, directory, cwd}) {
28
29
  const directories = (
29
30
  await globby(
30
31
  directory.map((d) => {
31
- return join(d, "*");
32
+ return joinPosix(d, "*");
32
33
  }),
33
34
  {
34
35
  cwd
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/barrels",
3
3
  "description": "A simple tool to generate barrels for your TypeScript project",
4
- "version": "6.1.3",
4
+ "version": "6.1.5",
5
5
  "type": "module",
6
6
  "bin": "bin/barrels.js",
7
7
  "keywords": [