Package Exports
- @prisma/client
- @prisma/client/generator-build
- @prisma/client/runtime
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@prisma/client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@prisma/client
This package is being used by prisma2
.
Contributing
Getting a local test version running
- Clone this repo
cd prisma-client-js/packages/photon
yarn
ts-node fixtures/generate.ts ./fixtures/blog/ --skip-transpile
cd fixtures/blog
prisma2 migrate save --name init --experimental && prisma2 migrate up --experimental
ts-node main.ts
Working on code generation
If you have your local blog fixture running, you can now do changes to TSClient.ts
and re-execute npx ts-node fixtures/generate.ts ./fixtures/blog/
.
When doing changes and working on a fixture use yarn build && rm -rf fixtures/blog/node_modules/ && ts-node fixtures/generate.ts fixtures/blog
Working with the runtime
If you want to use the local runtime in the blog fixture, run
ts-node fixtures/generate.ts ./fixtures/blog/ --local-runtime
Changes to query.ts
will then be reflected when running fixtures/blog/main.ts