Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cfe280c

Browse filesBrowse files
committed
fix linter and add nwjs equivalent
1 parent 14f4a7a commit cfe280c
Copy full SHA for cfe280c

File tree

Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎lifecycleScripts/postinstall.js‎

Copy file name to clipboardExpand all lines: lifecycleScripts/postinstall.js
+3-3Lines 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

Collapse file

‎utils/buildFlags.js‎

Copy file name to clipboardExpand all lines: utils/buildFlags.js
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.