diff --git a/apps/api/package.json b/apps/api/package.json index 7fb65e0..fd93b5a 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -4,6 +4,7 @@ "type": "module", "scripts": { "build": "tsc -p tsconfig.json", + "postinstall": "prisma generate", "dev": "pnpm build && node --env-file=.env --watch dist/main.js", "lint": "eslint .", "typecheck": "tsc -p tsconfig.json --noEmit", diff --git a/turbo.json b/turbo.json index 701a104..87e9ce0 100644 --- a/turbo.json +++ b/turbo.json @@ -3,8 +3,8 @@ "tasks": { "build": { "dependsOn": ["^build"], "outputs": ["dist/**", ".next/**"] }, "dev": { "cache": false, "persistent": true }, - "lint": { "dependsOn": ["^lint"], "outputs": [] }, - "typecheck": { "dependsOn": ["^typecheck"], "outputs": [] }, + "lint": { "dependsOn": ["^build"], "outputs": [] }, + "typecheck": { "dependsOn": ["^build"], "outputs": [] }, "clean": { "cache": false } } }