Skip to content

Conversation

@TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented Dec 29, 2025

Updates the workflow esbuild plugin to accept the tsconfig path so that esbuild utilizes the entire config for the features that esbuild supports natively (specifically "paths" config, but probably others as well).

This potentially fixes #419 and #697.

Updates the workflow esbuild plugin to accept the `tsconfig` path so
that esbuild utilizes the entire config for the features that esbuild
supports natively (specifically `"paths"` config, but probably others as
well).
@changeset-bot
Copy link

changeset-bot bot commented Dec 29, 2025

🦋 Changeset detected

Latest commit: b08f6d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@workflow/sveltekit Patch
@workflow/builders Patch
@workflow/astro Patch
@workflow/next Patch
workflow Patch
@workflow/cli Patch
@workflow/nitro Patch
@workflow/ai Patch
@workflow/world-testing Patch
@workflow/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Dec 29, 2025

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

Project Deployment Review Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Dec 31, 2025 8:47am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Dec 31, 2025 8:47am
example-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-astro-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-express-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-fastify-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-hono-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-nitro-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-nuxt-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-sveltekit-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
workbench-vite-workflow Ready Ready Preview, Comment Dec 31, 2025 8:47am
1 Skipped Deployment
Project Deployment Review Updated (UTC)
workflow-docs Skipped Skipped Dec 31, 2025 8:47am

@github-actions
Copy link
Contributor

