🚧 Use TS project references

This commit is contained in:
Baptiste Arnaud
2024-08-28 18:09:35 +02:00
parent 0c7d2afd51
commit fdd6cc6fee
627 changed files with 3043 additions and 1696 deletions

View File

@@ -3,8 +3,6 @@
"version": "0.3.11",
"description": "Javascript library to display typebots on your website",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"dev": "rollup --watch --config rollup.config.js",
"build": "rollup --config rollup.config.js",
@@ -36,7 +34,6 @@
"@typebot.io/lib": "workspace:*",
"@typebot.io/schemas": "workspace:*",
"@typebot.io/theme": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@types/dompurify": "3.0.3",
"autoprefixer": "10.4.14",
"babel-preset-solid": "1.7.7",
@@ -49,7 +46,6 @@
"rollup": "3.26.2",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-typescript-paths": "1.4.0",
"tailwindcss": "3.3.3",
"typescript": "5.4.5"
"tailwindcss": "3.3.3"
}
}

View File

@@ -1,20 +1,34 @@
{
"extends": "@typebot.io/tsconfig/base.json",
"include": ["src/**/*"],
"exclude": ["dist", "node_modules"],
"extends": "../../tsconfig/base.json",
"include": [
"src/**/*"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
"@/*": [
"src/*"
]
},
"jsx": "preserve",
"jsxImportSource": "solid-js",
"module": "ESNext",
"target": "ESNext",
"declaration": true,
"declarationMap": true,
"outDir": "dist",
"noEmit": false,
"emitDeclarationOnly": true
}
"outDir": "dist"
},
"references": [
{
"path": "../../bot-engine"
},
{
"path": "../../env"
},
{
"path": "../../lib"
},
{
"path": "../../schemas"
},
{
"path": "../../theme"
}
]
}