+21
| The MIT License (MIT) | ||
| Copyright (c) 2014 Mathias Buus | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in | ||
| all copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| THE SOFTWARE. |
+5
-5
@@ -52,3 +52,3 @@ #!/bin/bash | ||
| trap on_exit EXIT | ||
| sh -c "true && $npm_package_scripts_start" # true && to force a subshell | ||
| sh -c "true && $npm_package_scripts_start \"\$@\"" start "$@" # true && to force a subshell | ||
| return $? | ||
@@ -60,3 +60,3 @@ } | ||
| print_header prestart "$npm_package_scripts_prestart" | ||
| sh -c "$npm_package_scripts_prestart" | ||
| sh -c "$npm_package_scripts_prestart \"\$@\"" prestart "$@" | ||
| return $? | ||
@@ -69,3 +69,3 @@ fi | ||
| print_header poststart "$npm_package_scripts_poststart" | ||
| sh -c "$npm_package_scripts_poststart" | ||
| sh -c "$npm_package_scripts_poststart \"\$@\"" poststart "$@" | ||
| return $? | ||
@@ -79,3 +79,3 @@ fi | ||
| trap on_proxy_exit SIGTERM | ||
| npm_start_fork=true $0 & | ||
| npm_start_fork=true "$0" "$@" & | ||
| PID=$! | ||
@@ -85,3 +85,3 @@ wait $PID | ||
| load_package | ||
| run_prestart && run_start && run_poststart | ||
| run_prestart "$@" && run_start "$@" && run_poststart "$@" | ||
| fi |
+1
-1
| { | ||
| "name": "npm-start", | ||
| "version": "1.3.2", | ||
| "version": "1.4.0", | ||
| "description": "'npm start' written in bash that propagates kill to subprocesses", | ||
@@ -5,0 +5,0 @@ "repository": { |
4835
31.71%4
33.33%