generator icon indicating copy to clipboard operation
generator copied to clipboard

Replace deprecated `fs.extra` with `fs-extra` in generator and hooks packages

Open Amythystx opened this issue 9 months ago • 2 comments

Bug: deprecated dependency used in core packages

The monorepo currently depends on [email protected], which is deprecated and no longer commonly maintained. The actively maintained package is fs-extra.

I verified usage locally with: npm ls fs.extra

Locations where fs.extra is used Production code:

apps/generator/lib/generator.js
apps/generator/lib/hooksRegistry.js

Test code:

apps/generator/test/cli.js
apps/generator/test/generator.test.js

Dependency declarations:

apps/generator/package.json
apps/hooks/package.json

Why this matters:

  • deprecated dependency risk
  • potential compatibility issues with modern Node versions
  • contributor confusion
  • ecosystem maintenance concern

Proposed solution:

  • replace fs.extra with fs-extra
  • update imports if needed
  • run tests to confirm no behavioral change

I’m happy to work on this if approved.

Amythystx avatar Feb 13 '26 03:02 Amythystx

we update old dependencies only if there are serious CVE reported for the dependency

thanks for reporting though

derberg avatar Mar 11 '26 14:03 derberg

Thanks for the clarification I understand the policy and appreciate the response.

Amythystx avatar Mar 11 '26 14:03 Amythystx