https://github.com/guoyunhe/bundle-dts
Compile TypeScript declarations (*.d.ts) and bundle into a single file
https://github.com/guoyunhe/bundle-dts
Last synced: 3 months ago
JSON representation
Compile TypeScript declarations (*.d.ts) and bundle into a single file
- Host: GitHub
- URL: https://github.com/guoyunhe/bundle-dts
- Owner: guoyunhe
- License: gpl-3.0
- Created: 2023-01-30T07:08:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T06:49:20.000Z (over 2 years ago)
- Last Synced: 2025-02-10T21:03:54.445Z (4 months ago)
- Language: TypeScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# @guoyunhe/bundle-dts
## Install
```bash
npm i @guoyunhe/bundle-dts
```## Usage
```ts
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.
```ts
bundleDts({ entry: 'src/main.ts' });
```### outFile: string
Default: `dist/index.d.ts`
The path of output declaration file.
```ts
bundleDts({ outFile: 'out/main.d.ts' });
```