es-tooling / ecosystem-cleanup

A place to keep track of ongoing efforts to clean up the JS ecosystem
404 stars 2 forks source link

Migrate `cpy` to `node:fs` #124

Open ziebam opened 1 month ago

ziebam commented 1 month ago

I noticed it in https://github.com/semantic-release/github/blob/7d64dbbc83496db2fef0a4fb419a554106e226a6/package.json#L45, haven't had the chance to check other projects yet. A few reasons:

  1. node:fs is sufficient for modern Node versions.
  2. cpy pulls in relatively many transitive dependencies, including is-number.
  3. The author himself recommends against using the package. image
Namchee commented 1 month ago

Note: cpy is only used for devDependencies here