Feature Request: Add support for "Solution Style" tsconfig.json file · Issue #1057 · TypeStrong/ts-node (original) (raw)

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#support-for-solution-style-tsconfigjson-files

// tsconfig.json { files: [], references: [ { path: "./scripts/tsconfig.scripts.json" }, { path: "./frontend/tsconfig.frontend.json" }, { path: "./backend/tsconfig.backend.json" }, ], }

// scripts/tsconfig.scripts.json { "compilerOptions": { "strict": true, "esModuleInterop": true, "module": "CommonJS", "lib": ["ESNext"], "forceConsistentCasingInFileNames": true, "importsNotUsedAsValues": "error" }, "include": ["./**/*.ts"] }

yarn ts-node scripts/foo.ts should auto use ./scripts/tsconfig.scripts.json