Skip to content

Commit 65fdee3

Browse files
committed
fix: add back bin/node-gyp-bin/node-gyp files
This was an unintended breaking change as part of #6554. The `node-gyp` bin files are not used by the CLI directly but they are relied on by other tooling. This change is only intended to land on the v9 release line. This partially reverts commit 3a7378d.
1 parent e6cce28 commit 65fdee3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

bin/node-gyp-bin/node-gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
if [ "x$npm_config_node_gyp" = "x" ]; then
3+
node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@"
4+
else
5+
"$npm_config_node_gyp" "$@"
6+
fi

bin/node-gyp-bin/node-gyp.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if not defined npm_config_node_gyp (
2+
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
3+
) else (
4+
node "%npm_config_node_gyp%" %*
5+
)

0 commit comments

Comments
 (0)