-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Support all node CLI flags #12
Comments
May be tsc flags such as |
That's probably doable, but it is already possible using |
I'm personally interested in passing the On the general side, rather than fancy auto-detect that Babel did there, how about something blindly forwards user specified options on the generated node command, e.g. |
@neomantra yes, I'm perfectly happy with that - that would be my preferred solution. |
@blakeembrey Thanks, I was just looking for this feature today, and see it was just pushed yesterday with 0.9.2. But it's not clear to us it - is it documented somewhere? |
@danielnaab |
@blakeembrey Hmm, I had tried |
You're right, sorry. Looks like the functionality is a little broken because of https://github.com/TypeStrong/ts-node/blob/master/src/_bin.ts#L72. We might need to invert that check and consider every argument that's a string as a string and treat the rest as boolean. |
Either that, or have the first bin script (https://github.com/TypeStrong/ts-node/blob/master/src/bin.ts) strip out the node arguments it finds first before passing them along. |
@danielnaab Fixed it with e9c7012. Update to |
@blakeembrey Excellent, thank you very much! |
Should be able to enable things like
--harmony
fromts-node --harmony script.ts
. Good place to start: https://github.com/babel/babel/blob/master/packages/babel-cli/src/babel-node.jsThe text was updated successfully, but these errors were encountered: