core: prevent UI imports compiling TSX source
This commit is contained in:
parent
f8ceb30b43
commit
eeb5b1d8bc
4 changed files with 58 additions and 2 deletions
14
packages/ui/tsconfig.build.json
Normal file
14
packages/ui/tsconfig.build.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "dist",
|
||||
"noEmit": false,
|
||||
// Publish declarations so consumer compiler options do not typecheck our TSX implementation.
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["**/*.stories.*", "**/*.test.*", "**/*.mdx"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue