File tree 5 files changed +12
-2
lines changed
5 files changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ github : # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
2
+ open_collective : nodemon
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ daysUntilClose: 7
6
6
exemptLabels :
7
7
- pinned
8
8
- security
9
+ - not-stale
9
10
# Label to use when marking an issue as stale
10
11
staleLabel : stale
11
12
# Comment to post when marking an issue as stale. Set to `false` to disable
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ module.exports = {
7
7
execMap : {
8
8
py : 'python' ,
9
9
rb : 'ruby' ,
10
+ ts : 'ts-node' ,
10
11
// more can be added here such as ls: lsc - but please ensure it's cross
11
12
// compatible with linux, mac and windows, or make the default.js
12
13
// dynamically append the `.cmd` for node based utilities
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ function run(options) {
91
91
const shouldFork =
92
92
! config . options . spawn &&
93
93
! inBinPath &&
94
- firstArg . indexOf ( '-' ) === - 1 && // don't fork if there's a node exec arg
94
+ ! ( firstArg . indexOf ( '-' ) === 0 ) && // don't fork if there's a node exec arg
95
95
firstArg !== 'inspect' && // don't fork it's `inspect` debugger
96
96
executable === 'node' && // only fork if node
97
97
utils . version . major > 4 // only fork if node version > 4
@@ -133,6 +133,12 @@ function run(options) {
133
133
bus . stdout = child . stdout ;
134
134
bus . stderr = child . stderr ;
135
135
}
136
+
137
+ if ( shouldFork ) {
138
+ child . on ( 'message' , function ( message , sendHandle ) {
139
+ bus . emit ( 'message' , message , sendHandle ) ;
140
+ } ) ;
141
+ }
136
142
}
137
143
138
144
bus . emit ( 'start' ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ var utils = (module.exports = {
69
69
args . map ( function ( arg ) {
70
70
// if an argument contains a space, we want to show it with quotes
71
71
// around it to indicate that it is a single argument
72
- if ( arg . indexOf ( ' ' ) === - 1 ) {
72
+ if ( arg . length > 0 && arg . indexOf ( ' ' ) === - 1 ) {
73
73
return arg ;
74
74
}
75
75
// this should correctly escape nested quotes
You can’t perform that action at this time.
0 commit comments