Skip to content

Commit e25fbaa

Browse files
nperez0111claude
andcommitted
fix: replace tsc --build with tsc to prevent parallel build race condition
When Nx runs builds in parallel and restores core/react from remote cache, multiple tsc --build processes simultaneously try to rebuild the same project references, causing race conditions where one process reads partially-written declaration files. Since Nx already handles dependency ordering via ^build, the project reference traversal in tsc --build is redundant. Affected packages: xl-pdf-exporter, xl-docx-exporter, xl-odt-exporter, xl-ai Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6c53cd2 commit e25fbaa

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/xl-ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"scripts": {
6464
"dev": "vite",
65-
"build": "tsc --build && vite build",
65+
"build": "tsc && vite build",
6666
"lint": "eslint src --max-warnings 0",
6767
"test": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" vitest --run",
6868
"test-watch": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" vitest watch",

packages/xl-docx-exporter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"scripts": {
5252
"dev": "vite",
53-
"build": "tsc --build && vite build",
53+
"build": "tsc && vite build",
5454
"lint": "eslint src --max-warnings 0",
5555
"test": "vitest --run",
5656
"test-watch": "vitest watch",

packages/xl-odt-exporter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"scripts": {
5252
"dev": "vite",
53-
"build": "tsc --build && vite build",
53+
"build": "tsc && vite build",
5454
"lint": "eslint src --max-warnings 0",
5555
"test": "vitest --run",
5656
"test-watch": "vitest watch",

packages/xl-pdf-exporter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"scripts": {
5151
"dev": "vite",
52-
"build": "tsc --build && vite build",
52+
"build": "tsc && vite build",
5353
"lint": "eslint src --max-warnings 0",
5454
"test": "vitest --run",
5555
"test-watch": "vitest watch",

0 commit comments

Comments
 (0)