Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ceb7a12

Browse files
committed
do not require global tsd
1 parent ef2b102 commit ceb7a12

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

react-with-type-safe-flux/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## Getting started
44

5-
You'll need [node / npm](https://nodejs.org/) and [tsd](http://definitelytyped.org/tsd/) installed globally. To get up and running just enter:
5+
You'll need [node / npm](https://nodejs.org/) installed. To get up and running just enter:
66

77
```
88
npm install
9-
tsd install
9+
npm run tsd install
1010
npm run serve
1111
```
1212

react-with-type-safe-flux/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
"description": "ES6 + TypeScript + Babel + React + Karma: The Secret Recipe",
55
"main": "index.js",
66
"scripts": {
7+
"tsd": "tsd",
78
"test": "karma start --reporters mocha,junit --single-run --browsers PhantomJS",
89
"serve": "gulp watch-and-serve",
910
"watch": "gulp watch",
1011
"build": "gulp build"
1112
},
13+
"bin": {
14+
"tsd": "./node_modules/tsd/build/cli.js"
15+
},
1216
"repository": {
1317
"type": "git",
1418
"url": "git+https://github.com/microsoft/typescriptsamples.git"
@@ -65,6 +69,7 @@
6569
"react-addons-test-utils": "^0.14.3",
6670
"react-dom": "^0.14.3",
6771
"ts-loader": "^0.8.1",
72+
"tsd": "^0.6.5",
6873
"typescript": "^1.8.0",
6974
"webpack": "^1.12.2",
7075
"webpack-notifier": "^1.2.1"

0 commit comments

Comments
 (0)