Repository navigation
fix(workflow-code): keep one babel major so the app image builds - #10355
Merged
Merged
Conversation
The app image installs the pruned workspace with bun's hoisted linker. With apps/sim on Babel 7 and workflow-code/workspace-code on Babel 8, @babel/types 7 was hoisted beside @babel/parser 8, so the parser's types resolved to the wrong major and `bun run build` failed in packages/sim-cli (TS2322/TS2345 on Node, Program and ParseResult<File>). Local and CI installs nest the copies, so no gate caught it; the image build on staging has failed since this merged. Return workflow-code, workspace-code and the root parser to Babel 7.29 with the AST code they had before, keeping commander 15, chalk 6 and the Node floor. Moving to Babel 8 belongs in one change that moves apps/sim as well.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryAligns the root, workflow-code, and workspace-code dependencies with the app’s Babel 7 versions.
Reviews (1) · Last reviewed commit: "fix(workflow-code): keep one babel major..." · Reviewed by Greptile |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
bun run buildinpackages/sim-clihits TS2322/TS2345 (Program/ParseResult<File>not assignable toNode).bun install --linker=hoisted.apps/sim(Babel 7) andworkflow-code/workspace-code(Babel 8) then hoist@babel/types@7next to@babel/parser@8, so the parser's declarations resolve the wrong major. Local and CI installs nest the copies, so no gate saw it.workflow-code,workspace-codeand the root@babel/parsergo back to 7.29.x, along with the AST code they had before improvement(sim-cli): upgrade commander 15, chalk 6 and babel 8 #10350. commander 15, chalk 6 and the Node floor from improvement(sim-cli): upgrade commander 15, chalk 6 and babel 8 #10350 stay.apps/sim(out of scope here).Test plan
bun.lockhas no@babel/*@8entries. Everypackage.jsonpins@babel/parser7.29.9 /@babel/types7.29.8.tsc --noEmitpasses for workflow-code, workspace-code, workflow-sdk and sim-cli.bun run buildin sim-cli passes.check:auditspasses (with docs content generated), andlint:checkpasses.