10000 fix : tsconfig include electron (#134) (#135) · coder-long/electron-vite-react@1b5b326 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b5b326

Browse files
authored
fix : tsconfig include electron (electron-vite#134) (electron-vite#135)
1 parent 6ef956d commit 1b5b326

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

electron/main/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function createWindow() {
5555
},
5656
})
5757

58-
if (process.env.VITE_DEV_SERVER_URL) { // electron-vite-vue#298
58+
if (url) { // electron-vite-vue#298
5959
win.loadURL(url)
6060
// Open devTool if the app is not packaged
6161
win.webContents.openDevTools()

electron/main/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function update(win: Electron.BrowserWindow) {
6363
}
6464

6565
function startDownload(
66-
callback: (error: Error | null, info: ProgressInfo) => void,
66+
callback: (error: Error | null, info: ProgressInfo | null) => void,
6767
complete: (event: UpdateDownloadedEvent) => void,
6868
) {
6969
autoUpdater.on('download-progress', info => callback(null, info))

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
]
2323
},
2424
},
25-
"include": ["src"],
25+
"include": ["src", "electron"],
2626
"references": [{ "path": "./tsconfig.node.json" }]
2727
}

tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"resolveJsonModule": true,
77
"allowSyntheticDefaultImports": true
88
},
9-
"include": ["vite.config.ts", "package.json", "electron"]
9+
"include": ["vite.config.ts", "package.json"]
1010
}

0 commit comments

Comments
 (0)
0