-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump pnpm from v8 to v9 (#1584)
- Loading branch information
1 parent
0a5720e
commit 79940ce
Showing
3 changed files
with
6,078 additions
and
4,760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { mkdir, writeFile as _writeFile } from 'node:fs/promises'; | ||
import { promises } from 'node:fs'; | ||
import * as NodePath from 'node:path'; | ||
|
||
export async function writeFile(path: string, content: string | Buffer) { | ||
export async function writeFile( | ||
path: string, | ||
content: Parameters<typeof promises.writeFile>[1], | ||
) { | ||
const dir = NodePath.dirname(path); | ||
await mkdir(dir, { mode: 0o755, recursive: true }); | ||
return _writeFile(path, content); | ||
await promises.mkdir(dir, { mode: 0o755, recursive: true }); | ||
return promises.writeFile(path, content); | ||
} |
Oops, something went wrong.