From 1de56063e18cb38666403a172e59fe03ff637627 Mon Sep 17 00:00:00 2001 From: MarioCadenas Date: Fri, 21 Aug 2026 16:19:20 +0200 Subject: [PATCH] fix(template): drop root postinstall typegen to avoid deploy cache-bust The Databricks Apps runtime treats any root preinstall/install/postinstall/prepare script as source-dependent and copies the full source tree before installing dependencies (the Dockerfile slow path). That puts every generated AppKit app on the slow path, so any source edit invalidates the dependency layer and reruns `npm install` on redeploy. Removing the root postinstall moves generated apps onto the runtime's manifest-first fast path, so source-only redeploys reuse the cached dependency layer. Type generation still runs where it is actually needed via `prebuild` and `predev`, so generated apps are functionally unchanged. Signed-off-by: MarioCadenas --- template/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/template/package.json b/template/package.json index 976dac232..5e4b25df6 100644 --- a/template/package.json +++ b/template/package.json @@ -17,7 +17,6 @@ "format:fix": "prettier --write .", "test": "vitest run", "clean": "rm -rf client/dist dist build node_modules", - "postinstall": "npm run typegen", "prebuild": "npm run sync && npm run typegen -- --wait", "predev": "npm run sync && npm run typegen", "sync": "appkit plugin sync --write --silent",