Skip to content

Commit 1455049

Browse files
committed
fix(generator-prisma-client): fix deno
1 parent 4ca3eaf commit 1455049

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

generator-prisma-client/deno-deploy/deno.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@std/http": "jsr:@std/http@1",
1313
"@prisma/adapter-pg": "npm:@prisma/adapter-pg@6.14.0-integration-feat-client-wasm-base64-on-nodejs.6",
1414
"@prisma/client": "npm:@prisma/[email protected]",
15+
"dotenv": "npm:dotenv@^17.2.1",
1516
"prisma": "npm:[email protected]"
1617
},
1718
"nodeModulesDir": "auto"

generator-prisma-client/deno-deploy/deno.lock

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { defineConfig } from 'prisma/config'
22

3+
// Note: this wouldn't be needed if `deno task --env-file=.env ...` was supported.
4+
// See: https://github.com/denoland/deno/issues/27236
5+
import 'dotenv/config'
6+
37
export default defineConfig({
48
schema: './prisma/schema.prisma',
59
migrations: {
610
path: './prisma/migrations',
7-
seed: 'deno run --allow-all --env-file=.env ./prisma/seed.ts',
11+
seed: 'deno run --allow-all ./prisma/seed.ts',
812
},
913
})

0 commit comments

Comments
 (0)