$
This commit is contained in:
30
node_modules/nyc/lib/hash.js
generated
vendored
Normal file
30
node_modules/nyc/lib/hash.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict'
|
||||
|
||||
function getInvalidatingOptions (config) {
|
||||
return [
|
||||
'compact',
|
||||
'esModules',
|
||||
'ignoreClassMethods',
|
||||
'instrument',
|
||||
'instrumenter',
|
||||
'parserPlugins',
|
||||
'preserveComments',
|
||||
'produceSourceMap',
|
||||
'sourceMap'
|
||||
].reduce((acc, optName) => {
|
||||
acc[optName] = config[optName]
|
||||
return acc
|
||||
}, {})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
salt (config) {
|
||||
return JSON.stringify({
|
||||
modules: {
|
||||
'istanbul-lib-instrument': require('istanbul-lib-instrument/package.json').version,
|
||||
nyc: require('../package.json').version
|
||||
},
|
||||
nycrc: getInvalidatingOptions(config)
|
||||
})
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user