Skip to content

Custom tsconfig path #542

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

Open
Akany opened this issue Oct 7, 2016 · 13 comments
Open

Custom tsconfig path #542

Akany opened this issue Oct 7, 2016 · 13 comments

Comments

@Akany
Copy link

Akany commented Oct 7, 2016

Is it possible to set plugin path to tsconfig ?

@DanielRosenwasser
Copy link
Member

Whoops, misread the issue - what exactly do you mean?

@Akany
Copy link
Author

Akany commented Oct 9, 2016

Im using angular cli app. It adds tsconfig in src folder - not in root.
Plugin doesnt see tsconfig.

@mhegazy
Copy link
Contributor

mhegazy commented Oct 10, 2016

@alexeagle is there a configuration to that can help move the tsconfig.json higher?

@alexeagle
Copy link

No, I believe the layout is fixed. But why is the plugin only looking in the root dir? Many projects keep their tsconfig.json under a src directory. I think this is a good idea, then you have a separate test/tsconfig.json since settings and deps are often different.
cc @hansl

@hansl
Copy link

hansl commented Oct 11, 2016

Agreed with Alex. There are many reasons why having multiple tsconfig spread through a project is a good idea.

@jednano
Copy link

jednano commented Nov 23, 2016

In my case, I desire a separate tsconfig.json file for my npm prepublish command, which would allow me to transpile source files only (not test files) into a ./dist dir with definitions, but not sourcemaps.

@FourwingsY
Copy link

Is this issue still not yet solved?

@KubaJastrz
Copy link

https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/26bb7c57a31fc1b62bfc50e8ec652f7ef3f49ff1/typescript/commands/build.py#L22 passes project directory as a -p argument to tsc command, so it looks only for default tsconfig.json filename. Would be very helpful to allow different file, or even have different configs per folder in project.

@rgant
Copy link
Contributor

rgant commented Mar 7, 2019

This is an issue for me in my Angular project because while I want to allow es6 in my test spec files I don't want that in my actual app. Angular supports this natively by having one tsconfig file for spec and another for the app. Would be nice if I could configure this plugin to support that.

@maciej-zuk
Copy link

Any updates on this one?

@dandee
Copy link

dandee commented Mar 11, 2021

I've got the same issue.

@kraktus
Copy link

kraktus commented Jul 18, 2021

bump, same with Sublime 4

@jpike88
Copy link

jpike88 commented Oct 3, 2022

Wow I wish I saw this issue before messing around. This makes TS development untenable aside from the most basic of scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests