0.0.27 • Published 2 years ago

@rehearsal/diagnostic v0.0.27

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
2 years ago

@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
0.0.26

2 years ago

0.0.27

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago