@guoyunhe/bundle-dts
v1.1.1
Published
Compile TypeScript declarations (*.d.ts) and bundle into a single file
Downloads
8
Maintainers
Readme
@guoyunhe/bundle-dts
Install
npm i @guoyunhe/bundle-dts
Usage
import { bundleDts } from '@guoyunhe/bundle-dts';
bundleDts();
By default, it scans src
and bundles src/index.ts
into dist/index.d.ts
.
Options
entry: string
Default: src/index.ts
.
The entry point TypeScript file.
bundleDts({ entry: 'src/main.ts' });
outFile: string
Default: dist/index.d.ts
The path of output declaration file.
bundleDts({ outFile: 'out/main.d.ts' });