From fbe8efd5f59fba63871561e48667005dd7784e73 Mon Sep 17 00:00:00 2001 From: weyusi Date: Fri, 31 May 2019 13:49:54 +0930 Subject: [PATCH] chore(package): replace istanbul with nyc --- .gitignore | 1 + package.json | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 743d514..f7b2a82 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ tmp/ .idea/ coverage/ package-lock.json +.nyc_output/ diff --git a/package.json b/package.json index ed714e5..ffaed7f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "eslint": "eslint .", "test": "mocha test/index.js", - "test-cov": "istanbul cover --print both _mocha -- test/index.js" + "coverage": "nyc npm run test" }, "directories": { "lib": "./lib" @@ -21,7 +21,7 @@ "author": "Tommy Chen (http://zespia.tw)", "maintainers": [ "Abner Chou (http://abnerchou.me)" - ], + ], "license": "MIT", "dependencies": { "minimatch": "^3.0.0", @@ -33,8 +33,8 @@ "eslint": "^5.10.0", "eslint-config-hexo": "^3.0.0", "hexo": "^3.0.0", - "istanbul": "^0.4.2", - "mocha": "^6.0.2" + "mocha": "^6.0.2", + "nyc": "^14.1.0" }, "engines": { "node": ">=6.9.0"