Skip to content

Commit 1e8cea1

Browse files
committed
Fix that prevented installing and running as a package
1 parent 826942b commit 1e8cea1

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onozaty/prisma-db-comments-generator",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Generate database comments from Prisma schema",
55
"bin": {
66
"prisma-db-comments-generator": "./dist/generator.js"

prisma/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ generator client {
44
}
55

66
generator comments {
7-
provider = "tsx src/generator.ts"
7+
provider = "node ./dist/generator.js"
88
ignorePattern = "_view$"
99
includeEnumInFeildComment = true
1010
}

src/generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env node
12
/**
23
* This code is based on the following code by @Jyrno42
34
* https://github.com/prisma/prisma/issues/8703#issuecomment-1614360386

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "ESNext",
5-
"moduleResolution": "Bundler",
4+
"module": "commonjs",
65
"esModuleInterop": true,
76
"forceConsistentCasingInFileNames": true,
87
"strict": true,
98
"skipLibCheck": true,
109
"declaration": true,
1110
"sourceMap": true,
11+
"resolveJsonModule": true,
1212
"outDir": "./dist",
1313
"rootDir": "./src"
1414
},

0 commit comments

Comments
 (0)