Skip to content

Commit 1164300

Browse files
committed
fixup! Replace fs-extra with fs.promises
1 parent d5fb9bb commit 1164300

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node/cli.ts

+2
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ export async function readConfigFile(configPath?: string): Promise<ConfigArgs> {
509509
}
510510
}
511511

512+
await fs.mkdir(path.dirname(configPath), { recursive: true })
513+
512514
try {
513515
await fs.writeFile(configPath, await defaultConfigFile(), {
514516
flag: "wx", // wx means to fail if the path exists.

0 commit comments

Comments
 (0)