Added test for Typescript definition

This commit is contained in:
Thomas Sauer 2017-07-02 14:32:45 +02:00
parent 3cd849197d
commit f18decbd7f
4 changed files with 43 additions and 2 deletions

View file

@ -8,7 +8,7 @@
"node": ">=4"
},
"scripts": {
"test": "xo && nyc mocha",
"test": "xo && tsc -p types && nyc mocha",
"bench": "matcha benchmark.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
@ -51,9 +51,10 @@
"mocha": "*",
"nyc": "^11.0.2",
"resolve-from": "^3.0.0",
"typescript": "^2.4.1",
"xo": "*"
},
"types": "./index.d.ts",
"types": "./types/index.d.ts",
"xo": {
"envs": [
"node",