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

Arguments passed not correctly #1043

Closed
Deilan opened this issue Jun 5, 2017 · 3 comments
Closed

Arguments passed not correctly #1043

Deilan opened this issue Jun 5, 2017 · 3 comments

Comments

@Deilan
Copy link

Deilan commented Jun 5, 2017

Using the following nodemon.json:

{
    "exec": "ts-node {{pwd}}/src/index.ts"
}

Attempting to launch the following command nodemon --inspect=5858 or nodemon --inspect=5858 --config nodemon.json doesn't pass --inspect=5858 to Node.js, but passes it to ts-node at the end:

C:\Dev\node-typescript-vscode>nodemon --inspect=5858
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `ts-node C:\Dev\node-typescript-vscode/src/index.ts --inspect=5858`
Hello, world
[nodemon] clean exit - waiting for changes before restart
@stale
Copy link

stale bot commented Dec 5, 2017

This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up.
Thank you for contributing <3

@stale stale bot added the stale no activity for 2 weeks label Dec 5, 2017
@Deilan
Copy link
Author

Deilan commented Dec 5, 2017

@remy This is not stale.

@stale stale bot removed the stale no activity for 2 weeks label Dec 5, 2017
@remy
Copy link
Owner

remy commented Dec 5, 2017

This is being passed correctly, as defined by your exec.

I think what you need here is a feature request where by you can slot in the execArgs between your ts-node and arguments. i.e. something like:

{
    "exec": "ts-node {{execArgs}} {{pwd}}/src/index.ts"
}

I'm going to close as it can be worked around (if it's a single case use), or would happily take a PR to add this functionality (possibly mapping any nodemon option into the strings?).

@remy remy closed this as completed Dec 5, 2017
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