tsc-suppress
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

tsc-suppress

This wrapper executes the Typescript compiler while suppressing all Typescript error messages. This is useful during development when successful compilation is required for debugging but type errors are expected.

The default behaviour of tsc-suppress is similar to using the --transpile-only flag option in ts-node.

Installation

Via npm:

npm i tsc-suppress -D

Via yarn:

yarn add tsc-suppress -D

Usage API

tsc-suppress [--project <path>] [--compiler <path>] [--watch]

Options

  • -P, --project <path>
    • Path to the project's tsconfig.json
    • Default: ${cwd}/tsconfig.json
  • -C, --compiler <path>
    • Path to the project's typescript compiler
    • Default: ${cwd}/node_modules/typescript/lib/typescript.js
  • -W, --watch
    • Run in watch mode
    • Default: false

License

MIT License

Package Sidebar

Install

npm i tsc-suppress

Weekly Downloads

3

Version

1.0.7

License

MIT

Unpacked Size

35.1 kB

Total Files

11

Last publish

Collaborators

  • danielhzhang