Skip to content

Commit

Permalink
chore(deps): bump pnpm from v8 to v9 (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Nov 16, 2024
1 parent 0a5720e commit 79940ce
Show file tree
Hide file tree
Showing 3 changed files with 6,078 additions and 4,760 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"engines": {
"node": ">=16.18.1"
},
"packageManager": "pnpm@8.15.4",
"packageManager": "pnpm@9.13.2",
"lint-staged": {
"*.{ts,tsx,js,jsx,mjs,cjs}": [
"biome check . --apply --organize-imports-enabled=false --no-errors-on-unmatched"
Expand Down
11 changes: 7 additions & 4 deletions packages/plugin-rss/src/internals/node.ts
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);
}
Loading

0 comments on commit 79940ce

Please sign in to comment.