Exports util functions to clean up node_modules
83
Quality
Pending
Does it follow best practices?
Impact
83%
1.09xAverage score across 10 eval scenarios
Create a CLI tool that helps developers configure and test different dependency resolution strategies in pnpm projects.
Package managers need to decide which version of a dependency to install when multiple versions could satisfy the requirements. Different resolution strategies can lead to different dependency graphs, affecting reproducibility, security, and compatibility.
Build a Node.js CLI tool called resolution-config with the following functionality:
The tool should support setting the resolution mode to one of three strategies:
The command format should be:
node resolution-config.js set-mode <mode>Where <mode> is one of: highest, time-based, or lowest-direct.
When using time-based resolution, the tool should allow configuring:
The command format should be:
node resolution-config.js configure-time --registry-time <boolean> --min-age <days>Both flags are optional. If not provided, registry-time defaults to true and min-age defaults to 0.
The tool should display the current resolution configuration:
node resolution-config.js showThis should output the current settings in a readable format.
The tool should allow clearing all resolution-related configuration:
node resolution-config.js clear.npmrc file in the current directory.npmrc file exists, create oneProvides package management with configurable resolution strategies.
@generates
Install with Tessl CLI
npx tessl i tessl/npm-pnpm--modules-cleanerdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10