Skip to content

Commit

Permalink
docs: --dts-only
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 23, 2021
1 parent 88875e6 commit f6826b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/README.md
Expand Up @@ -127,6 +127,10 @@ If you have multiple entry files, each entry will get a corresponding `.d.ts` fi

Note that `--dts` does not resolve external (aka in `node_modules`) types used in the `.d.ts` file, if that's somehow a requirement, try the experimental `--dts-resolve` flag instead.

#### Emit declaration file only

The `--dts-only` flag is the equivalent of the `emitDeclarationOnly` option in `tsc`. Using this flag will only emit the declaration file, without the JavaScript files.

### Generate sourcemap file

```bash
Expand Down

1 comment on commit f6826b2

@vercel
Copy link

@vercel vercel bot commented on f6826b2 Nov 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.