🚧 Use TS project references
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
"name": "@typebot.io/nextjs",
|
||||
"version": "0.3.11",
|
||||
"description": "Convenient library to display typebots on your Next.js website",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "rollup --watch --config rollup.config.js",
|
||||
@@ -20,23 +18,21 @@
|
||||
"@rollup/plugin-babel": "6.0.3",
|
||||
"@rollup/plugin-node-resolve": "15.1.0",
|
||||
"@rollup/plugin-terser": "0.4.3",
|
||||
"@rollup/plugin-typescript": "11.1.2",
|
||||
"@typebot.io/js": "workspace:*",
|
||||
"@typebot.io/lib": "workspace:*",
|
||||
"@typebot.io/prisma": "workspace:*",
|
||||
"@typebot.io/react": "workspace:*",
|
||||
"@typebot.io/schemas": "workspace:*",
|
||||
"@typebot.io/tsconfig": "workspace:*",
|
||||
"@types/node": "20.4.2",
|
||||
"@types/react": "18.2.15",
|
||||
"@types/react": "18.3.4",
|
||||
"eslint": "8.44.0",
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"react": "18.2.0",
|
||||
"rollup": "3.26.2",
|
||||
"rollup-plugin-typescript-paths": "1.4.0",
|
||||
"tslib": "2.6.0",
|
||||
"tsx": "4.6.2",
|
||||
"typescript": "5.4.5",
|
||||
"@rollup/plugin-typescript": "11.1.2"
|
||||
"tsx": "4.6.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"next": "12.x || 13.x || 14.x",
|
||||
|
||||
@@ -1,15 +1,28 @@
|
||||
{
|
||||
"extends": "@typebot.io/tsconfig/react-library.json",
|
||||
"extends": "../../tsconfig/react.json",
|
||||
"include": ["src/**/*"],
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
},
|
||||
"outDir": "dist",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"noEmit": false,
|
||||
"emitDeclarationOnly": true
|
||||
}
|
||||
"outDir": "dist"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../../lib"
|
||||
},
|
||||
{
|
||||
"path": "../../prisma"
|
||||
},
|
||||
{
|
||||
"path": "../../schemas"
|
||||
},
|
||||
{
|
||||
"path": "../js"
|
||||
},
|
||||
{
|
||||
"path": "../react"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user