diff --git a/rollup.config.js b/rollup.config.js index 4462694..ff91a73 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -26,7 +26,12 @@ const plugins = [ }), resolve(), typescript({ - tsconfigOverride: { compilerOptions: { declaration: !!process.env.RELEASE } }, + tsconfigOverride: { + compilerOptions: { + declaration: !!process.env.RELEASE, + declarationDir: "src/dts" + } + }, useTsconfigDeclarationDir: process.env.RELEASE }) ];