saaspegasus/django-skills

upgrade-js-deps

Upgrade JavaScript dependencies using npm-check-updates, then run post-upgrade checks to ensure nothing is broken.

Voir la source

Mode d’emploi

  1. Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
  2. Consultez le document original pour les outils, identifiants et environnements requis.
  3. Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/saaspegasus/django-skills --skill upgrade-js-deps

Avant de commencer

  • L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
  • Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Your task

Upgrade all JavaScript dependencies and verify nothing is broken.

Step 1: Check for available upgrades

Run npx npm-check-updates to see what upgrades are available. Review the output and present the list to the user.

Step 2: Update package.json

Run npx npm-check-updates -u to update package.json with the new versions.

Step 3: Install updated dependencies

Run make npm-install to install the upgraded dependencies and update package-lock.json.

Step 4: Run post-upgrade checks

Run these checks sequentially, stopping if any step fails:

  1. TypeScript type checking: Run make npm-type-check and report any new type errors.
  2. Build: Run make npm-build to verify the production build still works.
  3. Tests: Run make test to verify the test suite still passes.

Step 5: Summarize and commit

Summarize what was done:

  • Which packages were upgraded (notable version changes)
  • Whether any type errors were introduced
  • Whether the build succeeded
  • Whether all tests passed
  • Any issues that need manual attention

If there were failures, present the issues and ask how the user wants to proceed.

If everything passed, ask the user if they'd like to commit the changes. If yes, commit using the /commit skill.