Skip to content

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

@wei123-web

Description

@wei123-web

Bug: deprecated dependency used in core packages

The monorepo currently depends on fs.extra@1.3.2, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions