nyc 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## Change Log
|
|
2
2
|
|
|
3
|
+
### v3.2.2 (2015/09/11 22:02 -07:00)
|
|
4
|
+
|
|
5
|
+
- [#47](https://github.com/bcoe/nyc/pull/47) make the default exclude rules work on Windows (@bcoe)
|
|
6
|
+
- [#45](https://github.com/bcoe/nyc/pull/45) pull in patched versions of spawn-wrap and foreground-child, which support Windows (@bcoe)
|
|
7
|
+
- [#44](https://github.com/bcoe/nyc/pull/44) Adds --all option which adds 0% coverage reports for all files in project, regardless of whether code touches them (@ronkorving)
|
|
8
|
+
|
|
3
9
|
### v3.1.0 (2015/08/02 19:04 +00:00)
|
|
4
10
|
|
|
5
11
|
- [#38](https://github.com/bcoe/nyc/pull/38) fixes for windows spawning (@rmg)
|
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ function NYC (opts) {
|
|
|
25
25
|
var config = require(path.resolve(this.cwd, './package.json')).config || {}
|
|
26
26
|
config = config.nyc || {}
|
|
27
27
|
|
|
28
|
-
this.exclude = config.exclude || ['node_modules
|
|
28
|
+
this.exclude = config.exclude || ['node_modules[\/\\\\]', 'test[\/\\\\]', 'test\\.js']
|
|
29
29
|
if (!Array.isArray(this.exclude)) this.exclude = [this.exclude]
|
|
30
30
|
this.exclude = _.map(this.exclude, function (p) {
|
|
31
31
|
return new RegExp(p)
|