Skip to content

Commit 40f2f74

Browse files
committed
fix: remove package.json from import
1 parent c9638be commit 40f2f74

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

forge.config.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ import { MakerRpm } from "@electron-forge/maker-rpm";
66
import { VitePlugin } from "@electron-forge/plugin-vite";
77
import { FusesPlugin } from "@electron-forge/plugin-fuses";
88
import { FuseV1Options, FuseVersion } from "@electron/fuses";
9-
import pkg from "./package.json";
109

1110
const config: ForgeConfig = {
1211
packagerConfig: {
13-
executableName: pkg.name,
14-
name: pkg.productName,
1512
asar: true,
1613
},
1714
rebuildConfig: {},
@@ -23,11 +20,8 @@ const config: ForgeConfig = {
2320
],
2421
plugins: [
2522
new VitePlugin({
26-
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
27-
// If you are familiar with Vite configuration, it will look really familiar.
2823
build: [
2924
{
30-
// `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.
3125
entry: "src/main.ts",
3226
config: "vite.main.config.ts",
3327
target: "main",
@@ -45,8 +39,7 @@ const config: ForgeConfig = {
4539
},
4640
],
4741
}),
48-
// Fuses are used to enable/disable various Electron functionality
49-
// at package time, before code signing the application
42+
5043
new FusesPlugin({
5144
version: FuseVersion.V1,
5245
[FuseV1Options.RunAsNode]: false,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"moduleResolution": "node",
2222
"resolveJsonModule": true
2323
},
24-
"include": ["src/**/*", "package.json", "forge.config.ts"]
24+
"include": ["src/**/*", "./package.json", "./forge.config.ts"]
2525
}

0 commit comments

Comments
 (0)