Better json parsing

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-11-14 13:58:38 -05:00
parent a94c71a8dd
commit 0b0bded848

View File

@ -18,7 +18,7 @@ rec {
cd unpack
unpackFile ${src}
mv */ package 2>/dev/null || true
sed -i -e "s/: \"latest\"/: \"*\"/" -e "s/: \"git\(\+\(ssh\|http\|https\)\)\?\:\/\/[^\"]*\"/: \"*\"/" package/package.json
sed -i -e "s/:\s*\"latest\"/: *\"*\"/" -e "s/:\s*\"git\(\+\(ssh\|http\|https\)\)\?\:\/\/[^\"]*\"/: \"*\"/" package/package.json
mv * $out
'';