Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin Schaffer <austin.schaffer@ryansg.com>2020-02-14 11:44:20 -0500
committerAustin Schaffer <austin.schaffer@ryansg.com>2020-02-14 15:47:07 -0500
commitb842bcefcd71631c130fc966f13835b6ad0223a9 (patch)
tree6a59608953679c70d64b16abb37c278f9ad309c9
parent5cb27b0e96c3d74feffb9a2a94878b8f610e7d2c (diff)
downloadliza-b842bcefcd71631c130fc966f13835b6ad0223a9.tar.gz
liza-b842bcefcd71631c130fc966f13835b6ad0223a9.tar.bz2
liza-b842bcefcd71631c130fc966f13835b6ad0223a9.zip
Add backwards compatibility with node v4
-rw-r--r--package.json.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json.in b/package.json.in
index 7d4be74..ed4bf4e 100644
--- a/package.json.in
+++ b/package.json.in
@@ -21,7 +21,7 @@
},
"scripts": {
- "postinstall": "./configure && if [ $(@NODE@ --version | sed 's/^v//' | cut -d. -f1) -ge \"12\" ]; then ln -s php-serialize ./node_modules/php; else rm -f node_modules/php; fi"
+ "postinstall": "./configure && mod_dir=node_modules; [ ! -d \"node_modules\" ] && mod_dir=..; if [ $(@NODE@ --version | sed 's/^v//' | cut -d. -f1) -ge \"12\" ]; then ln -s php-serialize ./$mod_dir/php; else rm -f $mod_dir/php; fi"
},
"dependencies": {