diff --git a/README.md b/README.md index da6a728..918fe52 100644 --- a/README.md +++ b/README.md @@ -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 { diff --git a/package.json b/package.json index 6a17c18..49d5b61 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/watch-package.js b/watch-package.js index edcbaac..b418d5a 100644 --- a/watch-package.js +++ b/watch-package.js @@ -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 {