From 2f4f19df2d3e24ec9687afee683ed759a7bc6264 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 16 Mar 2024 01:08:25 +0300 Subject: [PATCH] refactor(rollup): remove `declarationFile` const (#117) Co-authored-by: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> --- rollup.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 5f36ade..1354fe4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -5,12 +5,12 @@ import { minify } from 'rollup-plugin-esbuild'; import typescript from '@rollup/plugin-typescript'; -const declarationFile = 'index.d.ts'; +const indexFile = 'src/index.ts'; export default defineConfig([ { plugins: [typescript({ outputToFilesystem: true }), minify()], - input: 'src/index.ts', + input: indexFile, output: { file: 'index.js', format: 'es', @@ -18,9 +18,9 @@ export default defineConfig([ }, { plugins: [dts()], - input: `dist/src/${declarationFile}`, + input: indexFile, output: { - file: declarationFile, + file: 'index.d.ts', }, }, ]);