Skip to content

Commit

Permalink
Add resolutions to the PackageJSON type (#668)
Browse files Browse the repository at this point in the history
* Add resolutions to package.json type definition

Technically workspace packages can have resolutions too, not just root level package.json's.
Ran into this missing when trying to use `@manypkg/get-packages` to clean up workspace resolutions

* add changeset

* Update .changeset/hot-weeks-dance.md

Co-authored-by: Mateusz Burzy艅ski <mateuszburzynski@gmail.com>
  • Loading branch information
marcodejongh and Andarist committed Nov 14, 2021
1 parent a8c8a03 commit 9a993ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-weeks-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/types": patch
---

Add `resolutions` to the `PackageJSON` type.
1 change: 1 addition & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export type PackageJSON = {
peerDependencies?: { [key: string]: string };
devDependencies?: { [key: string]: string };
optionalDependencies?: { [key: string]: string };
resolutions?: { [key: string]: string };
private?: boolean;
publishConfig?: {
access?: AccessType;
Expand Down

0 comments on commit 9a993ba

Please sign in to comment.