diff options
author | Austin Schaffer <austin.schaffer@ryansg.com> | 2020-02-18 14:04:49 -0500 |
---|---|---|
committer | Austin Schaffer <austin.schaffer@ryansg.com> | 2020-02-18 14:04:49 -0500 |
commit | 845c9771726559122e9c427098583c2a3c1bf722 (patch) | |
tree | 6a59608953679c70d64b16abb37c278f9ad309c9 | |
parent | 5cb27b0e96c3d74feffb9a2a94878b8f610e7d2c (diff) | |
parent | b842bcefcd71631c130fc966f13835b6ad0223a9 (diff) | |
download | liza-845c9771726559122e9c427098583c2a3c1bf722.tar.gz liza-845c9771726559122e9c427098583c2a3c1bf722.tar.bz2 liza-845c9771726559122e9c427098583c2a3c1bf722.zip |
Add backwards compatibility with node v4
-rw-r--r-- | package.json.in | 2 |
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": { |