cz-cli
cz-cli copied to clipboard
chore: replace fs-extra with native node:fs
Summary
- Replace
fs-extradependency with nativenode:fsequivalents - Node.js has supported
fs.mkdir({ recursive: true }),fs.rmSync, andfs.cpSyncnatively since v16, which is well within the project's engine requirement of>= 12 - Reduces dependency count and install footprint
Changes
src/commitizen/commit.js: ReplaceensureDir()from fs-extra with nativefs.mkdir()with{ recursive: true }callbacktest/tools/clean.js: Replacefs.removeSync()withfs.rmSync(),fs.copySync()withfs.cpSync(), using nativefsimportpackage.json: Removefs-extrafrom dependencies
Testing
- All 50 existing tests pass
- Coverage thresholds met (statements 80%, branches 80%, functions 80%, lines 80%)
Part of the e18e ecosystem cleanup.