Skip to content

Commit bc5f0d9

Browse files
Fix crash when pkgJson is undefined (#14)
1 parent 4317897 commit bc5f0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checks/preReleases.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { FatalError } = require("../errors");
22

3-
function checkForPreRelease(pkgJson) {
3+
function checkForPreRelease(pkgJson = {}) {
44
const {
55
dependencies = {},
66
devDependencies = {},

0 commit comments

Comments
 (0)