Skip to content

Commit

Permalink
build: fix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmylee committed Aug 30, 2022
1 parent e728ebc commit fe39671
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import pkg from './package.json';
import tsconfig from './tsconfig.json';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { declaration, declarationDir, ...compilerOptions } =
const { declaration, declarationDir, outDir, ...compilerOptions } =
tsconfig.compilerOptions;

export default {
Expand All @@ -12,7 +12,7 @@ export default {
{ format: 'cjs', file: pkg.main },
{ format: 'es', file: pkg.module },
],
external: '@popperjs/core',
external: ['@popperjs/core', 'svelte'],
plugins: [
typescript({
tsconfig: false,
Expand Down
10 changes: 8 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
"moduleResolution": "Node",
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "dist",
"outDir": "dist",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
},
"exclude": ["node_modules", "dist", "tests"]
"exclude": [
"node_modules",
"dist",
"tests",
"vitest.config.ts",
"vitest.setup.ts"
]
}

0 comments on commit fe39671

Please sign in to comment.