Vite plugin to generate typescript definitions, with zero dependencies
import {defineConfig} from "vite";
import {dtsPlugin} from "vite-dts-plugin";
export default defineConfig({
plugins: [
dtsPlugin(),
],
});
-
tsc
: Name of thetsc
binary, defaulttsc
. -
outDir
: Output directory. Default:dist
. -
tsConfig
: Custom tsconfig as a string. Default: undefined. -
args
: Additional arguments passed to tsc. Default:[]
.