Files
ComfyUI_frontend/vite.types.config.mts
Chenlei Hu 05fab91bda Build comfyui-frontend-types library (#1725)
* Install vite-plugin-dts

* Explicitly type workflowStore

* Working rollup

* Hide diff type

* Inline primevue toast mesage types

* Add prepare-types script to generate package.json for type package

* Add global declaration

* Add publish types Github action

* Update litegraph

* Add @comfyorg to package name
2024-11-28 11:21:19 -05:00

24 lines
455 B
TypeScript

import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'
import { resolve } from 'path'
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/types/index.ts'),
name: 'comfyui-frontend-types',
formats: ['es'],
fileName: 'index'
},
copyPublicDir: false,
minify: false
},
plugins: [
dts({
rollupTypes: true,
tsconfigPath: 'tsconfig.types.json'
})
]
})