Skip to content

chore: replace mkdirp with native fs.mkdirSync#3267

Open
roli-lpci wants to merge 1 commit intoWebThingsIO:masterfrom
roli-lpci:chore/remove-mkdirp
Open

chore: replace mkdirp with native fs.mkdirSync#3267
roli-lpci wants to merge 1 commit intoWebThingsIO:masterfrom
roli-lpci:chore/remove-mkdirp

Conversation

@roli-lpci
Copy link

Summary

  • Replace mkdirp.sync() with fs.mkdirSync(path, { recursive: true }) in src/migrate.ts
  • Remove mkdirp and @types/mkdirp dependencies
  • fs.mkdirSync with recursive: true has been stable since Node.js 10.12 (2018)

Changes

  • src/migrate.ts — 6 mkdirp.sync() calls → fs.mkdirSync() with { recursive: true }
  • package.json — removed mkdirp (dep) and @types/mkdirp (devDep)
  • package-lock.json — regenerated

Testing

  • TypeScript compiles clean with project tsconfig (zero errors in migrate.ts)
  • All existing behavior preserved — existsSync guards kept for behavioral parity

Replace `mkdirp.sync()` calls with `fs.mkdirSync(path, { recursive: true })`,
available since Node.js 10.12. Removes `mkdirp` and `@types/mkdirp` dependencies.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant