Files
Matt MastracciandGitHub 92daf78e04 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 -->
2026-04-14 14:57:50 -06:00

14 lines
249 B
JSON

{
"compilerOptions": {
"strict": true,
"target": "ES2022",
"module": "NodeNext",
"rootDir": "src",
"types": ["node"],
"outDir": "dist",
"declaration": true,
"declarationDir": "dist"
},
"include": ["src/**/*"]
}