fix : tsconfig include electron (#134) (#135)

This commit is contained in:
Jimmy authored and GitHub committed 2023-04-11 11:37:51 +08:00
1 parent 6ef956d5ef
commit 1b5b326aa6
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ async function createWindow() {
},
})
if (process.env.VITE_DEV_SERVER_URL) { // electron-vite-vue#298
if (url) { // electron-vite-vue#298
win.loadURL(url)
// Open devTool if the app is not packaged
win.webContents.openDevTools()
+1 -1
View File
@@ -63,7 +63,7 @@ export function update(win: Electron.BrowserWindow) {
}
function startDownload(
callback: (error: Error | null, info: ProgressInfo) => void,
callback: (error: Error | null, info: ProgressInfo | null) => void,
complete: (event: UpdateDownloadedEvent) => void,
) {
autoUpdater.on('download-progress', info => callback(null, info))
+1 -1
View File
@@ -22,6 +22,6 @@
]
},
},
"include": ["src"],
"include": ["src", "electron"],
"references": [{ "path": "./tsconfig.node.json" }]
}
+1 -1
View File
@@ -6,5 +6,5 @@
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts", "package.json", "electron"]
"include": ["vite.config.ts", "package.json"]
}