You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nps foo.barnps is executing `foo.bar` : echo "bar"bar
Expected output:
$ nps foo.barnps is executing `foo.bar` : nps foo._baz foo._barnps is executing `foo._baz` : echo "baz"baznps is executing `foo._bar` : echo "bar"bar
Problem description:
If you run commands in series and one of the commands has the same name as a parent, but with underscore (at the beginning or at the end or both. no matter), it will execute only that command ignoring all other scripts in the series.
Suggested solution:
Looks like there are no special syntax around underscores, so I can assume, that this was due to case conversion during command parsing. I haven't looked at the source code, to provide an actual solution. But I can prepare a fix if this issue will be considered a bug.
The text was updated successfully, but these errors were encountered:
nps
version: 5.8.1node
version: 8.0.0npm
version: 5.6.0Scripts file (or at least the relevant bits):
The command executed:
nps foo.bar
The output:
Expected output:
Problem description:
If you run commands in series and one of the commands has the same name as a parent, but with underscore (at the beginning or at the end or both. no matter), it will execute only that command ignoring all other scripts in the series.
Suggested solution:
Looks like there are no special syntax around underscores, so I can assume, that this was due to case conversion during command parsing. I haven't looked at the source code, to provide an actual solution. But I can prepare a fix if this issue will be considered a bug.
The text was updated successfully, but these errors were encountered: