Skip to content

Commit 8b88874

Browse files
committed
fix: install-and-build exits with correct code on build failure
Previously, the build step used 'yarn build:try' which is defined as 'run build || true'. This always exits with code 0, masking any TypeScript compilation errors during CI or local builds. Switch to 'yarn build' so that failures propagate correctly through concurrently's result promise, are caught by the try/catch, and cause the script to exit with code 1.
1 parent bcff27a commit 8b88874

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/install-and-build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ try {
7272
await concurrently(
7373
[
7474
{
75-
command: `yarn build:try`,
75+
command: `yarn build`,
7676
cwd: "packages",
7777
name: "PACKAGES-BUILD",
7878
prefixColor: "yellow",

0 commit comments

Comments
 (0)