-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Can't pass paths via command-line #10137
Comments
Any time you put information inside of a build config and not in the tsconfig.json, you break TypeScript's editor support (e.g. in this case, the editor also wants to know which files are built, so it can index their symbols). If your tool really wants to dynamically generate file lists, the most user-supportive thing to do would be to generate a |
Hi, I appreciate this feedback and I agree with your sentiment with regards to using source-controlled build artifacts. That said, an important feature of tools like Grunt-ts is allowing developers to customize their build system to use a configuration that is different than their editing environment if they want to, and that's what I'm asking about. |
@evmar our use case the project |
sorry for the delayed reply. yes. it is only supported in tsconfig.json. so is |
Not sure it is worth the hassle. we have to come up with a serialized format for paths, and that can be complicated, and very hard to read. unless you say it is JSON. |
@agubler consider using the new configuration inheritance feature added in TS 2.1 instead. |
As we're preparing to update grunt-ts to support TypeScript 2.0's features, it has come to our attention that it's not possible to pass
paths
via the command-line.tsc --paths
returnserror TS6064: Option 'paths' can only be specified in 'tsconfig.json' file.
This is a problem for us as we only operate via the command-line and support a more dynamic experience via the Grunt options (which can be determined programmatically, etc.).
User @agubler reported this to us here: Issue: TypeStrong/grunt-ts#339
Is
--paths
not supported on the command-line just because it's hard to reliably accept JSON from the command-line? Would you consider a pull request to add this?The text was updated successfully, but these errors were encountered: