Skip to content

Commit

Permalink
fix: use package.version for CACHE_VERSION based on @timoxley's review
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Sep 15, 2016
1 parent ca5e887 commit c8a49e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ try {
ProcessInfo = require('./lib/process.js')
}

var CACHE_VERSION = '2'
// bust cache whenever nyc is upgraded, this prevents
// crashers caused by instrumentation updates.
var CACHE_VERSION = require('./package.json').version

/* istanbul ignore next */
if (/index\.covered\.js$/.test(__filename)) {
Expand Down

0 comments on commit c8a49e8

Please sign in to comment.