Skip to content

refactor: Separate prune closure and layout from JS rendering - #13545

Closed
anthonyshew wants to merge 1 commit into
shew/turbo-5833-extract-javascript-prune-rendering-pure-functionsfrom
shew/turbo-5834-separate-prune-closure-and-layout-from-js-rendering
Closed

anthonyshew wants to merge 1 commit into
shew/turbo-5833-extract-javascript-prune-rendering-pure-functionsfrom
shew/turbo-5834-separate-prune-closure-and-layout-from-js-rendering

Conversation

@anthonyshew

Copy link
Copy Markdown
Contributor

Intent

Continue Phase 7: core prune orchestration must treat JavaScript lockfile/manifest/patch rewriting as a distinct rendering step with explicit inputs/outputs, separate from package-closure selection and path-safe layout.

Stack: Phase 7 layer 2. Base = shew/turbo-5833-extract-javascript-prune-rendering-pure-functions.

Changes

  • render_javascript_prune + JavaScriptPruneRenderInput / JavaScriptPruneRenderResult in prune_js.rs
  • prune.rs selects closures/layout first, then materializes the rendered JS artifacts

Out of scope

Golden fixtures; deleting remaining JS compatibility projection.

Testing

  • cargo test -p turborepo-lib --lib commands::prune (15 passed)
  • cargo clippy -p turborepo-lib --all-targets -- -D warnings

Closes TURBO-5834.

@vercel

vercel Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment Jul 29, 2026 7:32pm
examples-designsystem-docs Ready Ready Preview, Comment Jul 29, 2026 7:32pm
examples-gatsby-web Ready Ready Preview, Comment Jul 29, 2026 7:32pm
examples-kitchensink-blog Ready Ready Preview, Comment Jul 29, 2026 7:32pm
examples-nonmonorepo Ready Ready Preview, Comment Jul 29, 2026 7:32pm
examples-svelte-web Ready Ready Preview, Comment Jul 29, 2026 7:32pm
examples-tailwind-web Ready Ready Preview, Comment Jul 29, 2026 7:32pm
examples-vite-web Ready Ready Preview, Comment Jul 29, 2026 7:32pm
turbo-site Ready Ready Preview, Comment Jul 29, 2026 7:32pm
turborepo-eve-agent Ready Ready Preview, Comment Jul 29, 2026 7:32pm

@anthonyshew
anthonyshew force-pushed the shew/turbo-5833-extract-javascript-prune-rendering-pure-functions branch from 274fe33 to 7a55391 Compare July 29, 2026 18:25
@anthonyshew
anthonyshew force-pushed the shew/turbo-5834-separate-prune-closure-and-layout-from-js-rendering branch from cf69b38 to 440c76b Compare July 29, 2026 18:25
@vercel
vercel Bot temporarily deployed to Preview – turborepo-eve-agent July 29, 2026 18:25 Inactive
@anthonyshew
anthonyshew force-pushed the shew/turbo-5834-separate-prune-closure-and-layout-from-js-rendering branch from 440c76b to d1f4372 Compare July 29, 2026 18:27
@anthonyshew
anthonyshew force-pushed the shew/turbo-5833-extract-javascript-prune-rendering-pure-functions branch from 7a55391 to 79dc088 Compare July 29, 2026 18:27
@anthonyshew
anthonyshew force-pushed the shew/turbo-5833-extract-javascript-prune-rendering-pure-functions branch from 79dc088 to e24c787 Compare July 29, 2026 18:50
@anthonyshew
anthonyshew force-pushed the shew/turbo-5834-separate-prune-closure-and-layout-from-js-rendering branch from d1f4372 to 1c87d9a Compare July 29, 2026 18:50
@anthonyshew
anthonyshew force-pushed the shew/turbo-5834-separate-prune-closure-and-layout-from-js-rendering branch from 1c87d9a to 5623d92 Compare July 29, 2026 19:14
@anthonyshew
anthonyshew force-pushed the shew/turbo-5833-extract-javascript-prune-rendering-pure-functions branch from e24c787 to 49581a9 Compare July 29, 2026 19:14
@vercel
vercel Bot temporarily deployed to Preview – turborepo-eve-agent July 29, 2026 19:14 Inactive
Introduce an explicit JavaScript prune render step with typed inputs and
artifacts so core orchestration no longer interleaves format rewriting
with closure selection and path-safe layout.

Closes TURBO-5834.

Co-authored-by: Anthony Shew <anthonyshew@users.noreply.github.com>
@anthonyshew
anthonyshew force-pushed the shew/turbo-5834-separate-prune-closure-and-layout-from-js-rendering branch from 5623d92 to 5d4486a Compare July 29, 2026 19:31
@anthonyshew
anthonyshew force-pushed the shew/turbo-5833-extract-javascript-prune-rendering-pure-functions branch from 49581a9 to 1608b74 Compare July 29, 2026 19:31
@anthonyshew

Copy link
Copy Markdown
Contributor Author

Batched into #13546 so the prune rendering extraction, layout separation, and golden coverage can be reviewed and validated together.

This branch was successfully deployed

1 active deployment
Preview – turborepo-eve-agent — 5d4486ab Deployed Jul 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants