Skip to content

Commit c9d5d23

Browse files
committed
chore: fix commitlint
1 parent 98a36a3 commit c9d5d23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commitlint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { readdir } from 'node:fs/promises';
2+
import { fileURLToPath } from 'node:url';
23

34
const normalizeWorkspace = async x => {
4-
const ents = await readdir(new URL(x, import.meta.url).pathname, { withFileTypes: true });
5+
const ents = await readdir(fileURLToPath(new URL(x, import.meta.url)), { withFileTypes: true });
56
return ents
67
.filter(ent => ent.isDirectory())
78
.map(ent => ent.name.replace('pf-', ''));

0 commit comments

Comments
 (0)