seems like fs.rmdir(path, { recursive: true }) is deprecated
replacing it for fs.rm(path, { recursive: true }) fixes it
Reproduction
go to any playground in /apps/
run the init command
pnpm scn init
run the reset command
pnpm run reset
Logs
pnpm run reset
> playground-ts@0.0.1 reset /home/omen/shadcn-svelte/apps/playground-ts
> node ./reset.js
(node:28377) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
Describe the bug
seems like
fs.rmdir(path, { recursive: true })
is deprecatedreplacing it for
fs.rm(path, { recursive: true })
fixes itReproduction
go to any playground in /apps/
run the init command
pnpm scn init
run the reset command
pnpm run reset
Logs
System Info
Severity
annoyance