Skip to content

Commit aa48a13

Browse files
committed
Fix race condition: website build waits for blueprints schema
The website vite build was sometimes starting before the blueprints schema validator file was fully generated, causing intermittent CI failures with 'invalid JS syntax' errors. Adding an explicit dependency ensures the schema generation completes first.
1 parent b28a19b commit aa48a13

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/playground/remote/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"outputPath": "dist/packages/playground/remote",
2525
"main": "packages/playground/remote/remote.html",
2626
"tsConfig": "packages/playground/remote/tsconfig.lib.json"
27-
}
27+
},
28+
"dependsOn": ["playground-blueprints:build:blueprint-schema"]
2829
},
2930
"dev": {
3031
"executor": "@nx/vite:dev-server",

packages/playground/website/project.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@
4545
"logLevel": "info"
4646
}
4747
},
48-
"dependsOn": ["^build"]
48+
"dependsOn": [
49+
"^build",
50+
"playground-blueprints:build:blueprint-schema"
51+
]
4952
},
5053
"dev": {
5154
"executor": "nx:run-commands",

0 commit comments

Comments
 (0)