Skip to content

Commit

Permalink
feat(deps): move typescript to peerDependecies (#38)
Browse files Browse the repository at this point in the history
* feat(deps): move typescript to peerDependecies

BREAKING CHANGE: TypeScript now has to be installed manually so that you can choose which version to use

* docs(readme): update install commands
  • Loading branch information
ikatyang authored Aug 18, 2017
1 parent ca55f9b commit e9800f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ This project uses the same MAJOR version as Jest.
using npm

```sh
npm install --save-dev jest dts-jest
npm install --save-dev dts-jest jest typescript
```

using yarn

```sh
yarn add --dev jest dts-jest
yarn add --dev dts-jest jest typescript
```

## Usage
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"dependencies": {
"require-from-string": "^1.2.1",
"ts-comment": "^1.0.1",
"tsconfig-extends": "^1.0.1",
"typescript": "^2.4.0"
"tsconfig-extends": "^1.0.1"
},
"devDependencies": {
"@types/jest": "20.0.7",
Expand All @@ -41,10 +40,12 @@
"tslint": "5.6.0",
"tslint-config-ikatyang": "2.2.0",
"tslint-config-prettier-ext": "1.5.0",
"tslint-plugin-prettier": "1.1.0"
"tslint-plugin-prettier": "1.1.0",
"typescript": "2.4.2"
},
"peerDependencies": {
"jest": "^20.0.4"
"jest": "^20.0.4",
"typescript": "^2.0.0"
},
"engines": {
"node": ">= 4"
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ type-check@~0.3.2:
dependencies:
prelude-ls "~1.1.2"

typescript@^2.4.0:
typescript@2.4.2, typescript@^2.4.0:
version "2.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.2.tgz#f8395f85d459276067c988aa41837a8f82870844"

Expand Down

0 comments on commit e9800f1

Please sign in to comment.