New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@prisma/templates

Package Overview
Dependencies
Maintainers
3
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/templates

[![trunk](https://github.com/prisma/templates-node/actions/workflows/trunk.yml/badge.svg)](https://github.com/prisma/templates-node/actions/workflows/trunk.yml)

next
latest
npmnpm
Version
0.25.4
Version published
Weekly downloads
30
-45.45%
Maintainers
3
Weekly downloads
 
Created
Source

templates-node

trunk

Prisma templates packaged up for programmatic consumption.

Documentation

Development:

  • Install sha1sum library (for macOS via brew 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.

FAQs

Package last updated on 29 Sep 2022

Related posts