From 422c8b5e4cac6a79cd35b4e86731476dcbeec7e4 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Tue, 6 Oct 2020 19:16:52 +0200 Subject: [PATCH] [pkg] Replace nyc with c8 --- .gitignore | 1 - .travis.yml | 2 +- package.json | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index dd5fe6b..a0d2778 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ node_modules/ -.nyc_output/ coverage/ dist/ npm-debug.log diff --git a/.travis.yml b/.travis.yml index 4a86054..7333c3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ matrix: script: - "npm run ${SCRIPT}" after_script: - - 'if [ "${SCRIPT}" == "test" ]; then nyc report --reporter=text-lcov | coveralls; fi' + - 'if [ "${SCRIPT}" == "test" ]; then c8 report --reporter=text-lcov | coveralls; fi' notifications: irc: channels: diff --git a/package.json b/package.json index 4823832..f932481 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "browserify": "rm -rf dist && mkdir -p dist && browserify index.js -s URLParse -o dist/url-parse.js", "minify": "uglifyjs dist/url-parse.js --source-map -cm -o dist/url-parse.min.js", - "test": "nyc --reporter=html --reporter=text mocha test/test.js", + "test": "c8 --reporter=html --reporter=text mocha test/test.js", "test-browser": "node test/browser.js", "prepublishOnly": "npm run browserify && npm run minify", "watch": "mocha --watch test/test.js" @@ -39,9 +39,9 @@ "devDependencies": { "assume": "^2.2.0", "browserify": "^16.2.3", + "c8": "^7.3.1", "coveralls": "^3.1.0", "mocha": "^8.0.1", - "nyc": "^15.0.0", "pre-commit": "^1.2.2", "sauce-browsers": "^2.0.0", "sauce-test": "^1.3.3",