Comparing version 4.1.4 to 4.1.5
@@ -6,3 +6,3 @@ #!/usr/bin/env node | ||
const { outputReport } = require('../lib/commands/report') | ||
const mkdirp = require('mkdirp') | ||
const { promises } = require('fs') | ||
const { promisify } = require('util') | ||
@@ -25,11 +25,22 @@ const rimraf = require('rimraf') | ||
} else { | ||
// fs.promises was not added until Node.js v10.0.0, if it doesn't | ||
// exist, assume we're Node.js v8.x and skip coverage. | ||
if (!promises) { | ||
foreground(hideInstrumenterArgs(argv)) | ||
return | ||
} | ||
if (argv.clean) { | ||
await promisify(rimraf)(argv.tempDirectory) | ||
} | ||
// allow c8 to run on Node 8 (coverage just won't work). | ||
await promisify(mkdirp)(argv.tempDirectory) | ||
await promises.mkdir(argv.tempDirectory, { recursive: true }) | ||
process.env.NODE_V8_COVERAGE = argv.tempDirectory | ||
foreground(hideInstrumenterArgs(argv), async (done) => { | ||
await outputReport(argv) | ||
try { | ||
await outputReport(argv) | ||
} catch (err) { | ||
console.error(err.stack) | ||
process.exitCode = 1 | ||
} | ||
done() | ||
@@ -36,0 +47,0 @@ }) |
@@ -1,5 +0,15 @@ | ||
# Change Log | ||
# Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
### [4.1.5](https://github.com/bcoe/c8/compare/v4.1.4...v4.1.5) (2019-05-11) | ||
### Bug Fixes | ||
* exit with code 1 when report output fails ([#92](https://github.com/bcoe/c8/issues/92)) ([a27b694](https://github.com/bcoe/c8/commit/a27b694)) | ||
* remove the unmaintained mkdirp dependency ([#91](https://github.com/bcoe/c8/issues/91)) ([a465b65](https://github.com/bcoe/c8/commit/a465b65)) | ||
## [4.1.4](https://github.com/bcoe/c8/compare/v4.1.3...v4.1.4) (2019-05-03) | ||
@@ -6,0 +16,0 @@ |
{ | ||
"name": "c8", | ||
"version": "4.1.4", | ||
"version": "4.1.5", | ||
"description": "output coverage reports using Node.js' built in coverage", | ||
@@ -41,7 +41,6 @@ "main": "index.js", | ||
"istanbul-lib-report": "^2.0.1", | ||
"istanbul-reports": "^2.0.0", | ||
"mkdirp": "^0.5.1", | ||
"istanbul-reports": "^2.2.4", | ||
"rimraf": "^2.6.2", | ||
"test-exclude": "^5.0.0", | ||
"v8-to-istanbul": "^3.1.1", | ||
"v8-to-istanbul": "^3.1.3", | ||
"yargs": "^13.1.0", | ||
@@ -56,3 +55,3 @@ "yargs-parser": "^10.1.0" | ||
"standard": "^12.0.1", | ||
"standard-version": "^5.0.2" | ||
"standard-version": "^6.0.1" | ||
}, | ||
@@ -59,0 +58,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24676
12
412
5
- Removedmkdirp@^0.5.1
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
Updatedistanbul-reports@^2.2.4
Updatedv8-to-istanbul@^3.1.3