c8 7.11.2 → 7.11.3

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.
Files changed (2) hide show
  1. package/lib/report.js +2 -1
  2. package/package.json +1 -1
package/lib/report.js CHANGED
@@ -190,12 +190,13 @@ class Report {
190
190
  result: emptyReports
191
191
  })
192
192
  const workingDirs = this.src
193
+ const { extension } = this.exclude
193
194
  for (const workingDir of workingDirs) {
194
195
  this.exclude.globSync(workingDir).forEach((f) => {
195
196
  const fullPath = resolve(workingDir, f)
196
197
  if (!fileIndex.has(fullPath)) {
197
198
  const ext = extname(fullPath)
198
- if (ext === '.js' || ext === '.ts' || ext === '.mjs') {
199
+ if (extension.includes(ext)) {
199
200
  const stat = statSync(fullPath)
200
201
  const sourceMap = getSourceMapFromFile(fullPath)
201
202
  if (sourceMap) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c8",
3
- "version": "7.11.2",
3
+ "version": "7.11.3",
4
4
  "description": "output coverage reports using Node.js' built in coverage",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",