Skip to content

Commit

Permalink
chore(deps): mark typescript as optional (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Aug 7, 2023
1 parent 3f5d46a commit ddb1bea
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-students-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ts-essentials": minor
---

Make `typescript` optional as a peer dependency
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,14 @@ facilitate common type transformations. These utilities are available globally.

## TypeScript dependency table

| `ts-essentials` | `typescript` / type of dependency |
| --------------- | --------------------------------- |
| `^8.0.0` | `^4.1.0` / peer |
| `^5.0.0` | `^3.7.0` / peer |
| `^3.0.1` | `^3.5.0` / peer |
| `^1.0.1` | `^3.2.2` / dev |
| `^1.0.0` | `^3.0.3` / dev |
| `ts-essentials` | `typescript` / type of dependency |
| --------------- | ------------------------------------------------------------------------------------- |
| `^9.4.0` | `^4.1.0` / [peer optional](https://github.com/ts-essentials/ts-essentials/issues/370) |
| `^8.0.0` | `^4.1.0` / peer |
| `^5.0.0` | `^3.7.0` / peer |
| `^3.0.1` | `^3.5.0` / peer |
| `^1.0.1` | `^3.2.2` / dev |
| `^1.0.0` | `^3.0.3` / dev |

## Contributors

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
"peerDependencies": {
"typescript": ">=4.1.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"devDependencies": {
"@changesets/cli": "^2.11.2",
"@codechecks/build-size-watcher": "^0.1.0",
Expand Down

0 comments on commit ddb1bea

Please sign in to comment.