mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
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
This commit is contained in:
23
vite.types.config.mts
Normal file
23
vite.types.config.mts
Normal file
@@ -0,0 +1,23 @@
|
||||
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'
|
||||
})
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user