For monorepos with multiple projects:

Move the problematic file into an already-included directory:

// scripts/tsconfig.json

"compilerOptions": "rootDir": "./src", "outDir": "./dist" , "include": ["src/**/*"]