dts-only

v0.1.1
Command-line wrapper for typescript compiler to produce declarations only
typescript declaration dts .d.ts generator

dts-only

Latest Stable Version License Build Status Test Coverage

Command-line utility built on top of typescript compiler to generate only declaration files. Originally built to work with @babel/plugin-transform-typescript, because it does not support generating declarations.

Note: Alpha version! Do not use in production.

Installation

$ npm install dts-only

Usage

Just run script in command line:

$ dts-only

Script will try to find tsconfig.json at your cwd. If you have configuration in another directory, specify it with -p:

$ dts-only -p src/tsconfig.json

Command-line options

  • -c, --compiler - prints current compiler version
  • -h, --help - prints usage information
  • --outDir - specifies directory for typescript compiler output
  • -p, --project - path to tsconfig.json file.
  • -v, --version - prints package version
npm i dts-only

Metadata

  • MIT
  • Whatever
  • Vlad Rindevich
  • released 12/10/2017

Downloads

Maintainers