mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
* 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
24 lines
455 B
TypeScript
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'
|
|
})
|
|
]
|
|
})
|