feat(build): add esbuild bundler for Electron main process
This commit is contained in:
15
package.json
15
package.json
@@ -19,10 +19,10 @@
|
||||
"test:e2e": "vitest run tests/e2e",
|
||||
"test:watch": "vitest watch",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"companion": "npm run companion:build && electron dist/main/index.js",
|
||||
"companion:dev": "tsc -p tsconfig.electron.json --watch & vite build --config vite.config.electron.ts --watch",
|
||||
"companion:build": "tsc -p tsconfig.electron.json && vite build --config vite.config.electron.ts",
|
||||
"companion:start": "electron dist/main/index.js"
|
||||
"companion": "npm run companion:build && electron .",
|
||||
"companion:dev": "node build-main.config.js --watch & vite build --config vite.config.electron.ts --watch",
|
||||
"companion:build": "node build-main.config.js && vite build --config vite.config.electron.ts",
|
||||
"companion:start": "electron ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cucumber/cucumber": "^11.0.1",
|
||||
@@ -31,7 +31,8 @@
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"@vitejs/plugin-react": "^4.2.0",
|
||||
"@vitest/ui": "^2.1.8",
|
||||
"electron": "^28.0.0",
|
||||
"electron": "^39.2.3",
|
||||
"esbuild": "^0.27.0",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^6.0.3",
|
||||
"vitest": "^2.1.8"
|
||||
@@ -40,5 +41,5 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"main": "dist/main/index.js"
|
||||
}
|
||||
"main": "dist/main/apps/companion/main/index.js"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user