-
Notifications
You must be signed in to change notification settings - Fork 51
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 a Option to kill current exectution when restarting #100
Comments
great feature! |
Would love to see this feature! |
This package seems quite useless without this feature, or I'm completely missing how to use it. My command runs an express server and a restart will try to start that server again causing port conflicts. I've tried to listen to various process events, but nothing appears to be fired. In the end I ended up implementing chokidar through a js file. |
I worked around this issue by using "scripts": {
"watch-server": "chokidar --initial 'src/*.ts' 'src/server/**/*.ts' -c 'pkill -f \"yarn.js run-server\" ; yarn run-server'",
} Use |
@connorjclark this worked for me, but for Yarn 3 I needed to adjust it to accommodate the version number and different extension in the yarn script: … -c \"pkill -f 'yarn-.*.cjs <script>'; yarn <script>\" |
There is an old PR with this implemented #31 |
No description provided.
The text was updated successfully, but these errors were encountered: