Skip to content

Commit 7dba22d

Browse files
committed
Update usage strings if --gypjs command-line option was supplied
Set `npm_config_gypjs` env variable to affect usage text for `configure` and `build` commands.
1 parent 21eee45 commit 7dba22d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/node-gyp.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ proto.parseArgv = function parseOpts (argv) {
176176
if (this.opts.loglevel) {
177177
log.level = this.opts.loglevel
178178
}
179+
if (this.opts.gypjs) {
180+
process.env[npm_config_prefix + 'gypjs'] = true
181+
}
179182
log.resume()
180183
}
181184

0 commit comments

Comments
 (0)