From 49af09c6ff8c6046b642231cbd408afc35a44236 Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Mon, 4 Mar 2024 23:39:46 +1100 Subject: [PATCH] Add no-prisma file for creatables script --- src/scripts/no-prisma.ts | 2 ++ src/scripts/render-creatables-file.ts | 1 + 2 files changed, 3 insertions(+) create mode 100644 src/scripts/no-prisma.ts diff --git a/src/scripts/no-prisma.ts b/src/scripts/no-prisma.ts new file mode 100644 index 0000000000..3af22f06f2 --- /dev/null +++ b/src/scripts/no-prisma.ts @@ -0,0 +1,2 @@ +// @ts-ignore +global.prisma = { $on: () => {} }; diff --git a/src/scripts/render-creatables-file.ts b/src/scripts/render-creatables-file.ts index 4b978a6373..60e5b6fcaf 100644 --- a/src/scripts/render-creatables-file.ts +++ b/src/scripts/render-creatables-file.ts @@ -1,3 +1,4 @@ +import './no-prisma'; import '../lib/data/itemAliases'; import { writeFileSync } from 'fs';