Skip to content

Commit

Permalink
fix: disable the babel/nyc cache (#303)
Browse files Browse the repository at this point in the history
* fix: disable the babel/nyc cache

* chore: add the command modules to package

* docs: coverage was still looking at bcoe
  • Loading branch information
bcoe authored Jul 8, 2016
1 parent e45b51b commit 104b3da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# nyc

[![Build Status](https://travis-ci.org/istanbuljs/nyc.svg?branch=master)](https://travis-ci.org/istanbuljs/nyc)
[![Coverage Status](https://coveralls.io/repos/istanbuljs/nyc/badge.svg?branch=)](https://coveralls.io/r/istanbuljs/nyc?branch=master)
[![Coverage Status](https://coveralls.io/repos/bcoe/nyc/badge.svg?branch=)](https://coveralls.io/r/bcoe/nyc?branch=master)
[![NPM version](https://img.shields.io/npm/v/nyc.svg)](https://www.npmjs.com/package/nyc)
[![Windows Tests](https://img.shields.io/appveyor/ci/bcoe/nyc-ilw23/master.svg?label=Windows%20Tests)](https://ci.appveyor.com/project/bcoe/nyc-ilw23)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
Expand Down
5 changes: 3 additions & 2 deletions bin/nyc.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var yargs = require('yargs/yargs')(process.argv.slice(2))
})
.option('cache', {
alias: 'c',
default: true,
default: false,
type: 'boolean',
describe: 'cache instrumentation results for improved performance'
})
Expand Down Expand Up @@ -174,7 +174,8 @@ if (argv._[0] === 'report') {
NYC_CWD: process.cwd(),
NYC_CACHE: argv.cache ? 'enable' : 'disable',
NYC_SOURCE_MAP: argv.sourceMap ? 'enable' : 'disable',
NYC_INSTRUMENTER: argv.instrumenter
NYC_INSTRUMENTER: argv.instrumenter,
BABEL_DISABLE_CACHE: 1
}
if (argv.require.length) {
env.NYC_REQUIRE = argv.require.join(',')
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"index.js",
"bin/*.js",
"lib/*.js",
"lib/commands/*.js",
"lib/instrumenters/*.js",
"!**/*covered.js"
],
Expand Down

0 comments on commit 104b3da

Please sign in to comment.