Skip to content

Commit 104b3da

Browse files
authored
fix: disable the babel/nyc cache (#303)
* fix: disable the babel/nyc cache * chore: add the command modules to package * docs: coverage was still looking at bcoe
1 parent e45b51b commit 104b3da

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# nyc
22

33
[![Build Status](https://travis-ci.org/istanbuljs/nyc.svg?branch=master)](https://travis-ci.org/istanbuljs/nyc)
4-
[![Coverage Status](https://coveralls.io/repos/istanbuljs/nyc/badge.svg?branch=)](https://coveralls.io/r/istanbuljs/nyc?branch=master)
4+
[![Coverage Status](https://coveralls.io/repos/bcoe/nyc/badge.svg?branch=)](https://coveralls.io/r/bcoe/nyc?branch=master)
55
[![NPM version](https://img.shields.io/npm/v/nyc.svg)](https://www.npmjs.com/package/nyc)
66
[![Windows Tests](https://img.shields.io/appveyor/ci/bcoe/nyc-ilw23/master.svg?label=Windows%20Tests)](https://ci.appveyor.com/project/bcoe/nyc-ilw23)
77
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)

bin/nyc.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var yargs = require('yargs/yargs')(process.argv.slice(2))
8787
})
8888
.option('cache', {
8989
alias: 'c',
90-
default: true,
90+
default: false,
9191
type: 'boolean',
9292
describe: 'cache instrumentation results for improved performance'
9393
})
@@ -174,7 +174,8 @@ if (argv._[0] === 'report') {
174174
NYC_CWD: process.cwd(),
175175
NYC_CACHE: argv.cache ? 'enable' : 'disable',
176176
NYC_SOURCE_MAP: argv.sourceMap ? 'enable' : 'disable',
177-
NYC_INSTRUMENTER: argv.instrumenter
177+
NYC_INSTRUMENTER: argv.instrumenter,
178+
BABEL_DISABLE_CACHE: 1
178179
}
179180
if (argv.require.length) {
180181
env.NYC_REQUIRE = argv.require.join(',')

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"index.js",
2424
"bin/*.js",
2525
"lib/*.js",
26+
"lib/commands/*.js",
2627
"lib/instrumenters/*.js",
2728
"!**/*covered.js"
2829
],

0 commit comments

Comments
 (0)