Skip to content

Commit 2a1bf38

Browse files
committed
Added a typescript section to the bower and npm configs to support tsd link (thanks @mjohnsonengr phaserjs#2189 phaserjs#2180)
1 parent 7c43f28 commit 2a1bf38

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
276276
### Updates
277277

278278
* TypeScript definitions fixes and updates (thanks @zimpy @iamfreee @milkey-mouse @juanmirod @danzel)
279-
* Docs typo fixes (thanks @zeterain @staff0rd @milkey-mouse @dick-clark @nlotz)
279+
* Docs typo fixes (thanks @zeterain @staff0rd @milkey-mouse @dick-clark @nlotz @s4wny)
280280
* Emitter methods `at`, `explode`, `flow`, `kill`, `revive`, `setAlpha`, `setRotation`, `setScale`, `setSize`, `setXSpeed`, `setYSpeed` and `start` now return the Emitter instance for better method chaining (thanks @samme #2308)
281281
* Tilemap.hasTile will now return `false` if the Tile doesn't exist in the coordinates given (which can happen if the coordinates are out of bounds) (thanks @cy-ryo-fujiwara #2304)
282282
* Update FrameData to check if both the numeric index was set and exists. Should fix Phaser Tiled integration as a result (thanks @Weedshaker #2298)
@@ -286,6 +286,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
286286
* Force the usage of typescript 1.4.1 in the package.json so that the TypeScript defs with comments is rebuilt properly again (thanks @vulvulune #2198)
287287
* A tiny logic update in the StateManager (thanks @jaminscript #2151)
288288
* The Style object passed in to Phaser.Text is now cloned instead of referenced. This means you can adjust single Text instances without invaliding other Text objects using the same style object (thanks @asyncanup #2267)
289+
* Added a typescript section to the bower and npm configs to support `tsd link` (thanks @mjohnsonengr #2189 #2180)
289290

290291
### Bug Fixes
291292

bower.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,12 @@
3232
"bower_components",
3333
"test",
3434
"tests"
35-
]
35+
],
36+
"typescript": {
37+
"definitions": [
38+
"typescript/p2.d.ts",
39+
"typescript/phaser.comments.d.ts",
40+
"typescript/pixi.comments.d.ts"
41+
]
42+
}
3643
}

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,12 @@
4646
"load-grunt-config": "~0.7.2",
4747
"typescript": "1.4.1",
4848
"yuidocjs": "^0.3.50"
49+
},
50+
"typescript": {
51+
"definitions": [
52+
"typescript/p2.d.ts",
53+
"typescript/phaser.comments.d.ts",
54+
"typescript/pixi.comments.d.ts"
55+
]
4956
}
5057
}

0 commit comments

Comments
 (0)