Skip to content

Commit 6ce6e68

Browse files
mathieutunklayman
andauthored
fix(build): Format properly generated package.json (#1250)
* fix(build): Format properly generated package.json * fix(tests/commands): formatting with argument checking Co-authored-by: Noah Klayman <[email protected]>
1 parent 0dfadbc commit 6ce6e68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/commands.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ describe('electron:build', () => {
380380
dependencies: {
381381
external: '^0.0.1'
382382
}
383-
})
383+
}, undefined, 2)
384384
)
385385
})
386386

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module.exports = (api, options) => {
168168
})
169169
fs.writeFileSync(
170170
`${outputDir}/bundled/package.json`,
171-
JSON.stringify(pkg, 2)
171+
JSON.stringify(pkg, null, 2)
172172
)
173173
// Prevent electron-builder from installing app deps
174174
fs.ensureDirSync(`${outputDir}/bundled/node_modules`)

0 commit comments

Comments
 (0)