Skip to content

guoyunhe/bundle-dts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Compile TypeScript declarations (*.d.ts) and bundle into a single file

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published