Skip to content

Commit

Permalink
0.1.5: quiet flag is a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Zuber committed Jul 12, 2016
1 parent 7bb0ff1 commit 21efb07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The keys of the `"watch"` config should match the names of your `"scripts"`, and
the values should be a glob pattern or array of glob patterns to watch.

If you need to watch files with extensions other than those that `nodemon` watches [by default](https://github.com/remy/nodemon#specifying-extension-watch-list) (`.js`, `.coffee`, `.litcoffee`), you can set the value to an object with `patterns` and `extensions` keys. You can also add an `ignore` key (a list or a string) to ignore specific files. Finally, you can add a `quiet` flag to hide the script name in any output on stdout or stderr.
> The `quiet` flag was changed from a `string` to a `boolean` in `0.1.5`. Backwards compatability will be kept for two patch versions.
```javascript
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npm-watch",
"version": "0.1.4",
"version": "0.1.5",
"description": "run scripts from package.json when files change",
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion watch-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = function watchPackage (pkgDir, exit) {
cwd: pkgDir,
stdio: 'pipe'
})
if (quiet === true) {
if (quiet === true || quiet === 'true') {
proc.stdout.pipe(stdin.stdout)
proc.stderr.pipe(stdin.stderr)
} else {
Expand Down

0 comments on commit 21efb07

Please sign in to comment.