fix : tsconfig include electron (#134)
This commit is contained in:
		
							parent
							
								
									6ef956d5ef
								
							
						
					
					
						commit
						0da601ab2f
					
				| 
						 | 
					@ -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)
 | 
					    win.loadURL(url)
 | 
				
			||||||
    // Open devTool if the app is not packaged
 | 
					    // Open devTool if the app is not packaged
 | 
				
			||||||
    win.webContents.openDevTools()
 | 
					    win.webContents.openDevTools()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,7 +63,7 @@ export function update(win: Electron.BrowserWindow) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function startDownload(
 | 
					function startDownload(
 | 
				
			||||||
  callback: (error: Error | null, info: ProgressInfo) => void,
 | 
					  callback: (error: Error | null, info: ProgressInfo | null) => void,
 | 
				
			||||||
  complete: (event: UpdateDownloadedEvent) => void,
 | 
					  complete: (event: UpdateDownloadedEvent) => void,
 | 
				
			||||||
) {
 | 
					) {
 | 
				
			||||||
  autoUpdater.on('download-progress', info => callback(null, info))
 | 
					  autoUpdater.on('download-progress', info => callback(null, info))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,6 @@
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "include": ["src"],
 | 
					  "include": ["src", "electron"],
 | 
				
			||||||
  "references": [{ "path": "./tsconfig.node.json" }]
 | 
					  "references": [{ "path": "./tsconfig.node.json" }]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,5 +6,5 @@
 | 
				
			||||||
    "resolveJsonModule": true,
 | 
					    "resolveJsonModule": true,
 | 
				
			||||||
    "allowSyntheticDefaultImports": true
 | 
					    "allowSyntheticDefaultImports": true
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "include": ["vite.config.ts", "package.json", "electron"]
 | 
					  "include": ["vite.config.ts", "package.json"]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue