Skip to content

Commit

Permalink
fix: Update to support nyc 15. (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Dec 30, 2019
1 parent 5319df6 commit c62c16a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
14 changes: 3 additions & 11 deletions packages/nyc-config-typescript/index.js
@@ -1,16 +1,8 @@
'use strict';

const { parserPlugins } = require('@istanbuljs/schema').defaults.nyc;

module.exports = {
cache: false,
extension: ['.ts', '.tsx'],
exclude: [
'**/*.d.ts',
'coverage/**',
'packages/*/test/**',
'test/**',
'test{,-*}.ts',
'**/*{.,-}{test,spec}.ts',
'**/__tests__/**',
'**/node_modules/**'
]
parserPlugins: parserPlugins.concat('typescript')
};
4 changes: 4 additions & 0 deletions packages/nyc-config-typescript/package.json
Expand Up @@ -33,7 +33,11 @@
"engines": {
"node": ">=8"
},
"dependencies": {
"@istanbuljs/schema": "^0.1.2"
},
"peerDependencies": {
"nyc": ">=15",
"source-map-support": "*",
"ts-node": "*"
}
Expand Down

0 comments on commit c62c16a

Please sign in to comment.