Zum Inhalt springen
Kitbay

record-upgrade-instructions

Apache-2.0Aktualisiert am 11. Nov. 202647.664GitHub-Sterne

A contributor skill in the Prisma ORM repository for pull requests that make breaking changes in Prisma 8.

Was der Skill vermittelt

A contributor skill in the Prisma ORM repository for pull requests that make breaking changes in Prisma 8. The author adds an upgrade instruction fragment for each affected audience, app code under examples or extension code under extensions and target facades, so that Prisma's published upgrade skills can later apply the same changes for users. Each fragment lists changes with an optional regular expression that detects affected files and an optional Node script that rewrites them, with rules for anchoring patterns and testing scripts. Before merging, the instructions are applied to the code as it was before the pull request and must reproduce its changes and pass the test suite, and a coverage check runs in CI.

Funktionen

  • Write upgrade instructions for a breaking change
  • Add detection patterns and codemod scripts
  • Validate instructions by replaying them on old code