JSPM

@prisma/photon

2.0.0-alpha.357
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 36
    • Score
      100M100P100Q100515F
    • License Apache-2.0

    Package Exports

    • @prisma/photon
    • @prisma/photon/dist/runtime/utils/common
    • @prisma/photon/dist/utils/getDMMF
    • @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

    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