### π Search Terms "rootDirs", "outDir" ### π Version & Regression Information - This fails with `typescript@5.8.3` ### β― Playground Link _No response_ ### π» Code ```typescript // src/index.ts function foo() { return 'bar'; } // test/index.ts function foo() { return 'bar'; } // tsconfig.json {"compilerOptions": {"outDir": "./dist", "rootDirs": ["./src", "./test"]}} ``` ### π Actual behavior Running `tsc` with both `src/index.ts` and `test/index.ts` outputs 2 files: `dist/src/index.js` and `dist/test/index.js`. BUT running the same command without `test/index.ts` outputs 1 file: `dist/index.js`, here the `src` directory is missing. ### π Expected behavior running the same command without `test/index.ts` should output 1 file: `dist/src/index.js`, (with the `src`directory). ### Additional information about the issue _No response_