Skip to content

馃挕 Nx plugin: read generators and executors from package.json聽#2117

Closed

Description

@drewbitt

Suggest an idea for Knip

// package.json
{ "generators": "./generators.json" }

// generators.json
{ "generators": { "foo": { "factory": "./src/foo/generator" } } }

knip reports tools/my-plugin/src/foo/generator.ts as unused. Nx runs it on nx g my-plugin:foo, and @nx/plugin creates this layout for local plugins.

Could the plugin add each factory (and each implementation in executors) as an entry?

knip 6.39.0, nx 23.2.1 路 repro: https://github.com/drewbitt/knip-repros/tree/main/nx-generators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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