Loading...
Loading...
Organize and clean up scripts and dependencies in package.json. Use this for requests such as 'I want to clean up package.json', 'I want to organize scripts', or 'I want to remove unused dependencies'. Specifically, it targets the following: (1) Delete or integrate redundant scripts (aliases/passthroughs), (2) Explicitize implicit lifecycle hooks (pre/post), (3) Unify script naming conventions, (4) Detect and remove unused dependency packages, (5) Update documents and CI following script name changes, (6) Regenerate lock files after removing dependencies.
npx skill4agent add nimiusrd/agent-skills cleanup-package-jsonpackage.json"build": "npm run build:app""lint": "eslint"preXpostX"prebuild": "npm run codegen"e2etest:*dependenciesdevDependenciessrc/lib/app/package.json| Pattern | Before Conversion | After Conversion |
|---|---|---|
| Alias Integration | | |
| Pre-hook Explicitization | | |
| Passthrough Removal | | Remove (either call |
| Naming Unification | | |
npm runyarnpnpm runpackage.jsonREADME.mdCLAUDE.mdAGENTS.md.github/workflows/docs/node_modules# npm
rm -rf node_modules package-lock.json && npm install
# yarn
rm -rf node_modules yarn.lock && yarn install
# pnpm
rm -rf node_modules pnpm-lock.yaml && pnpm installpreXdependencies