Module @electron-forge/core-utils
Functions
getElectronModulePath
- getElectronModulePath(dir: string, packageJSON: PackageJSONWithDeps): Promise<string | undefined>
Parameters
Returns Promise<string | undefined>
getElectronVersion
Parameters
Returns Promise<string>
listrCompatibleRebuildHook
- listrCompatibleRebuildHook<Ctx>(buildPath: string, electronVersion: string, platform: string, arch: string, config?: Partial<RebuildOptions>, task: ForgeListrTask<Ctx>, taskTitlePrefix?: string): Promise<void>
Type parameters
Parameters
buildPath: string
electronVersion: string
platform: string
arch: string
taskTitlePrefix: string = ''
Returns Promise<void>
safeYarnOrNpm
- safeYarnOrNpm(): "yarn" | "npm"
updateElectronDependency
- updateElectronDependency(packageJSON: PackageJSONWithDeps, dev: string[], exact: string[]): [string[], string[]]
Parameters
dev: string[]
exact: string[]
Returns [string[], string[]]
yarnOrNpmSpawn
Parameters
Returns Promise<string>