We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a36a3 commit c9d5d23Copy full SHA for c9d5d23
commitlint.config.js
@@ -1,7 +1,8 @@
1
import { readdir } from 'node:fs/promises';
2
+import { fileURLToPath } from 'node:url';
3
4
const normalizeWorkspace = async x => {
- 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 });
6
return ents
7
.filter(ent => ent.isDirectory())
8
.map(ent => ent.name.replace('pf-', ''));
0 commit comments