fix post install (#66)

* fix post install for projects that are not using typescript

* fix travis
This commit is contained in:
Nick Nance 2016-07-29 17:03:47 -07:00 committed by Jonas Helfer
parent ab1ccfc7ca
commit 0c0a25df17
2 changed files with 3 additions and 3 deletions

View file

@ -6,6 +6,7 @@ node_js:
install:
- npm install -g coveralls
- npm install
- npm run typings
script:
- npm test
@ -13,4 +14,4 @@ script:
- coveralls < ./coverage/lcov.info || true # ignore coveralls error
# Allow Travis tests to run in containers.
sudo: false
sudo: false

View file

@ -8,8 +8,7 @@
},
"scripts": {
"compile": "tsc",
"postinstall": "typings install && npm dedupe",
"prepublish": "npm run compile",
"typings": "typings install",
"pretest": "npm run compile",
"test": "npm run testonly --",
"posttest": "npm run lint",