[chore] Update comfyui-electron-types (#1625)

* Remove electron external dep

* [chore] Update comfyui-electron-types
This commit is contained in:
Chenlei Hu
2024-11-21 00:07:50 -05:00
committed by GitHub
parent 73b7606f6e
commit 5d178a407d
4 changed files with 11 additions and 10 deletions

9
package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.4.6", "version": "1.4.6",
"dependencies": { "dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1", "@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/comfyui-electron-types": "^0.3.1", "@comfyorg/comfyui-electron-types": "^0.3.6",
"@comfyorg/litegraph": "^0.8.31", "@comfyorg/litegraph": "^0.8.31",
"@primevue/themes": "^4.0.5", "@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0", "@vueuse/core": "^11.0.0",
@@ -1917,9 +1917,10 @@
"dev": true "dev": true
}, },
"node_modules/@comfyorg/comfyui-electron-types": { "node_modules/@comfyorg/comfyui-electron-types": {
"version": "0.3.2", "version": "0.3.6",
"resolved": "https://registry.npmjs.org/@comfyorg/comfyui-electron-types/-/comfyui-electron-types-0.3.2.tgz", "resolved": "https://registry.npmjs.org/@comfyorg/comfyui-electron-types/-/comfyui-electron-types-0.3.6.tgz",
"integrity": "sha512-3vpAAZq4rNd6oUFvX5s1kor2U7xN3Br8gftdO40IvhLLikttK2cZhPra6YlnzuYIU1gK+PBGEJClvjFnQyIYlA==" "integrity": "sha512-wgMgESnCcRzvVkk8CwWiTAUJxC4LBvw5uTENxzaWkEL0qrnmiGrVLore00yX3cYz04hJaTA6PqasLqgVLDOenw==",
"license": "GPL-3.0-only"
}, },
"node_modules/@comfyorg/litegraph": { "node_modules/@comfyorg/litegraph": {
"version": "0.8.31", "version": "0.8.31",

View File

@@ -72,7 +72,7 @@
}, },
"dependencies": { "dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1", "@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
"@comfyorg/comfyui-electron-types": "^0.3.1", "@comfyorg/comfyui-electron-types": "^0.3.6",
"@comfyorg/litegraph": "^0.8.31", "@comfyorg/litegraph": "^0.8.31",
"@primevue/themes": "^4.0.5", "@primevue/themes": "^4.0.5",
"@vueuse/core": "^11.0.0", "@vueuse/core": "^11.0.0",

View File

@@ -1,7 +1,10 @@
import { ref } from 'vue' import { ref } from 'vue'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
import { isElectron, electronAPI } from '@/utils/envUtil' import { isElectron, electronAPI } from '@/utils/envUtil'
import { DownloadState, DownloadStatus } from '@comfyorg/comfyui-electron-types' import type {
DownloadState,
DownloadStatus
} from '@comfyorg/comfyui-electron-types'
export interface ElectronDownload export interface ElectronDownload
extends Pick<DownloadState, 'url' | 'filename'> { extends Pick<DownloadState, 'url' | 'filename'> {

View File

@@ -150,10 +150,7 @@ export default defineConfig({
rollupOptions: { rollupOptions: {
// Disabling tree-shaking // Disabling tree-shaking
// Prevent vite remove unused exports // Prevent vite remove unused exports
treeshake: false, treeshake: false
external: [
'electron'
]
} }
}, },