Added test for Typescript definition
This commit is contained in:
parent
3cd849197d
commit
f18decbd7f
4 changed files with 43 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue