1.1.1 • Published 3 years ago
@guoyunhe/bundle-dts v1.1.1
@guoyunhe/bundle-dts
Install
npm i @guoyunhe/bundle-dtsUsage
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' });