The Wayback Machine - https://web.archive.org/web/20241202020606/https://github.com/microsoft/TypeScript/issues/41865
Skip to content
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

Suport single file compilation with --project tsconfig.json #41865

Closed
5 tasks
cdalexndr opened this issue Dec 7, 2020 · 3 comments
Closed
5 tasks

Suport single file compilation with --project tsconfig.json #41865

cdalexndr opened this issue Dec 7, 2020 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@cdalexndr
Copy link

Search Terms

tsconfig.json single file compilation

Suggestion

tsc --project tsconfig.json somefile.ts

Use Cases

Inter-operability with third party libraries that use tsconfig.json.
This way, you can manually compile using same configuration file.

Examples

tsc --project tsconfig.json --outFile bundle.js sourcefile.ts
manually compile a bundle

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

Related: #5858

@RyanCavanaugh
Copy link
Member

I don't understand the use case. You can already use configuration file inheritance to share a common tsconfig file for settings purposes. Does this mean that the file list would replace the files listed in the tsconfig, or augment it? Maybe this is a duplicate of #27379

@cdalexndr
Copy link
Author

I don't use a file list in tsconfig.json.
Instead of creating a new tsconfig file just for manual usage, I would like for the compiler to get the settings from tsconfig.json and use them when compiling input files.

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Dec 8, 2020
@RyanCavanaugh
Copy link
Member

Gotcha, thanks. That'd be the same as #27379 then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants