Skip to content

Commit

Permalink
fixed generator and cli
Browse files Browse the repository at this point in the history
  • Loading branch information
HRM committed Sep 5, 2024
1 parent d13d2e6 commit ae9309f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
```
3. run `prisma generate`, this will automatically generate and patch the prisma client
Alternatively you can also use this tool trough cli: `npx prisma-nitro-patcher`
Alternatively you can also use this tool trough cli: `npx prisma-nitro-patcher-cli`
---
The patch was tested with prisma version 5.19.1 and typescript version 5.5.4. If you have any findings, problems feel free to open an issue.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "prisma-nitro-patcher",
"version": "0.0.6",
"version": "0.0.7",
"description": "Applies a patch on the prisma client to improve the performance of extensions",
"main": "dist/index.js",
"files": [ "dist" ],
"bin": {
"prisma-nitro-patcher": "dist/cli.js"
"prisma-nitro-patcher": "dist/index.js",
"prisma-nitro-patcher-cli": "dist/cli.js"
},
"scripts": {
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env node
#!/usr/bin/env node
import { patchPrisma } from './patchPrisma';
import path from 'node:path';
import { readFileSync, writeFileSync } from 'node:fs';
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import { generatorHandler } from '@prisma/generator-helper';
import { patchPrisma } from './patchPrisma';
import path from 'path';
Expand Down

0 comments on commit ae9309f

Please sign in to comment.