File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ function NYC (config) {
9999
100100NYC . prototype . _createTransform = function ( ext ) {
101101 var opts = {
102- salt : Hash . salt ,
102+ salt : Hash . salt ( this . config ) ,
103103 hashData : ( input , metadata ) => [ metadata . filename ] ,
104104 onHash : ( input , metadata , hash ) => {
105105 this . hashCache [ metadata . filename ] = hash
Original file line number Diff line number Diff line change 11'use strict'
22
3+ function getInvalidatingOptions ( config ) {
4+ return [
5+ 'compact' ,
6+ 'esModules' ,
7+ 'ignoreClassMethods' ,
8+ 'instrument' ,
9+ 'instrumenter' ,
10+ 'plugins' ,
11+ 'preserveComments' ,
12+ 'produceSourceMap' ,
13+ 'sourceMap'
14+ ] . reduce ( ( acc , optName ) => {
15+ acc [ optName ] = config [ optName ]
16+ return acc
17+ } , { } )
18+ }
19+
320module . exports = {
4- salt : JSON . stringify ( {
5- istanbul : require ( 'istanbul-lib-coverage/package.json' ) . version ,
6- nyc : require ( '../package.json' ) . version
7- } )
21+ salt ( config ) {
22+ return JSON . stringify ( {
23+ modules : {
24+ 'istanbul-lib-instrument' : require ( 'istanbul-lib-instrument/package.json' ) . version ,
25+ nyc : require ( '../package.json' ) . version
26+ } ,
27+ nycrc : getInvalidatingOptions ( config )
28+ } )
29+ }
830}
You can’t perform that action at this time.
0 commit comments