Skip to content

Commit 52cd81d

Browse files
jonphippsclaude
andcommitted
fix: correct build commands in test-site-builds.js
- Fix portal build to use pnpm build:portal from root directory - Fix standards sites to use pnpm build:{site} from root directory - Resolves pre-push hook failures in CI deployment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 99df6cb commit 52cd81d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

scripts/test-site-builds.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,17 @@ function buildSite(siteKey) {
176176
}
177177

178178
// Run the build
179-
const buildCommand = 'pnpm build';
180-
const buildResult = execCommand(buildCommand, buildPath);
179+
let buildCommand;
180+
if (siteKey === 'portal') {
181+
buildCommand = 'pnpm build:portal';
182+
} else {
183+
// For standards sites, use the specific build command
184+
const siteKeyLower = siteKey.toLowerCase();
185+
buildCommand = `pnpm build:${siteKeyLower}`;
186+
}
187+
188+
// All builds run from root directory
189+
const buildResult = execCommand(buildCommand, process.cwd());
181190

182191
if (!buildResult.success) {
183192
return {

0 commit comments

Comments
 (0)