@robcross1977/bible-lib v0.0.8
Bible-Lib
This is just a small library so I could share the prisma object, the generated prisma client and some shared types for other bible projects.
Preparing for NPM
- clone project
- npm install
- npm run build
- update version in package.json
- Check in to git
npm publish
Basic
For all the TypeScript functionality, it is all exported from the index.ts file and can simply be imported and used.
Prisma Schema
Generating Schema
To generate the prisma schema, simply run npm run build
which will generate the prisma schema (located at node_modules/@prisma/client) and then copy it to the top level directory for sharing (client folder in the root after the build is complete).
Sharing Schema
Install this lib. Schema will be located in node_modules/@robcross1977/bible-lib/prisma/prisma.schema and can be used as follows in the project it is installed in:
prisma migrate dev --schema ./node_modules/@robcross1977/bible-lib/schema.prisma