JSPM

@prisma/client

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

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

  1. Clone this repo
  2. cd prisma-client-js/packages/photon
  3. yarn
  4. ts-node fixtures/generate.ts ./fixtures/blog/ --skip-transpile
  5. cd fixtures/blog
  6. prisma2 migrate save --name init --experimental && prisma2 migrate up --experimental
  7. 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