Skip to content

Commit d876918

Browse files
fhembergerrvagg
authored andcommitted
Add npm preinstall script
See nodejs#3986
1 parent a828c74 commit d876918

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

tools/osx-pkg/osx-pkg.pkgproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,13 @@
10831083
<key>PATH_TYPE</key>
10841084
<integer>1</integer>
10851085
</dict>
1086+
<key>PREINSTALL_PATH</key>
1087+
<dict>
1088+
<key>PATH</key>
1089+
<string>scripts/npm_preinstall.sh</string>
1090+
<key>PATH_TYPE</key>
1091+
<integer>1</integer>
1092+
</dict>
10861093
<key>RESOURCES</key>
10871094
<array/>
10881095
</dict>
@@ -1655,7 +1662,7 @@
16551662
ZW50LVN0eWxlLVR5cGUiIGNvbnRlbnQ9InRleHQvY3NzIj4KPHRp
16561663
dGxlPjwvdGl0bGU+CjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29u
16571664
dGVudD0iQ29jb2EgSFRNTCBXcml0ZXIiPgo8bWV0YSBuYW1lPSJD
1658-
b2NvYVZlcnNpb24iIGNvbnRlbnQ9IjEyNjUuMjEiPgo8c3R5bGUg
1665+
b2NvYVZlcnNpb24iIGNvbnRlbnQ9IjE0MDQuMzQiPgo8c3R5bGUg
16591666
dHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5
16601667
Pgo8L2JvZHk+CjwvaHRtbD4K
16611668
</data>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
# TODO Can this be done inside the .pmdoc?
3+
# TODO Can we extract $PREFIX from the installer?
4+
5+
set -e
6+
7+
rm -rf /usr/local/lib/node_modules/npm

0 commit comments

Comments
 (0)