Skip to content

Commit

Permalink
refactor(rollup): remove declarationFile const (#117)
Browse files Browse the repository at this point in the history
Co-authored-by: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nikkeyl authored Mar 15, 2024
1 parent e7a6d72 commit 2f4f19d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ 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',
},
},
{
plugins: [dts()],
input: `dist/src/${declarationFile}`,
input: indexFile,
output: {
file: declarationFile,
file: 'index.d.ts',
},
},
]);

0 comments on commit 2f4f19d

Please sign in to comment.