New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rehearsal/diagnostic

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rehearsal/diagnostic

Rehearsal Diagnostic Tool

  • 0.0.27
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@rehearsal/diagnostic

Rehearsal Diagnostic tool helps to test your source code against any TypeScript version (including beta and nightly build) and get a list of compiler diagnostic messages as @ts-ignore comments.

Usage

yarn add -D @rehearsal/diagnose 
import diagnose from '@rehearsal/diagnostic';

const result = await diagnose(
  basePath,           // path to a project source directory
  configName,         // tsconfig file name, default: 'tsconfig.json',
  reportName,         // report file name, default: '.rehearsal-diagnostics.json',
  modifySourceFiles,  // add @ts-ignore comments, default: true
  logger,             // winston.Logger, default: undefined
);

console.log(result);
Usage: diagnose [options] <basePath>

Compiles TypeScript project and provides diagnostic reports and comments.

Arguments:
basePath             Path to the source directory.

Options:
-c, --config <name>  Name of the tsconfig file. (default: "tsconfig.json")
-r, --report <name>  Report file name. (default: ".rehearsal-diagnostics.json")
-m, --modify         Add diagnostic @ts-ignore comments to source files
-v, --verbose        Display diagnostic progress
-h, --help           display help for command

Keywords

FAQs

Package last updated on 26 Jul 2022

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