From f6826b2045a5ee2d06b4b8ce59d3204da9ede05e Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Tue, 23 Nov 2021 23:31:12 +0800 Subject: [PATCH] docs: `--dts-only` --- docs/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/README.md b/docs/README.md index e6acc831..7cf1f6cd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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