Skip to content

Commit cfe280c

Browse files
committed
fix linter and add nwjs equivalent
1 parent 14f4a7a commit cfe280c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lifecycleScripts/postinstall.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ module.exports = function install() {
2424
// cleaning up
2525
return Promise.resolve();
2626
}
27-
if (buildFlags.isElectron) {
28-
// If we're building for electron, we're unable to require things so we should
29-
// just assume success, unfortunately.
27+
if (buildFlags.isElectron || buildFlags.isNWjs) {
28+
// If we're building for electron or NWjs, we're unable to require the
29+
// built library so we have to just assume success, unfortunately.
3030
return Promise.resolve();
3131
}
3232

utils/buildFlags.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ module.exports = {
1414
debugBuild: !!process.env.BUILD_DEBUG,
1515
isElectron: process.env.npm_config_runtime === "electron",
1616
isGitRepo: isGitRepo,
17+
isNwjs: process.env.npm_config_runtime === "node-webkit",
1718
mustBuild: !!(isGitRepo || process.env.BUILD_DEBUG || process.env.BUILD_ONLY)
1819
};

0 commit comments

Comments
 (0)