@prisma/templates
v0.25.4
Published
[![trunk](https://github.com/prisma/templates-node/actions/workflows/trunk.yml/badge.svg)](https://github.com/prisma/templates-node/actions/workflows/trunk.yml)
Downloads
127
Readme
templates-node
Prisma templates packaged up for programmatic consumption.
Development:
- Install
sha1sum
library (for macOS viabrew install md5sha1sum
). yarn run build:gen
yarn dev
Testing
yarn test:db:up
to start test databases
Creating a File Transformer
- Create a file transformer module in
src/fileTransformers
- Export its contents in
src/fileTransformers/index_.ts
That's it, it will now be run in the file transform stack. How? Look in the code generator template code.