github-actions bot commented Dec 29, 2025

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.031s (+4.0%) 1.007s (~) 0.976s 10 1.00x
🌐 Redis Next.js (Turbopack) 0.039s (-3.2%) 1.016s (~) 0.977s 10 1.25x
🌐 Starter Next.js (Turbopack) 0.039s (+10.1% 🔺) 1.015s (~) 0.975s 10 1.27x
💻 Local Next.js (Turbopack) 0.042s (+5.3% 🔺) 1.017s (~) 0.975s 10 1.34x
💻 Local Express 0.042s (-4.7%) 1.007s (~) 0.965s 10 1.36x
🌐 Turso Next.js (Turbopack) 0.072s (-30.2% 🟢) 1.014s (~) 0.942s 10 2.31x
🌐 MongoDB Next.js (Turbopack) 0.102s (+30.0% 🔺) 1.014s (~) 0.912s 10 3.29x
🐘 Postgres Nitro 0.305s (+9.7% 🔺) 1.012s (~) 0.707s 10 9.85x
🐘 Postgres Express 0.336s (-10.9% 🟢) 1.012s (~) 0.676s 10 10.84x
🐘 Postgres Next.js (Turbopack) 0.411s (+58.7% 🔺) 1.021s (~) 0.610s 10 13.26x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 0.620s (+7.0% 🔺) 1.634s (+1.5%) 1.014s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.669s (+26.7% 🔺) 1.727s (+23.5% 🔺) 1.058s 10 1.08x
▲ Vercel Nitro 0.805s (-20.8% 🟢) 1.690s (-11.6% 🟢) 0.885s 10 1.30x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.076s (~) 2.006s (~) 0.930s 10 1.00x
💻 Local Next.js (Turbopack) 1.089s (-0.8%) 2.012s (~) 0.923s 10 1.01x
🌐 Starter Next.js (Turbopack) 1.096s (+0.8%) 2.009s (~) 0.913s 10 1.02x
🌐 Redis Next.js (Turbopack) 1.097s (~) 2.012s (~) 0.915s 10 1.02x
💻 Local Express 1.111s (~) 2.007s (~) 0.896s 10 1.03x
🌐 Turso Next.js (Turbopack) 1.282s (-0.8%) 2.012s (~) 0.730s 10 1.19x
🌐 MongoDB Next.js (Turbopack) 1.316s (+2.0%) 2.012s (~) 0.696s 10 1.22x
🐘 Postgres Next.js (Turbopack) 1.738s (-26.9% 🟢) 2.116s (-29.9% 🟢) 0.378s 10 1.62x
🐘 Postgres Nitro 2.165s (+1.5%) 3.014s (~) 0.850s 10 2.01x
🐘 Postgres Express 2.193s (-2.0%) 3.015s (~) 0.822s 10 2.04x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.938s (+10.0% 🔺) 3.809s (+4.0%) 0.870s 10 1.00x
▲ Vercel Nitro 3.034s (+9.1% 🔺) 3.727s (+4.0%) 0.693s 10 1.03x
▲ Vercel Next.js (Turbopack) 3.058s (+8.5% 🔺) 3.953s (+9.6% 🔺) 0.894s 10 1.04x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 10.520s (~) 11.012s (~) 0.493s 5 1.00x
🌐 Starter Next.js (Turbopack) 10.603s (~) 11.012s (~) 0.409s 5 1.01x
💻 Local Next.js (Turbopack) 10.654s (~) 11.018s (~) 0.364s 5 1.01x
🌐 Redis Next.js (Turbopack) 10.676s (~) 11.016s (~) 0.340s 5 1.01x
💻 Local Express 10.783s (~) 11.014s (~) 0.231s 5 1.03x
🌐 MongoDB Next.js (Turbopack) 12.177s (-0.7%) 13.021s (~) 0.844s 5 1.16x
🌐 Turso Next.js (Turbopack) 12.185s (~) 13.022s (~) 0.837s 5 1.16x
🐘 Postgres Next.js (Turbopack) 14.029s (-11.9% 🟢) 14.637s (-12.0% 🟢) 0.608s 5 1.33x
🐘 Postgres Express 17.027s (-15.3% 🟢) 17.637s (-16.1% 🟢) 0.610s 5 1.62x
🐘 Postgres Nitro 20.407s (~) 21.028s (~) 0.621s 5 1.94x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 22.569s (+5.0%) 23.328s (+4.5%) 0.759s 5 1.00x
▲ Vercel Express 22.661s (+3.5%) 23.751s (+4.4%) 1.090s 5 1.00x
▲ Vercel Next.js (Turbopack) 24.006s (+7.4% 🔺) 24.976s (+9.0% 🔺) 0.970s 5 1.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.345s (+0.9%) 2.005s (~) 0.660s 15 1.00x
🌐 Redis Next.js (Turbopack) 1.347s (-0.7%) 2.009s (~) 0.662s 15 1.00x
🌐 Starter Next.js (Turbopack) 1.360s (+1.7%) 2.008s (~) 0.648s 15 1.01x
💻 Local Next.js (Turbopack) 1.375s (-1.3%) 2.012s (~) 0.637s 15 1.02x
💻 Local Express 1.403s (~) 2.006s (~) 0.603s 15 1.04x
🐘 Postgres Next.js (Turbopack) 1.621s (-16.7% 🟢) 2.013s (-6.7% 🟢) 0.392s 15 1.20x
🐘 Postgres Express 1.775s (-29.2% 🟢) 2.010s (-33.3% 🟢) 0.236s 15 1.32x
🌐 MongoDB Next.js (Turbopack) 2.141s (~) 3.012s (~) 0.871s 10 1.59x
🌐 Turso Next.js (Turbopack) 2.217s (~) 3.014s (~) 0.796s 10 1.65x
🐘 Postgres Nitro 2.442s (+0.6%) 3.012s (~) 0.570s 10 1.82x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.012s (+5.9% 🔺) 3.622s (+0.7%) 0.610s 9 1.00x
▲ Vercel Express 3.599s (+32.2% 🔺) 4.222s (+14.3% 🔺) 0.623s 8 1.19x
▲ Vercel Next.js (Turbopack) 4.032s (+41.1% 🔺) 4.789s (+30.1% 🔺) 0.757s 7 1.34x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 2.010s (+1.8%) 2.527s (+17.3% 🔺) 0.518s 12 1.00x
💻 Local Next.js (Turbopack) 2.086s (-3.8%) 3.000s (-0.5%) 0.914s 10 1.04x
💻 Local Express 2.150s (-3.8%) 3.109s (-2.1%) 0.958s 10 1.07x
🌐 Starter Next.js (Turbopack) 2.441s (~) 3.009s (~) 0.568s 10 1.21x
🌐 Redis Next.js (Turbopack) 2.474s (~) 3.011s (~) 0.537s 10 1.23x
🐘 Postgres Next.js (Turbopack) 2.547s (-2.6%) 3.029s (~) 0.482s 10 1.27x
🐘 Postgres Express 2.650s (-2.3%) 3.029s (+0.6%) 0.379s 10 1.32x
🐘 Postgres Nitro 2.864s (-1.4%) 3.114s (-3.2%) 0.250s 10 1.43x
🌐 Turso Next.js (Turbopack) 4.684s (+0.9%) 5.181s (~) 0.497s 6 2.33x
🌐 MongoDB Next.js (Turbopack) 4.752s (+1.7%) 5.180s (~) 0.428s 6 2.36x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.449s (-10.8% 🟢) 4.179s (-8.5% 🟢) 0.731s 8 1.00x
▲ Vercel Express 3.659s (~) 4.297s (-1.4%) 0.638s 7 1.06x
▲ Vercel Next.js (Turbopack) 4.546s (+1.4%) 5.502s (+11.6% 🔺) 0.956s 6 1.32x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Starter 🥇 Next.js (Turbopack) 1.342s (~) 2.007s (~) 0.665s 15 1.00x
💻 Local Nitro 1.351s (+1.1%) 2.005s (~) 0.653s 15 1.01x
🌐 Redis Next.js (Turbopack) 1.365s (~) 2.009s (~) 0.644s 15 1.02x
💻 Local Next.js (Turbopack) 1.393s (-1.3%) 2.013s (~) 0.620s 15 1.04x
💻 Local Express 1.398s (-1.3%) 2.006s (~) 0.608s 15 1.04x
🐘 Postgres Next.js (Turbopack) 1.636s (-4.5%) 2.015s (~) 0.379s 15 1.22x
🐘 Postgres Express 1.817s (+7.7% 🔺) 2.009s (~) 0.192s 15 1.35x
🐘 Postgres Nitro 2.070s (~) 2.405s (-4.5%) 0.335s 13 1.54x
🌐 MongoDB Next.js (Turbopack) 2.156s (~) 3.014s (~) 0.858s 10 1.61x
🌐 Turso Next.js (Turbopack) 2.219s (~) 3.013s (~) 0.794s 10 1.65x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.944s (-0.8%) 3.838s (-3.7%) 0.894s 8 1.00x
▲ Vercel Nitro 3.158s (+15.3% 🔺) 4.043s (+12.6% 🔺) 0.885s 8 1.07x
▲ Vercel Next.js (Turbopack) 3.765s (+28.9% 🔺) 4.522s (+27.8% 🔺) 0.756s 7 1.28x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 2.111s (+6.2% 🔺) 3.084s (+38.5% 🔺) 0.973s 10 1.00x
💻 Local Express 2.198s (-1.9%) 3.162s (-0.6%) 0.964s 10 1.04x
💻 Local Next.js (Turbopack) 2.250s (+8.6% 🔺) 3.213s (+11.1% 🔺) 0.963s 10 1.07x
🐘 Postgres Nitro 2.423s (-13.6% 🟢) 3.013s (~) 0.591s 10 1.15x
🌐 Starter Next.js (Turbopack) 2.449s (-2.3%) 3.011s (~) 0.562s 10 1.16x
🌐 Redis Next.js (Turbopack) 2.477s (~) 3.011s (~) 0.534s 10 1.17x
🐘 Postgres Express 2.734s (+6.5% 🔺) 3.012s (~) 0.277s 10 1.30x
🐘 Postgres Next.js (Turbopack) 2.893s (+12.2% 🔺) 3.490s (+15.7% 🔺) 0.597s 9 1.37x
🌐 MongoDB Next.js (Turbopack) 4.637s (-1.9%) 5.180s (~) 0.543s 6 2.20x
🌐 Turso Next.js (Turbopack) 4.699s (~) 5.184s (~) 0.486s 6 2.23x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 4.185s (+35.1% 🔺) 4.761s (+31.0% 🔺) 0.577s 7 1.00x
▲ Vercel Nitro 4.189s (+24.2% 🔺) 4.901s (+20.3% 🔺) 0.713s 8 1.00x
▲ Vercel Next.js (Turbopack) 5.893s (+82.0% 🔺) 6.986s (+89.1% 🔺) 1.093s 5 1.41x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.116s (+9.0% 🔺) 0.999s (~) 0.013s (-10.5% 🟢) 1.019s (~) 0.902s 10 1.00x
🌐 Starter Next.js (Turbopack) 0.130s (-1.8%) 1.006s (~) 0.000s (+Infinity% 🔺) 1.011s (~) 0.881s 10 1.12x
💻 Local Next.js (Turbopack) 0.135s (-5.7% 🟢) 1.003s (~) 0.024s (+45.5% 🔺) 1.035s (+0.7%) 0.900s 10 1.16x
🌐 Redis Next.js (Turbopack) 0.140s (-12.4% 🟢) 1.005s (~) 0.000s (+Infinity% 🔺) 1.014s (~) 0.874s 10 1.20x
💻 Local Express 0.170s (-2.8%) 0.992s (~) 0.016s (-4.2%) 1.023s (~) 0.853s 10 1.46x
🌐 MongoDB Next.js (Turbopack) 0.455s (-4.3%) 0.993s (+1.8%) 0.000s (-100.0% 🟢) 1.013s (~) 0.557s 10 3.92x
🌐 Turso Next.js (Turbopack) 0.505s (+1.9%) 0.945s (-0.9%) 0.000s (-50.0% 🟢) 1.014s (~) 0.508s 10 4.34x
🐘 Postgres Next.js (Turbopack) 1.041s (-16.1% 🟢) 1.072s (-40.7% 🟢) 0.000s (+Infinity% 🔺) 1.317s (-34.7% 🟢) 0.277s 10 8.95x
🐘 Postgres Express 1.398s (-42.7% 🟢) 1.713s (-34.1% 🟢) 0.000s (-100.0% 🟢) 2.013s (-33.2% 🟢) 0.615s 10 12.02x
🐘 Postgres Nitro 2.340s (~) 2.705s (~) 0.000s (-100.0% 🟢) 3.014s (~) 0.675s 10 20.12x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.490s (+19.3% 🔺) 3.812s (+14.2% 🔺) 1.122s (+123.4% 🔺) 5.550s (+29.9% 🔺) 2.060s 10 1.00x
▲ Vercel Nitro 3.505s (+13.6% 🔺) 3.527s (+3.2%) 1.169s (+109.7% 🔺) 5.318s (+20.2% 🔺) 1.812s 10 1.00x
▲ Vercel Express 3.633s (+28.7% 🔺) 3.590s (+14.3% 🔺) 1.369s (+181.7% 🔺) 5.769s (+36.7% 🔺) 2.135s 10 1.04x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Nitro 8/8
🐘 Postgres Next.js (Turbopack) 6/8
▲ Vercel Express 4/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 💻 Local 8/8
Next.js (Turbopack) 💻 Local 3/8
Nitro 💻 Local 8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Dec 29, 2025

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 297 0 11 308
✅ 💻 Local Development 272 0 8 280
✅ 📦 Local Production 272 0 8 280
✅ 🐘 Local Postgres 272 0 8 280
✅ 🪟 Windows 28 0 0 28
❌ 🌍 Community Worlds 112 12 0 124
Total 1253 12 35 1300

