-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
cli: make run and watch modes friends #53457
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
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
@nodejs/tooling |
Why is it wonky? |
% ../node/node --watch --run a test this a b
Running 'arr=("$@"); echo $# ${#arr} ${#@}'
0 0 0 test this a b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still lgtm
I could take a look at exposing a JS binding for the task runner but it would need a variety of changes if it is to handle both scenarios due to IPC and some event management. If possible I think keeping them separated at least until the exact event management etc of |
This is without tests until some conversation is had because it is a bit wonky. This makes --watch work with --run so you can do things like
node --watch-path src --run start
with the followingpackage.json
:Demo
Screen.Recording.2024-06-14.at.2.48.26.PM.mov