File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1313 "url" : " https://github.com/nodenv/node-build-prerelease/issues"
1414 },
1515 "files" : [
16+ " script" ,
1617 " share"
1718 ],
1819 "directories" : {
19- "test" : " ./ test"
20+ "test" : " test"
2021 },
2122 "scripts" : {
23+ "postinstall" : " script/postinstall" ,
2224 "posttest" : " npm run lint" ,
2325 "lint" : " git ls-files bin script **/*.*sh | xargs shellcheck" ,
2426 "verify-definitions" : " scripty" ,
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+ IFS=$' \n\t '
5+
6+ installed_by_name () {
7+ local pattern=' "remain":\["' ${npm_package_name-}
8+
9+ [[ ${npm_config_argv-} =~ $pattern ]]
10+ }
11+
12+ if [ -n " ${npm_config_argv-} " ] && ! installed_by_name; then
13+ exit
14+ fi
15+
16+ cat << -MSG
17+ ====================
18+ ${npm_package_name-} caveats:
19+
20+ For \` node-build\` /\` nodenv install\` to pick up definitions provided by this plugin,
21+ ensure '$PWD /share/node-build' exists in NODE_BUILD_DEFINITIONS.
22+ export NODE_BUILD_DEFINITIONS="$PWD /share/node-build"
23+ ====================
24+ MSG
You can’t perform that action at this time.
0 commit comments