1.12.1 • Published 2 years ago

@trumbitta/nx-plugin-unused-deps v1.12.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Look for unused NPM dependencies in a Nx monorepo

NPM Version License

Check the dependency graph of your monorepo, looking for unused NPM packages.

🧐 What is it?

It's a plugin for cross checking the dependency graph of a Nx monorepo with its package.json and finding seemingly unused NPM packages.

Add it to your postinstall script, wire it up into the linting phase of your CI pipeline, run it manually every once in a while... or let me know how you use it!

💡 How to install

npm install -D @trumbitta/nx-plugin-unused-deps

🧰 Usage

Check for unused deps

nx generate @trumbitta/nx-plugin-unused-deps:check --no-interactive

Log to JSON

nx generate @trumbitta/nx-plugin-unused-deps:check --json --no-interactive

Fix the package.json

⛔️ Heads up!

Use this command only when you are sure the unused deps are really unused. There could be something the dependency graph didn't catch for whatever reason.

nx generate @trumbitta/nx-plugin-unused-deps:check --fix --no-interactive

🙏 Acknowledgements

Original code by Philip Fulcher @PhilipJFulcher.

1.12.1

2 years ago

1.12.0

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.10.0

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago