We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6b2030 + 81b4c61 commit 9817d59Copy full SHA for 9817d59
src/nwbuild.js
@@ -122,8 +122,7 @@ const nwbuild = async (options) => {
122
// If the nwbuild property exists in srcDir/package.json, then they take precedence
123
if (typeof nwPkg.nwbuild === "object") {
124
options = { ...nwPkg.nwbuild };
125
- }
126
- if (typeof nwPkg.nwbuild === "undefined") {
+ } else if (typeof nwPkg.nwbuild === "undefined") {
127
log.debug(`nwbuild property is not defined in package.json`);
128
} else {
129
throw new Error(
0 commit comments