@metasession.co/devaudit-plugin-prisma
v0.1.76
Published
Prisma migration deploy hooks + status commands for DevAudit-onboarded node consumers.
Readme
devaudit-plugin-prisma
First-party DevAudit plugin: Prisma migration deploy hooks and status helpers for Node consumers.
What it adds
When loaded, this plugin contributes:
Commands
devaudit prisma migrate-status— shells out tonpx prisma migrate statusin the consumer project; warns if there is noprisma/schema.prisma.devaudit prisma pending— lists migration directories underprisma/migrations/. Emits aprisma-migrationsplugin event with the count.
Lifecycle hooks
afterUpdate— when the consumer has aprisma/schema.prisma, prints a friendly reminder to runnpx prisma migrate deployafter deploy.onDoctor— checks that bothprisma/schema.prismaandprisma/migrations/are present; warns if one is missing.
Install
devaudit plugin install @metasession.co/devaudit-plugin-prismaThe plugin is published on npm; the CLI installs it from there. The source also lives in-tree under plugins/devaudit-plugin-prisma/ for first-party development.
Pre-release / from-source install (against a Git tag or commit) remains available:
devaudit plugin install https://github.com/metasession-dev/DevAudit-Installer.git#plugins/devaudit-plugin-prismaCompatibility
| | |
|---|---|
| SDK apiVersion | 1 |
| Node | >=22 |
| Targets | Any Node consumer with prisma/ artefacts. Skips silently in projects without them. |
Tests
npm install --legacy-peer-deps # plugin-sdk must be built first
npm run build
npm test9 vitest cases cover both commands and both hooks against empty, schema-only, and schema+migrations fixtures.
