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

ts-node fails on composite projects #656

Closed
sgoll opened this issue Aug 6, 2018 · 1 comment
Closed

ts-node fails on composite projects #656

sgoll opened this issue Aug 6, 2018 · 1 comment

Comments

@sgoll
Copy link
Contributor

sgoll commented Aug 6, 2018

Running ts-node fails when the tsconfig.json file contains the new attribute "composite": true (microsoft/TypeScript#25600).

The error message is as follows:

TSError: ⨯ Unable to compile TypeScript:
error TS6304: Composite projects may not disable declaration emit.

The reason for this is that ts-node explicitly removes declaration from the TypeScript configuration but leaves composite intact, hence TypeScript complaining about this invalid combination.

The fix would be to adjust the fixConfig function to also always remove composite from the TypeScript configuration.

@blakeembrey
Copy link
Member

Closed with #657.

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

No branches or pull requests

2 participants