Skip to content

Consider supporting jsconfig.json in compilation #6561

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
zhengbli opened this issue Jan 21, 2016 · 0 comments
Closed

Consider supporting jsconfig.json in compilation #6561

zhengbli opened this issue Jan 21, 2016 · 0 comments
Assignees
Labels
Committed The team has roadmapped this issue Suggestion An idea for TypeScript

Comments

@zhengbli
Copy link
Contributor

We are adding support for using jsconfig.json files to define a project and compilation options in the language service, and we should consider supporting jsconfig.json files in tsc compilation as well.

Pros:

  • In the cases of mixed .ts files and .js files, the user always needs only one json files for editing and compiling
  • More compatible with existing jsconfig.json users and one less step for them to adopt TypeScript in their projects

Cons:

  • It seems to be counter-intuitive behavior that a jsconfig drives the TypeScript compiler
  • jsconfig.json and tsconfig.json have different default values for certain compiler options. For example, allowJs is default to true for jsconfig. This may lead to unexpected outcome.
@zhengbli zhengbli self-assigned this Jan 21, 2016
@DanielRosenwasser DanielRosenwasser added Suggestion An idea for TypeScript Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. In Discussion Not yet reached consensus Committed The team has roadmapped this issue and removed In Discussion Not yet reached consensus labels Jan 22, 2016
@DanielRosenwasser DanielRosenwasser removed the Needs Proposal This issue needs a plan that clarifies the finer details of how it could be implemented. label Jan 22, 2016
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 1.8 milestone Jan 22, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Committed The team has roadmapped this issue Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants