/prisma-local-client-extension-dev

Example setup for testing and developing a Prisma Client extension locally

Primary LanguageTypeScript

Example setup to test and develop a Prisma Client extension locally

Build the extension first

cd simple-ext
pnpm install
pnpm run build
pnpm pack
ls -l

Install the extension in the example app

cd ../my-app
pnpm install
pnpm exec prisma db push --force-reset
pnpm exec prisma generate
pnpm exec prisma -v

Test the extension

ts-node src/index.ts
pnpm exec tsc