Programmatic API for managing npm organization memberships and roles
74
{
"context": "Evaluates how well the solution orchestrates npm CLI commands for dependency cleanup. The focus is on correct use of npm uninstall, prune, and rebuild to align node_modules with package manifests. Points reflect command choices, flags, and ordering that ensure a clean, rebuilt install tree.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uninstall command",
"description": "Uses `npm uninstall` (or `npm remove`) with the project cwd to drop requested packages and update both package.json and lockfile.",
"max_score": 30
},
{
"name": "Dev handling",
"description": "When dev dependencies are in scope, passes the appropriate dev flag (e.g., `--save-dev`) to the uninstall command so devDependencies are updated correctly.",
"max_score": 15
},
{
"name": "Prune extraneous",
"description": "Runs `npm prune` after removals to delete modules not listed in the manifest, ensuring node_modules matches dependencies.",
"max_score": 25
},
{
"name": "Rebuild usage",
"description": "Invokes `npm rebuild` to recompile installed modules, targeting specific packages when a subset is provided and skipping when disabled.",
"max_score": 20
},
{
"name": "Ordered execution",
"description": "Ensures the sequence is uninstall -> prune -> rebuild within the same working directory so later steps operate on updated state.",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-libnpmorgdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10