2
0

♻️ Include forged blocks schema in typebot schema

Closes #1364
This commit is contained in:
Baptiste Arnaud
2024-03-18 16:09:19 +01:00
parent 26a9282c20
commit ed5096e2b6
93 changed files with 8599 additions and 4965 deletions

View File

@@ -4,11 +4,15 @@ import { babel } from '@rollup/plugin-babel'
import postcss from 'rollup-plugin-postcss'
import autoprefixer from 'autoprefixer'
import tailwindcss from 'tailwindcss'
import typescript from '@rollup/plugin-typescript'
import { typescriptPaths } from 'rollup-plugin-typescript-paths'
import fs from 'fs'
const extensions = ['.ts', '.tsx']
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'))
const packageVersion = packageJson.version
const preamble = `// v${packageVersion}`
const indexConfig = {
input: './src/index.ts',
output: {
@@ -23,6 +27,7 @@ const indexConfig = {
presets: ['solid', '@babel/preset-typescript'],
extensions,
}),
typescriptPaths({ preserveExtensions: true }),
postcss({
plugins: [autoprefixer(), tailwindcss()],
extract: false,
@@ -31,9 +36,9 @@ const indexConfig = {
minimize: true,
inject: false,
}),
typescript(),
typescriptPaths({ preserveExtensions: true }),
terser({ output: { comments: false } }),
terser({
format: { preamble },
}),
],
}