Skip to content

Accept multiple tsconfig.json (ex: client/server) #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
narf opened this issue Apr 10, 2015 · 3 comments
Closed

Accept multiple tsconfig.json (ex: client/server) #248

narf opened this issue Apr 10, 2015 · 3 comments
Milestone

Comments

@narf
Copy link

narf commented Apr 10, 2015

When you have both client and server folders with files in typescript in your project, you have to make different rules for compilation.
It would be awesome to be able to specify specific rules for directories.

How about going up in Hierarchy and merging all tsconfig.json with priority to deepest config before compiling a file?

@narf narf changed the title Accept multiple tsconfig.json (client/server) Accept multiple tsconfig.json (ex: client/server) Apr 10, 2015
@basarat basarat added this to the 3 Project milestone Apr 12, 2015
@basarat
Copy link
Member

basarat commented Apr 12, 2015

How about going up in Hierarchy and merging all tsconfig.json with priority to deepest config before compiling a file?

We have been giving quite a lot of thought to this. merging all tsconfig.json with priority to deepest config before compiling a file? alone will not work as e.g. the deepest config might be target:amd and the outer one will be target:commonjs and you want the result of both compilations.

The plan :

  • emit and build need to to be done for both tsconfig.json.
  • code intelligence only done for inner tsconfig (sort of like you are suggesting). That means you cannot mistakenly use outer tsconfig stuff in an inner file and you still get inner file stuff when editing an outer file.

This is a part of this milestone : https://github.com/TypeStrong/atom-typescript/milestones/3%20Project

@basarat
Copy link
Member

basarat commented Apr 12, 2015

I am hoping for stuff like : microsoft/TypeScript#2605 to happen before I start work on this.

Also the angular team is going to care about this so the solution might just come from microsoft. I'm keeping my eyes and ears open.

@basarat
Copy link
Member

basarat commented Jul 26, 2015

Will be delt with : #492 🌹

@basarat basarat closed this as completed Jul 26, 2015
@TypeStrong TypeStrong locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants