@vitest/coverage-istanbul 0.34.2 → 0.34.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.
@@ -11,6 +11,7 @@ interface TestExclude {
11
11
  exclude?: string | string[];
12
12
  extension?: string | string[];
13
13
  excludeNodeModules?: boolean;
14
+ relativePath?: boolean;
14
15
  }): {
15
16
  shouldInstrument(filePath: string): boolean;
16
17
  glob(cwd: string): Promise<string[]>;
package/dist/provider.js CHANGED
@@ -144,7 +144,8 @@ class IstanbulCoverageProvider extends BaseCoverageProvider {
144
144
  include: typeof this.options.include === "undefined" ? void 0 : [...this.options.include],
145
145
  exclude: [...defaultExclude, ...defaultInclude, ...this.options.exclude],
146
146
  excludeNodeModules: true,
147
- extension: this.options.extension
147
+ extension: this.options.extension,
148
+ relativePath: !this.options.allowExternal
148
149
  });
149
150
  }
150
151
  resolveOptions() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/coverage-istanbul",
3
3
  "type": "module",
4
- "version": "0.34.2",
4
+ "version": "0.34.3",
5
5
  "description": "Istanbul coverage provider for Vitest",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  "@types/istanbul-lib-source-maps": "^4.0.1",
55
55
  "@types/istanbul-reports": "^3.0.1",
56
56
  "pathe": "^1.1.1",
57
- "vitest": "0.34.2"
57
+ "vitest": "0.34.3"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "rimraf dist && rollup -c",