question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude option ignored unless in nyc stanza of package.json

See original GitHub issue

When using babel-plugin-istanbul, it appears if the nyc configuration object is included in the nyc stanza of package.json, everything is fine. But when attempting to use the same options in .nycrc or via the command-line, they are ignored (exclude, in particular).

~Repro examples: https://github.com/wKovacs64/nyc-exclude-test~ (deleted)

Side note: in my real projects where I first ran into this, I require babel-register with mocha as opposed to nyc. The nyc documentation does it in the nyc configuration, so that’s what I used in my reproduction cases, but it doesn’t appear to make a difference.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bcoecommented, Feb 9, 2017

@wKovacs64 @321ckatz123 this is published to latest now 👍

0reactions
321ckatz123commented, Feb 9, 2017

@bcoe, I understand how to get it now. I was more asking when is the next release (which I assume includes this) is going to get pushed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

istanbuljs/nyc - Gitter
@bcoe I'm able to reproduce some weirdness when using babel-plugin-istanbul where the nyc exclude option is being ignored in .nycrc and on the...
Read more >
nyc - npm
You can tell nyc to exclude specific files and directories by adding an nyc.exclude array to your package.json . Each element of the...
Read more >
How to exclude files from Istanbul nyc coverage report
Another important option is excludeAfterRemap. By default it is false, which might let excluded files through. If you are excluding the files, ...
Read more >
NYC: The Istanbul Command Line interface - Morioh
If there are paths specified in the exclude array, then the set of instrumented files ... If nyc fails to find a directory...
Read more >
How to ignore files from your npm package | Zell Liew
First, npm will check your repository for a .gitignore file. If there is a .gitignore file, npm will ignore files according to what's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found