Ts-node: Add tsnode.json config support

Created on 16 May 2017  路  6Comments  路  Source: TypeStrong/ts-node

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.

Most helpful comment

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

All 6 comments

See https://github.com/TypeStrong/ts-node/issues/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?

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.

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

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

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

SGTM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aj-r picture aj-r  路  3Comments

mattdell picture mattdell  路  4Comments

dakom picture dakom  路  3Comments

sanex3339 picture sanex3339  路  4Comments

motss picture motss  路  4Comments