From 5f3ed92181fe81f7e4d155075d73cf4c2e215d1c Mon Sep 17 00:00:00 2001 From: Halit Ogunc Date: Tue, 24 Sep 2019 18:32:34 +0200 Subject: [PATCH] bin: fix the usage instructions PR-URL: https://github.com/nodejs/node-gyp/pull/1888 Reviewed-By: Rod Vagg --- lib/build.js | 3 +-- lib/list.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/build.js b/lib/build.js index 24cfe38de2..c2388fb348 100644 --- a/lib/build.js +++ b/lib/build.js @@ -7,8 +7,6 @@ const log = require('npmlog') const which = require('which') const win = process.platform === 'win32' -exports.usage = 'Invokes `' + (win ? 'msbuild' : 'make') + '` and builds the module' - function build (gyp, argv, callback) { var platformMake = 'make' if (process.platform === 'aix') { @@ -203,3 +201,4 @@ function build (gyp, argv, callback) { } module.exports = build +module.exports.usage = 'Invokes `' + (win ? 'msbuild' : 'make') + '` and builds the module' diff --git a/lib/list.js b/lib/list.js index 3e5de28851..405ebc0d88 100644 --- a/lib/list.js +++ b/lib/list.js @@ -24,4 +24,4 @@ function list (gyp, args, callback) { } module.exports = list -exports.usage = 'Prints a listing of the currently installed node development files' +module.exports.usage = 'Prints a listing of the currently installed node development files'