We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb70f39 + c9d5d23 commit 7ce25edCopy full SHA for 7ce25ed
1 file changed
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