[rollup] Include typescript definitions in build

Emit our TypeScript definitions as well in the build so things like options have 
typechecking
This commit is contained in:
Lauren Tan
2023-10-30 13:58:03 -04:00
parent 52afd8a566
commit 0841caab8e
2 changed files with 3 additions and 0 deletions
@@ -17,6 +17,7 @@ export default {
},
plugins: [
typescript({
tsconfig: "./tsconfig.json",
compilerOptions: {
noEmit: true,
},
@@ -3,6 +3,8 @@
"compilerOptions": {
"moduleResolution": "nodenext",
"declaration": true,
"declarationDir": "./dist",
"declarationMap": true,
"rootDir": "src",
"outDir": "dist",
// https://github.com/microsoft/TypeScript/issues/30925