@samitouri / QOS-React-1 / commits / 0841caab8e

[rollup] Include typescript definitions in build

Emit our TypeScript definitions as well in the build so things like options have typechecking

Lauren Tan committed Oct 30, 2023 at 13:58 UTC 0841caab8e2b0f7cffc03c70ee4ff79ab0457245
2 files changed +3
compiler/packages/babel-plugin-react-forget/rollup.config.js
+1
@@ -17,6 +17,7 @@ export default {
17 },
18 plugins: [
19 typescript({
20 + tsconfig: "./tsconfig.json",
21 compilerOptions: {
22 noEmit: true,
23 },
compiler/packages/babel-plugin-react-forget/tsconfig.json
+2
@@ -3,6 +3,8 @@
3 "compilerOptions": {
4 "moduleResolution": "nodenext",
5 "declaration": true,
6 + "declarationDir": "./dist",
7 + "declarationMap": true,
8 "rootDir": "src",
9 "outDir": "dist",
10 // https://github.com/microsoft/TypeScript/issues/30925