Skip to content

Commit 9817d59

Browse files
Merge branch 'main' of github.com:nwutils/nw-builder into main
2 parents d6b2030 + 81b4c61 commit 9817d59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nwbuild.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ const nwbuild = async (options) => {
122122
// If the nwbuild property exists in srcDir/package.json, then they take precedence
123123
if (typeof nwPkg.nwbuild === "object") {
124124
options = { ...nwPkg.nwbuild };
125-
}
126-
if (typeof nwPkg.nwbuild === "undefined") {
125+
} else if (typeof nwPkg.nwbuild === "undefined") {
127126
log.debug(`nwbuild property is not defined in package.json`);
128127
} else {
129128
throw new Error(

0 commit comments

Comments
 (0)