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

tsconfig cannot be specified along with an explicit list of files to compile - TS5042 #22649

Closed
ntabernero opened this issue Mar 16, 2018 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@ntabernero
Copy link

We are using Typescript for our operational project and have found it very useful. However, we have some use cases where we need to compile one (or a few) source files along with most of the dependencies using the options encoded in tsconfig. Sadly, using the command line options won't quite get us where we would like to be (notably the absence of either a "rootDirs" and/or "paths" command line options).

We would like to be able to do "tsc -p foo.ts" (or any equivalent workaround such as enabling "rootDirs" and "paths" as command line options).

@mhegazy mhegazy added Suggestion An idea for TypeScript In Discussion Not yet reached consensus labels Mar 28, 2018
@simonbuchan
Copy link

When I've wanted this, it's generally been either:

  • I'm just trying to see what typescript is outputting for some file, a-la babel CLI, here the option to just output to stdout (with highlighting?) would be preferred
  • I'm trying to set up some npm-script based "multi-project" build thing, where I have configs for various envs (e.g. browser, server, shared, spec, and e2e) for each I'm re-using. I've now settled on the other split, a tsconfig per project, and overriding the options for envs using CLI options. Being able to do something like "stack" configs on the CLI would be preferred.

@RyanCavanaugh
Copy link
Member

Duping to #12958

@RyanCavanaugh RyanCavanaugh added Duplicate An existing issue was already created and removed In Discussion Not yet reached consensus Suggestion An idea for TypeScript labels Aug 22, 2018
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

4 participants