Skip to content

feat: Allow the use of the generate function without the onGenerate p… #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Taskfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ compatibilty_check() {

bundle() {
set -x
npx tsup src/index.ts --format cjs --target es2020
npx tsup --entry src/index.ts --entry src/generate.ts --format cjs --target es2020
cp -fv README.md LICENSE package.json dist
cp -fv src/bin.js dist
}
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module",
"main": "index.js",
"bin": "bin.js",
"exports": {
".": "./index.js",
"./generate": "./generate.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/unlight/nestjs-graphql-prisma.git"
Expand Down