@prisma/photon
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-preview019 • Public • Published

@prisma/photon

This package is being used by prisma2.

Contributing

Getting a local test version running

  1. Clone this repo
  2. cd photonjs/packages/photon
  3. yarn
  4. ts-node examples/generate.ts ./examples/blog/
  5. cd examples/blog
  6. prisma2 lift save --name init && prisma2 lift up
  7. ts-node main.ts

Working on code generation

If you have your local blog example running, you can now just do changes to TSClient.ts and re-execute npx ts-node examples/generate.ts ./examples/blog/.

Working with the runtime

If you want to use the local runtime in the blog example, just run

ts-node examples/generate.ts ./examples/blog/ --local-runtime

Changes to query.ts will then be reflected when running examples/blog/main.ts

Dependencies (0)

    Dev Dependencies (44)

    Package Sidebar

    Install

    npm i @prisma/photon

    Weekly Downloads

    52

    Version

    2.0.0-preview019

    License

    Apache-2.0

    Unpacked Size

    60.4 MB

    Total Files

    335

    Last publish

    Collaborators

    • jolg42