From ac03a10a9a49dc9075b6b6c0b30c0604148d21f2 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Mon, 28 Oct 2024 11:43:51 +0300 Subject: [PATCH] refactor: generate prisma before meigrating (#4349) Forgot to test migrations with deleted `__generated__` folder --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cf334f23dd2a..cf38de9e502e 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "format": "prettier --write \"**/*.{ts,tsx,md}\"", "storybook:dev": "storybook dev -p 6006", "storybook:build": "storybook build", - "migrations": "pnpm --filter=./packages/prisma-client migrations --dev --cwd ../../apps/builder", + "migrations": "pnpm --filter=@webstudio-is/prisma-client generate && pnpm --filter=./packages/prisma-client migrations --dev --cwd ../../apps/builder", "build-figma-tokens": "cd packages/design-system && pnpm build-figma-tokens", "prepare": "which git && git config core.hooksPath .git/hooks/ && simple-git-hooks || echo git not installed", "local:version-snapshot": "pnpm -r exec pnpm version prepatch --preid $(cat /dev/urandom | LC_ALL=C tr -dc 'a-z' | fold -w 8 | head -n 1)",