1.1.1 • Published 1 year ago

@guoyunhe/bundle-dts v1.1.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

@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' });