Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@istanbuljs/nyc-config-typescript

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@istanbuljs/nyc-config-typescript - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.1.3](https://github.com/istanbuljs/istanbuljs/compare/@istanbuljs/nyc-config-typescript@0.1.2...@istanbuljs/nyc-config-typescript@0.1.3) (2019-05-02)
**Note:** Version bump only for package @istanbuljs/nyc-config-typescript
## [0.1.2](https://github.com/istanbuljs/istanbuljs/compare/@istanbuljs/nyc-config-typescript@0.1.1...@istanbuljs/nyc-config-typescript@0.1.2) (2019-04-24)

@@ -8,0 +16,0 @@

4

package.json
{
"name": "@istanbuljs/nyc-config-typescript",
"version": "0.1.2",
"version": "0.1.3",
"description": "nyc configuration that works with typescript",

@@ -39,3 +39,3 @@ "main": "index.json",

},
"gitHead": "90e60cc47833bb780680f916488ca24f0be36ca2"
"gitHead": "679fc641b691442c4e9274e07809fef35272161d"
}
# nyc-config-typescript
Handy default configuration for instrumenting your babel-backed
Handy default configuration for instrumenting your TypeScript-backed
project with test coverage using [nyc](https://github.com/istanbuljs/nyc).

@@ -8,16 +8,8 @@

`npm i nyc source-map-support ts-node @istanbuljs/nyc-config-typescript --save-dev`
```
npm i -D nyc source-map-support ts-node @istanbuljs/nyc-config-typescript
```
Then write a `tsconfig.json` that looks something like this:
**Your `tsconfig.json` must be configured to produce source maps, either inline or as sibling files.**
## tsconfig.json
```json
{
"sourceMap": "inline",
// OR
"sourceMap": true
}
```
## .nycrc

@@ -27,3 +19,3 @@

```json
```js
{

@@ -36,2 +28,4 @@ "extends": "@istanbuljs/nyc-config-typescript",

This package specifies the `cache`, `exclude`, and `extension` options for you - only override those if you absolutely must.
## Running Tests

@@ -54,3 +48,3 @@

{
"test": "nyc mocha"
"test": "tsc && nyc mocha"
}

@@ -57,0 +51,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc