Skip to content

Commit

Permalink
adjust rollup config to work with new typescript plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Oct 1, 2024
1 parent 30f6799 commit 4881dd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
12 changes: 2 additions & 10 deletions scripts/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,7 @@ export default defineConfig([
}),
],
external: /node_modules/,
plugins: [
del({ targets: 'dist/*' }),
nodeResolve(),
typescript({
compilerOptions: {
noEmitOnError: true,
},
}),
],
plugins: [del({ targets: 'dist/*' }), nodeResolve(), typescript()],
},

// es5 entry point
Expand All @@ -57,10 +49,10 @@ export default defineConfig([
nodeResolve(),
typescript({
compilerOptions: {
noEmitOnError: true,
// We don't want to emit declaration files more than once
declaration: false,
declarationMap: false,
outDir: 'dist/es5/types',
},
}),
],
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
// Emit
"declaration": true,
"noEmit": true,
"outDir": "types",
"outDir": "dist/types",
"sourceMap": true,
// Interop Constraints
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
// Language and Environment
"target": "ESNext"
"target": "ESNext",
"noEmitOnError": true
},
"include": ["src/**/*"]
}

0 comments on commit 4881dd8

Please sign in to comment.