Allow to specify the tsconfig.json filename explicitly
See original GitHub issuecurrently VSCode uses the file with the exact name tsconfig.json
in the folder as the project file for a typescript project,
i have a few other project files named differently for corresponding sub-projects inside the same folder, I wish there was a way to tell VSCode to use one of them rather then the default tsconfig.json
Issue Analytics
- State:
- Created 7 years ago
- Reactions:137
- Comments:36 (3 by maintainers)
Top Results From Across the Web
TSConfig Reference - Docs on every TSConfig option
Specifies an array of filenames or patterns to include in the program. These filenames are resolved relative to the directory containing the tsconfig.json...
Read more >Webpack ts-loader : change tsconfig filename - Stack Overflow
In Webpack 4 you need to specify the options into a use object: use: [{ loader: 'ts-loader', options: { configFile: "tsconfig.webpack.json" } }]....
Read more >TypeScript - webpack
Let's set up a configuration to support JSX and compile TypeScript down to ES5... ... See TypeScript's documentation to learn more about tsconfig.json...
Read more >The tsconfig.json File - Codecademy
Let's explore what the tsconfig.json file is for. ... TypeScript features are extremely useful: for one, it allows us to add types to...
Read more >tsconfig.json - TypeScript - JavaScript that scales.
By invoking tsc with no input files and a --project (or just -p ) command line option that specifies the path of a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would love to see this implemented. I have problems for tests files that I think I would resolve if I can specify a tsconfig file to vscode.
The problem is my configuration for tsconfig excludes test files:
When I open one of these files in vscode, it can’t resolve absolute paths I specify in compilerOptions:
So I get a lot of ugly warnings
At the moment the workaround I’m using is leave tsconfig file for vscode dev development, and use differents tsconfig files for dev and production builds
I have a slightly different scenario that causes me to want this feature. My folder structure is:
MainProject/ –config/ ----bs-config.json ----tsconfig.json ----tslint.json –src/ –build/
I’m trying to put all my config files in that config folder instead of polluting the root. This works except that VSCode won’t detect my tsconfig.json in there.