Skip to content

Commit 422c8b5

Browse files
committed
[pkg] Replace nyc with c8
1 parent 933809d commit 422c8b5

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules/
2-
.nyc_output/
32
coverage/
43
dist/
54
npm-debug.log

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ matrix:
1616
script:
1717
- "npm run ${SCRIPT}"
1818
after_script:
19-
- 'if [ "${SCRIPT}" == "test" ]; then nyc report --reporter=text-lcov | coveralls; fi'
19+
- 'if [ "${SCRIPT}" == "test" ]; then c8 report --reporter=text-lcov | coveralls; fi'
2020
notifications:
2121
irc:
2222
channels:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"browserify": "rm -rf dist && mkdir -p dist && browserify index.js -s URLParse -o dist/url-parse.js",
88
"minify": "uglifyjs dist/url-parse.js --source-map -cm -o dist/url-parse.min.js",
9-
"test": "nyc --reporter=html --reporter=text mocha test/test.js",
9+
"test": "c8 --reporter=html --reporter=text mocha test/test.js",
1010
"test-browser": "node test/browser.js",
1111
"prepublishOnly": "npm run browserify && npm run minify",
1212
"watch": "mocha --watch test/test.js"
@@ -39,9 +39,9 @@
3939
"devDependencies": {
4040
"assume": "^2.2.0",
4141
"browserify": "^16.2.3",
42+
"c8": "^7.3.1",
4243
"coveralls": "^3.1.0",
4344
"mocha": "^8.0.1",
44-
"nyc": "^15.0.0",
4545
"pre-commit": "^1.2.2",
4646
"sauce-browsers": "^2.0.0",
4747
"sauce-test": "^1.3.3",

0 commit comments

Comments
 (0)