Skip to content

Commit 1da1917

Browse files
Merge pull request #2 from RobotlegsJS/peer-dependencies
Move phaser-ce library to peerDependencies
2 parents 717ad16 + dc1aa78 commit 1da1917

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Major Breaking Changes:
99

1010
- Rename package to `@robotlegsjs/phaser-ce-signalcommandmap` and move to [RobotlegsJS-Phaser-CE-SignalCommandMap](https://github.com/RobotlegsJS/RobotlegsJS-Phaser-CE-SignalCommandMap) (see #1).
1111

12+
- Move `phaser-ce` library to **peerDependencies**, allowing the final user to choose the desired version of the `phaser-ce` library on each project (see #3).
13+
1214
- Update `@robotlegsjs/core` to version `0.2.0` (see [44](https://github.com/RobotlegsJS/RobotlegsJS-Phaser-SignalCommandMap/pull/44)).
1315

1416
Features Or Improvements:

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,35 @@ Or using [Yarn](https://yarnpkg.com/en/):
2828
yarn add @robotlegsjs/phaser-ce-signalcommandmap
2929
```
3030

31+
From version `0.2.0` of this package, the [Phaser-CE](https://github.com/photonstorm/phaser-ce) dependency was moved to **peerDependencies**,
32+
allowing the final user to choose the desired version of the `phaser-ce` library on each project.
33+
34+
The `@robotlegsjs/phaser-ce-signalcommandmap` package is compatible with versions between the `>=2.8.1 <3` version range of `phaser-ce` library.
35+
36+
As example, when you would like to use the version `2.8.1` of `phaser-ce` library, you can run:
37+
38+
```bash
39+
npm install [email protected] reflect-metadata --save-prod
40+
```
41+
42+
or
43+
44+
```bash
45+
yarn add [email protected] reflect-metadata
46+
```
47+
3148
Then follow the [installation instructions](https://github.com/RobotlegsJS/RobotlegsJS/blob/master/README.md#installation) of **RobotlegsJS** library to complete the setup of your project.
3249

50+
**Dependencies**
51+
52+
+ [RobotlegsJS](https://github.com/RobotlegsJS/RobotlegsJS)
53+
+ [tslib](https://github.com/Microsoft/tslib)
54+
55+
**Peer Dependencies**
56+
57+
+ [Phaser-CE](https://github.com/photonstorm/phaser-ce)
58+
+ [reflect-metadata](https://github.com/rbuckton/reflect-metadata)
59+
3360
License
3461
---
3562

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@
4848
"homepage": "https://github.com/RobotlegsJS/RobotlegsJS-Phaser-CE-SignalCommandMap#readme",
4949
"dependencies": {
5050
"@robotlegsjs/core": "^0.2.0",
51-
"phaser-ce": "^2.11.0",
5251
"tslib": "^1.9.3"
5352
},
53+
"peerDependencies": {
54+
"phaser-ce": "^2.8.1",
55+
"reflect-metadata": "^0.1.12"
56+
},
5457
"devDependencies": {
5558
"@types/bluebird": "^3.5.23",
5659
"@types/chai": "^4.1.4",
@@ -80,6 +83,7 @@
8083
"karma-sourcemap-writer": "^0.1.2",
8184
"karma-webpack": "^3.0.0",
8285
"mocha": "^5.2.0",
86+
"phaser-ce": "^2.11.0",
8387
"prettier": "^1.14.0",
8488
"publish-please": "^3.2.0",
8589
"reflect-metadata": "^0.1.12",
@@ -95,8 +99,5 @@
9599
"webpack": "^4.16.4",
96100
"webpack-cli": "^3.1.0",
97101
"webpack-dev-server": "^3.1.5"
98-
},
99-
"peerDependencies": {
100-
"reflect-metadata": "^0.1.12"
101102
}
102103
}

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,8 +1248,8 @@ [email protected]:
12481248
resolved "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"
12491249

12501250
commander@^2.12.1, commander@^2.15.1, commander@^2.9.0:
1251-
version "2.16.0"
1252-
resolved "https://registry.npmjs.org/commander/-/commander-2.16.0.tgz#f16390593996ceb4f3eeb020b31d78528f7f8a50"
1251+
version "2.17.0"
1252+
resolved "https://registry.npmjs.org/commander/-/commander-2.17.0.tgz#9d07b25e2a6f198b76d8b756a0e8a9604a6a1a60"
12531253

12541254
commander@~2.13.0:
12551255
version "2.13.0"

0 commit comments

Comments
 (0)