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

Add tsnode.json config support #335

Closed
chris-codaio opened this issue May 16, 2017 · 6 comments
Closed

Add tsnode.json config support #335

chris-codaio opened this issue May 16, 2017 · 6 comments

Comments

@chris-codaio
Copy link

Since mocha doesn't give us the ability to use ts-node command line options or run code as part of the registration hook, it would be wonderful if ts-node looked at a tsnode.json config file for settings.

@blakeembrey
Copy link
Member

See #4 too. How do you imagine this would work, as a fallback or default lookup? What do you think is limiting about using tsconfig.json and having it use extends?

@chris-codaio
Copy link
Author

I'm specifically interested in the --fast option, which AFAICT is not a tsconfig.json setting but rather something specific to ts-node.

I imagine this setting would take effect if not overridden via env var, CLI option, or register option.

@blakeembrey
Copy link
Member

Would you prefer a separate file or using the existing tsconfig.json file? Separate is a bit trickier.

@chris-codaio
Copy link
Author

I'd prefer re-using tsconfig.json with a ts-node specific section if that's possible. Would keep our config in one place.

@blakeembrey
Copy link
Member

Do you mind if I close this in favour of the other issue? I'm always open to a PR 😄

@chris-codaio
Copy link
Author

SGTM

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

No branches or pull requests

2 participants