turbo
a71686ae - feat: Add production flag to prune command

Commit
2 days ago
feat: Add production flag to prune command This commit introduces a `--production` flag to the `prune` command, allowing users to exclude devDependencies from the pruned output. This is useful for reducing the size of the output when only production dependencies are needed. The changes include: - Adding the `production` flag to the `prune` command arguments. - Modifying the `Prune::new` constructor to accept the `production` flag. - Updating the `PackageGraph::transitive_closure` to support filtering by dependency type. - Adding a new `transitive_closure_production` method to `PackageGraph` for production-only closure. - Updating `Dependencies::new` to correctly parse and store dependency types. - Adding a test case for `transitive_closure_production`. Co-authored-by: anthony.shew <anthony.shew@vercel.com>
Author
Parents
Loading