@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/react",
|
||||
"version": "0.2.9",
|
||||
"version": "0.2.10",
|
||||
"description": "Convenient library to display typebots on your React app",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@@ -37,6 +37,7 @@
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"react": "18.2.0",
|
||||
"rollup": "3.26.2",
|
||||
"rollup-plugin-dts": "^6.1.0",
|
||||
"rollup-plugin-typescript-paths": "1.4.0",
|
||||
"tslib": "2.6.0",
|
||||
"tsx": "3.12.7",
|
||||
|
||||
@@ -4,6 +4,7 @@ import { babel } from '@rollup/plugin-babel'
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
import { typescriptPaths } from 'rollup-plugin-typescript-paths'
|
||||
import alias from '@rollup/plugin-alias'
|
||||
import { dts } from 'rollup-plugin-dts'
|
||||
|
||||
const extensions = ['.ts', '.tsx']
|
||||
|
||||
@@ -31,6 +32,23 @@ const indexConfig = {
|
||||
],
|
||||
}
|
||||
|
||||
const configs = [indexConfig]
|
||||
const typesConfig = {
|
||||
input: './src/index.ts',
|
||||
output: [{ file: './dist/index.d.ts', format: 'es' }],
|
||||
plugins: [
|
||||
alias({
|
||||
entries: [
|
||||
{ find: '@typebot.io/js', replacement: '../../js' },
|
||||
{
|
||||
find: '@/types',
|
||||
replacement: '../types',
|
||||
},
|
||||
],
|
||||
}),
|
||||
dts(),
|
||||
],
|
||||
}
|
||||
|
||||
const configs = [indexConfig, typesConfig]
|
||||
|
||||
export default configs
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
},
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"outDir": "dist",
|
||||
"emitDeclarationOnly": true
|
||||
"outDir": "dist"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user