Skip to content

Commit

Permalink
Update TypeScript definitions and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aikoven committed Nov 20, 2016
1 parent f63e49c commit 0aed9b7
Show file tree
Hide file tree
Showing 11 changed files with 727 additions and 1,070 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Selectors for Redux.",
"main": "lib/index.js",
"jsnext:main": "es/index.js",
"typings": "src/reselect.d.ts",
"typings": "lib/index.d.ts",
"files": [
"lib",
"src",
Expand Down Expand Up @@ -40,13 +40,13 @@
}
},
"test:typescript": {
"command": "node ./typescript_test/test.js"
"command": "typings-tester --dir typescript_test"
},
"test:flow": {
"command": "ncp ./src/index.js.flow ./flow_test/should_fail/flow-typed/index.js.flow && ncp ./src/index.js.flow ./flow_test/should_pass/flow-typed/index.js.flow && node ./flow_test/test.js"
},
"compile:commonjs": {
"command": "babel -d lib/ src/ && ncp ./src/reselect.d.ts ./lib/reselect.d.ts && ncp ./src/index.js.flow ./lib/index.js.flow",
"command": "babel -d lib/ src/ && ncp ./src/index.d.ts ./lib/index.d.ts && ncp ./src/index.js.flow ./lib/index.js.flow",
"env": {
"NODE_ENV": "commonjs"
}
Expand Down Expand Up @@ -98,6 +98,7 @@
"mocha": "^2.2.5",
"ncp": "^2.0.0",
"nyc": "^6.4.0",
"typescript": "^1.8.10"
"typescript": "^2.1.1",
"typings-tester": "^0.1.0"
}
}
Loading

0 comments on commit 0aed9b7

Please sign in to comment.