From b2afd340ecbc7eac19e779768beaee18fef4a74e Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Sat, 10 Oct 2026 12:38:30 +0100 Subject: [PATCH] fix(repack): run build steps serially to avoid wiping declarations build:js and build:ts ran in parallel, and babel's --delete-dir-on-start could wipe declaration files tsc had already written when babel started slowly (e.g. under turbo load), breaking dependent package builds with TS7016. Run them one after the other; tsc dominates the build time, so this costs roughly a second or two on a cold build. --- packages/repack/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/repack/package.json b/packages/repack/package.json index 98ec3c33b..69cf9c512 100644 --- a/packages/repack/package.json +++ b/packages/repack/package.json @@ -56,7 +56,7 @@ "scripts": { "build:js": "babel src --out-dir dist --extensions \".js,.ts\" --ignore \"**/__tests__/**\" --delete-dir-on-start", "build:ts": "tsc -p tsconfig.build.json --emitDeclarationOnly", - "build": "pnpm run \"/^build:.*/\"", + "build": "pnpm run build:js && pnpm run build:ts", "test": "jest", "typecheck": "tsc --noEmit", "archive": "pnpm build && pnpm pack",