❌ Failed Tests

🌍 Community Worlds (12 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (9 failed):

  • addTenWorkflow
  • addTenWorkflow
  • retryAttemptCounterWorkflow
  • crossFileErrorWorkflow - stack traces work across imported modules
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 27 0 1
✅ example 27 0 1
✅ express 27 0 1
✅ fastify 27 0 1
✅ hono 27 0 1
✅ nextjs-turbopack 27 0 1
✅ nextjs-webpack 27 0 1
✅ nitro 27 0 1
✅ nuxt 27 0 1
✅ sveltekit 27 0 1
✅ vite 27 0 1
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 27 0 1
✅ express-stable 27 0 1
✅ fastify-stable 27 0 1
✅ hono-stable 27 0 1
✅ nextjs-turbopack-stable 28 0 0
✅ nextjs-webpack-stable 28 0 0
✅ nitro-stable 27 0 1
✅ nuxt-stable 27 0 1
✅ sveltekit-stable 27 0 1
✅ vite-stable 27 0 1
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 27 0 1
✅ express-stable 27 0 1
✅ fastify-stable 27 0 1
✅ hono-stable 27 0 1
✅ nextjs-turbopack-stable 28 0 0
✅ nextjs-webpack-stable 28 0 0
✅ nitro-stable 27 0 1
✅ nuxt-stable 27 0 1
✅ sveltekit-stable 27 0 1
✅ vite-stable 27 0 1
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 27 0 1
✅ express-stable 27 0 1
✅ fastify-stable 27 0 1
✅ hono-stable 27 0 1
✅ nextjs-turbopack-stable 28 0 0
✅ nextjs-webpack-stable 28 0 0
✅ nitro-stable 27 0 1
✅ nuxt-stable 27 0 1
✅ sveltekit-stable 27 0 1
✅ vite-stable 27 0 1
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 28 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 27 1 0
✅ redis-dev 3 0 0
❌ redis 27 1 0
✅ starter-dev 3 0 0
❌ starter 19 9 0
✅ turso-dev 3 0 0
❌ turso 27 1 0

📋 View full workflow run

Copy link
Member Author

TooTallNate commented Dec 29, 2025

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the workflow build system to simplify TypeScript path alias resolution by leveraging esbuild's native tsconfig option. Instead of manually extracting and passing baseUrl and paths separately, the builders now pass the tsconfigPath directly to esbuild, allowing it to handle path aliases natively. A new @repo/* alias is added to test cross-directory imports.

Key Changes

  • Replaces separate tsBaseUrl and tsPaths parameters with a single tsconfigPath parameter across all builder implementations
  • Updates esbuild configuration to use the tsconfig option for native path alias resolution
  • Removes path configuration from SWC plugin since esbuild now handles path resolution

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
workbench/nextjs-turbopack/tsconfig.json Adds @repo/* path alias for testing cross-directory imports
lib/steps/paths-alias-test.ts Creates test step function to verify path alias resolution (currently unused)
packages/sveltekit/src/builder.ts Updates to pass tsconfigPath instead of tsBaseUrl and tsPaths
packages/next/src/builder.ts Updates to pass tsconfigPath instead of tsBaseUrl and tsPaths
packages/builders/src/vercel-build-output-api.ts Updates to pass tsconfigPath instead of tsBaseUrl and tsPaths; removes unused parameters from webhook function
packages/builders/src/swc-esbuild-plugin.ts Removes tsPaths and tsBaseUrl from plugin options with explanatory comment
packages/builders/src/standalone.ts Updates to pass tsconfigPath instead of tsBaseUrl and tsPaths
packages/builders/src/base-builder.ts Adds tsconfigPath to tsconfig options; updates bundle methods to accept and use tsconfigPath with esbuild's tsconfig option
packages/astro/src/builder.ts Updates to pass tsconfigPath instead of tsBaseUrl and tsPaths
.changeset/soft-pets-yawn.md Documents the change for affected packages
Comments suppressed due to low confidence (1)

packages/builders/src/base-builder.ts:92

  • The baseUrl and paths properties are still being parsed and returned from this method, but they are no longer used anywhere in the codebase after this refactoring. Consider removing these from the return type and simplifying the method to only return tsconfigPath, which would make the code cleaner and reduce unnecessary parsing work.
  protected async getTsConfigOptions(): Promise<{
    baseUrl?: string;
    paths?: Record<string, string[]>;
    tsconfigPath?: string;
  }> {
    const options: {
      paths?: Record<string, string[]>;
      baseUrl?: string;
      tsconfigPath?: string;
    } = {};

    const cwd = this.config.workingDir || process.cwd();

    const tsJsConfig = await findUp(['tsconfig.json', 'jsconfig.json'], {
      cwd,
    });

    if (tsJsConfig) {
      options.tsconfigPath = tsJsConfig;
      try {
        const rawJson = await readFile(tsJsConfig, 'utf8');
        const parsed: null | {
          compilerOptions?: {
            paths?: Record<string, string[]> | undefined;
            baseUrl?: string;
          };
        } = parse(rawJson) as any;

        if (parsed) {
          options.paths = parsed.compilerOptions?.paths;

          if (parsed.compilerOptions?.baseUrl) {
            options.baseUrl = resolve(cwd, parsed.compilerOptions.baseUrl);
          } else {
            options.baseUrl = cwd;
          }
        }
      } catch (err) {
        console.error(
          `Failed to parse ${tsJsConfig} aliases might not apply properly`,
          err
        );
      }
    }

    return options;
  }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ManuLpz4
Copy link

LFG! 🚀

@pjsny
Copy link

pjsny commented Dec 30, 2025

🙏🏼

@TooTallNate TooTallNate merged commit 7ff68d1 into main Dec 31, 2025
144 of 145 checks passed
@TooTallNate TooTallNate deleted the 12-29-pass_tsconfig_to_esbuild_for_support_of_paths_aliases branch December 31, 2025 09:00
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.

Monorepo bundling broken.

5 participants