Package Exports
- @prisma/photon
- @prisma/photon/dist/runtime/utils/common
- @prisma/photon/generator-build
- @prisma/photon/package.json
- @prisma/photon/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/photon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@prisma/photon
This package is being used by prisma2.
Contributing
Getting a local test version running
- Clone this repo
cd photonjs/packages/photonyarnts-node fixtures/generate.ts ./fixtures/blog/ --skip-transpilecd fixtures/blogprisma2 lift save --name init && prisma2 lift upts-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-runtimeChanges to query.ts will then be reflected when running fixtures/blog/main.ts