0.0.6 • Published 4 years ago

make-dts-bundle v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

make-dts-bundle

Description

In order for the generated TypeScript bundle to be used without problems, sometimes it is necessary to create a single .d.ts file for it by combining all generated typings into one file. The dts-bundle tool does a great job of this, except for one thing: when using certain TypeScript language constructs, the generated .d.ts file may contain local imports in class declarations, which then cannot be processed correctly in certain circumstances.

This package provides a wrapper script that calls dts-bundle and then converts local imports into global ones in the resulting file.

Prerequisites

You must install dts-bundle yourself, e.g.:

npm install dts-bundle

Usage

Get it from npm:

npm install make-dts-bundle

Then you can use it from the command line with the the following options:

make-dts-bundle [options]

Options:
    -b base_directory    path to base directory (build/lib)
    -h                   show help
    -o output_directory  path to output directory (dist)
    -m main_input_dts    input d.ts file name (index.d.ts)
    -n bundle_name       bundle name (bundle)

License

Licensed under the MIT license.

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago