MCPcopy Create free account
hub / github.com/electron-userland/electron-builder / buildConfig

Function buildConfig

test/src/concurrentBuildsTest.ts:19–25  ·  view source on GitHub ↗
(data: any, isApp: boolean)

Source from the content-addressed store, hash-verified

17}
18const projectDirCreated = async (projectDir: string, _tmpDir: TmpDir) => {
19 const buildConfig = (data: any, isApp: boolean) => {
20 deepAssign(data, {
21 name: "concurrent", // needs to be lowercase for fpm targets (can't use default fixture TestApp)
22 version: "1.1.0",
23 ...(!isApp ? { build: config } : {}), // build config is only allowed in "dev" (root) package.json in two-package.json setups
24 })
25 }
26 await modifyPackageJson(projectDir, (data: any) => buildConfig(data, true), true)
27 await modifyPackageJson(projectDir, (data: any) => buildConfig(data, false), false)
28}

Callers 1

projectDirCreatedFunction · 0.85

Calls 1

deepAssignFunction · 0.90

Tested by

no test coverage detected