File tree 2 files changed +29
-3
lines changed
2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 12
12
"bugs" : {
13
13
"url" : " https://github.com/nodenv/node-build-jxcore/issues"
14
14
},
15
+ "directories" : {
16
+ "test" : " test"
17
+ },
15
18
"files" : [
19
+ " script" ,
16
20
" share"
17
21
],
18
- "directories" : {
19
- "test" : " ./test"
20
- },
21
22
"scripts" : {
23
+ "postinstall" : " script/postinstall" ,
22
24
"posttest" : " npm run lint" ,
23
25
"lint" : " git ls-files bin script **/*.*sh | xargs shellcheck" ,
24
26
"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