fix(ci): expand pre-build step to include more foundational packages #11736
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Refs: https://github.com/fern-api/fern/actions/runs/21298381788/job/61309835788
Fixes intermittent CI failures where TypeScript compilation fails with
TS2306: File is not a moduleerrors forcore-utils/lib/index.d.ts.Changes Made
path-utils,fs-utils, andloggerin addition tocore-utils--concurrency 1to ensure sequential builds of foundational packagesRoot Cause Analysis
The previous pre-build step only built
@fern-api/core-utils, but race conditions were still occurring because:path-utils(a leaf package) was being built in parallel with packages that depend on itrust-basecompiled, it triggered compilation oflogger, which tried to import fromcore-utilswhile files were potentially still being writtenThe fix pre-builds all foundational packages sequentially before parallel compilation begins.
Testing
Human Review Checklist
core-utilsandpath-utilsare leaf packages;fs-utilsdepends on both;loggerdepends oncore-utilsRequested by: David Konigsberg (@davidkonigsberg)
Link to Devin run: https://app.devin.ai/sessions/557fd9a0710846909fef8a0351ef63ea