From a9a496dc1a08bf4486f770bd3f241952be30353d Mon Sep 17 00:00:00 2001 From: alex8088 <244096523@qq.com> Date: Sun, 29 Mar 2026 15:22:06 +0800 Subject: [PATCH] fix: Typescript compiler option 'outDir' must be located inside Rollup 'dir' option --- rollup.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.ts b/rollup.config.ts index c86fe6d..4fd95cc 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -26,7 +26,7 @@ export default defineConfig([ plugins: [ rm('dist', 'buildStart'), json(), - ts({ compilerOptions: { rootDir: 'src', declaration: true, declarationDir: 'dist/types' } }), + ts({ compilerOptions: { rootDir: 'src', outDir: 'dist', declaration: true, declarationDir: 'dist/types' } }), resolve() ], treeshake: {