Skip to content

Commit a5ed65d

Browse files
committed
QA: Fix formatting on windows OS
1 parent 7a51251 commit a5ed65d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

prettier.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { readFileSync } from "fs";
2+
import { fileURLToPath } from "url";
23

3-
const basePath = new URL("./packages/pluggable-widgets-tools/configs/prettier.base.json", import.meta.url).pathname;
4+
const basePath = fileURLToPath(
5+
new URL("./packages/pluggable-widgets-tools/configs/prettier.base.json", import.meta.url)
6+
);
47
const base = JSON.parse(readFileSync(basePath));
58

69
export default {

0 commit comments

Comments
 (0)