Unverified Commit 92daf78e authored by Matt Mastracci's avatar Matt Mastracci Committed by GitHub

Fix devlow-bench: tsconfig rootDir mismatch with package.json bin (#92800)

## What

Change `rootDir` from `"."` to `"src"` in
`turbopack/packages/devlow-bench/tsconfig.json`.

## Why

The `bin` entry in `package.json` points to `dist/cli.js`. With
`rootDir: "."`, `tsc` outputs `src/cli.ts` → `dist/src/cli.js` — the bin
path is never produced by the build.

The `pnpm:devPreinstall` hook (from #91016) creates a placeholder stub
at `dist/cli.js`. Since the build never overwrites it, turbo caches the
placeholder as part of `dist/**`. On subsequent runs, turbo restores the
cached placeholder, and devlow-bench fails with "Local workspace has not
been built yet."

## How

One-line change: `rootDir: "."` → `rootDir: "src"`. Now `tsc` outputs
`src/cli.ts` → `dist/cli.js`, matching the `bin` entry. The placeholder
gets properly overwritten by the build.

<!-- NEXT_JS_LLM_PR -->
parent 6a73ecb9
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"strict": true, "strict": true,
"target": "ES2022", "target": "ES2022",
"module": "NodeNext", "module": "NodeNext",
"rootDir": ".", "rootDir": "src",
"types": ["node"], "types": ["node"],
"outDir": "dist", "outDir": "dist",
"declaration": true, "declaration": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment