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
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@istanbuljs/nyc-config-typescript

nyc configuration that works with typescript

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created

What is @istanbuljs/nyc-config-typescript?

@istanbuljs/nyc-config-typescript is a configuration preset for the NYC code coverage tool, specifically tailored for TypeScript projects. It simplifies the setup process for collecting code coverage metrics in TypeScript applications by providing a pre-configured set of options that work out of the box.

What are @istanbuljs/nyc-config-typescript's main functionalities?

Pre-configured NYC settings for TypeScript

This feature allows you to extend the default NYC configuration with settings optimized for TypeScript. By adding this to your `nyc` configuration in `package.json`, you can easily integrate code coverage into your TypeScript project.

{
  "extends": "@istanbuljs/nyc-config-typescript"
}

Source map support

This configuration ensures that source maps are properly handled, allowing for accurate code coverage reports that map back to the original TypeScript source files. It includes all TypeScript files in the `src` directory and excludes declaration files.

{
  "nyc": {
    "extends": "@istanbuljs/nyc-config-typescript",
    "all": true,
    "check-coverage": true,
    "reporter": ["html", "text-summary"],
    "include": ["src/**/*.ts"],
    "exclude": ["**/*.d.ts"]
  }
}

Other packages similar to @istanbuljs/nyc-config-typescript

Keywords

FAQs

Package last updated on 01 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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