From 9f1db3f2bcf67f49c9b145e1d1e8f090220372df Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 19 Sep 2014 21:55:37 +0000 Subject: [PATCH] chore: correct postinstall.sh script --- package.json | 3 +-- postinstall.sh | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 082de0ffc2..d06447da5a 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,7 @@ "version": "0.0.0", "description": "Angular", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "postinstall": "./postinstall.sh" + "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Tobias Bosch ", "license": "MIT", diff --git a/postinstall.sh b/postinstall.sh index 0a8d34e8e7..3ce07b44f0 100755 --- a/postinstall.sh +++ b/postinstall.sh @@ -1,12 +1,12 @@ #! /bin/sh +git submodule init && git submodule update + rm node_modules/traceur ln -s ../tools/traceur node_modules/traceur rm node_modules/js2dart -ln -s ../tools/j2dart node_modules/js2dart +ln -s ../tools/js2dart node_modules/js2dart -cd tools/traceur -npm install +(cd tools/traceur; npm install) -cd ../js2dart -npm install \ No newline at end of file +(cd tools/js2dart; npm install)