Skip to content

Commit 13979a7

Browse files
authored
fix: stop installing monocart-coverage-reports (#535)
1 parent 15ac690 commit 13979a7

File tree

5 files changed

+24
-29
lines changed

5 files changed

+24
-29
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ c8 --experimental-monocart --reporter=v8 --reporter=console-details node foo.js
134134
NOTE: Monocart requires additional `monocart-coverage-reports` to be installed:
135135

136136
```sh
137-
npm i monocart-coverage-reports --save-dev
137+
npm i monocart-coverage-reports@2 --save-dev
138138
```
139139

140140
## Ignoring Uncovered Lines, Functions, and Blocks

Diff for: lib/report.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Report {
103103
try {
104104
MCR = await this.importMonocart()
105105
} catch (e) {
106-
console.error('--experimental-monocart requires the plugin monocart-coverage-reports. Run: "npm i monocart-coverage-reports --save-dev"')
106+
console.error('--experimental-monocart requires the plugin monocart-coverage-reports. Run: "npm i monocart-coverage-reports@2 --save-dev"')
107107
process.exit(1)
108108
}
109109
return MCR

Diff for: package-lock.json

+17-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@
5151
"chai-jest-snapshot": "^2.0.0",
5252
"cross-env": "^7.0.3",
5353
"mocha": "^9.2.2",
54+
"monocart-coverage-reports": "^2.8.3",
5455
"standard": "^16.0.4",
5556
"ts-node": "^10.7.0",
5657
"typescript": "^5.0.0"
5758
},
58-
"peerDependencies": {
59-
"monocart-coverage-reports": "^2.8.3"
59+
"c8Requirements": {
60+
"monocart-coverage-reports": "^2"
6061
},
6162
"engines": {
6263
"node": ">=18"

Diff for: test/integration.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ All files | 100 | 100 | 100 | 100 |
748748
`;
749749
750750
exports[`c8 mergeAsync monocart report check import monocart 1`] = `
751-
",,--experimental-monocart requires the plugin monocart-coverage-reports. Run: \\"npm i monocart-coverage-reports --save-dev\\"
751+
",,--experimental-monocart requires the plugin monocart-coverage-reports. Run: \\"npm i monocart-coverage-reports@2 --save-dev\\"
752752
"
753753
`;
754754
@@ -1146,7 +1146,7 @@ All files | 100 | 100 | 100 | 100 |
11461146
`;
11471147
11481148
exports[`c8 monocart report check import monocart 1`] = `
1149-
",,--experimental-monocart requires the plugin monocart-coverage-reports. Run: \\"npm i monocart-coverage-reports --save-dev\\"
1149+
",,--experimental-monocart requires the plugin monocart-coverage-reports. Run: \\"npm i monocart-coverage-reports@2 --save-dev\\"
11501150
"
11511151
`;
11521152

0 commit comments

Comments
 (0)