Skip to content

Commit 3a9d85d

Browse files
committed
fix: fix type error
1 parent f187731 commit 3a9d85d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/generate-migrations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { $, env } from "bun";
2+
import { webcrypto as crypto } from "node:crypto";
23

34
// Prisma doesn't support in-memory SQLite databases, so we use a random file name.
45
env["PRISMA_DB_URL"] = `file:temp/${crypto.randomUUID()}.db?mode=memory`;

test/prisma.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { PrismaClient } from "@prisma/client";
22
import { env } from "bun";
3+
import { webcrypto as crypto } from "node:crypto";
34
import { fileURLToPath } from "node:url";
45
import { collectMigrations } from "./common.js";
56

0 commit comments

Comments
 (0)