Skip to content

Commit a2fb133

Browse files
committed
Update imports from typescript bump
- docker-compose import now v2 by default - change depreciated plugin to externalizeDeps
1 parent 8b7e104 commit a2fb133

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

electron.vite.config.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
import { resolve } from 'path'
2-
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
2+
import { defineConfig } from 'electron-vite'
33
import react from '@vitejs/plugin-react'
44
import webfontDownload from 'vite-plugin-webfont-dl'
55
import svgr from 'vite-plugin-svgr'
66

77
export default defineConfig({
88
main: {
9-
plugins: [externalizeDepsPlugin()]
9+
build: {
10+
externalizeDeps: true
11+
}
1012
},
1113
preload: {
12-
plugins: [externalizeDepsPlugin()]
14+
build: {
15+
externalizeDeps: true
16+
}
1317
},
1418
renderer: {
1519
resolve: {
@@ -25,4 +29,4 @@ export default defineConfig({
2529
svgr()
2630
]
2731
}
28-
})
32+
})

plugins/plugin-template/backend-dev.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { upAll, downAll } = require('docker-compose/dist/v2')
1+
const { upAll, downAll } = require('docker-compose')
22
const { join } = require('path')
33

44
const containerFolder = join(__dirname, 'backend')

src/main/servers/docker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { buildAll, downAll, upAll } from 'docker-compose/dist/v2'
1+
import { buildAll, downAll, upAll } from 'docker-compose'
22
import { execPromise } from '../helpers'
33

44
export async function checkDocker(): Promise<{ available: boolean; error: string | null }> {

0 commit comments

Comments
 (0)