-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: move deps to devDeps for types + use peerDep for keyring-api #131
base: main
Are you sure you want to change the base?
Conversation
@metamaskbot publish-preview |
Preview builds have been published. See these instructions (from the Expand for full list of packages and versions.
|
4685a87
to
1a4d499
Compare
"typedoc": "^0.25.13", | ||
"typescript": "~5.6.3" | ||
}, | ||
"peerDependencies": { | ||
"tslib": "^2.6.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been a peerDependencies
since the introduction of @trezor/connect-web
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be in both devDependencies
and peerDependencies
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to follow the same pattern than for core
which is to re-declare (explicitly) peerDependencies
in the package if we are not providing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, if we get rid of it in the devDependencies
we get a warning from Yarn.. So I'd say we need it here yes
8e5037c
to
fb72e65
Compare
@metamaskbot publish-preview |
Preview builds have been published. See these instructions (from the Expand for full list of packages and versions.
|
@@ -61,7 +61,8 @@ | |||
"@ts-bridge/cli": "^0.6.1", | |||
"@types/jest": "^29.5.12", | |||
"deepmerge": "^4.2.2", | |||
"jest": "^29.5.0" | |||
"jest": "^29.5.0", | |||
"typescript": "~5.6.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed as of now, but since this package has already been "future-proof" for ts-bridge
we might wanna add typescript
as well.
2ad133a
to
48ebbbe
Compare
@@ -68,6 +68,9 @@ | |||
"typedoc": "^0.25.13", | |||
"typescript": "~5.6.3" | |||
}, | |||
"peerDependencies": { | |||
"@metamask/keyring-api": "workspace:^" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To enforce the relationship with the keyring-api
we make it now a peer dep, so the consumer has to provide the correct keyring-api
version on its own.
2476a7f
to
716e6f9
Compare
716e6f9
to
6d1be95
Compare
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
}, | ||
"devDependencies": { | ||
"@lavamoat/allow-scripts": "^3.2.1", | ||
"@lavamoat/preinstall-always-fail": "^2.1.0", | ||
"@metamask/auto-changelog": "^3.4.4", | ||
"@metamask/keyring-api": "workspace:^", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to dev
since we only need the keyring-api
for tests here.
Updating some deps to avoid pulling non-needed dependencies in the main dependency tree.
Also, use
@metamask/keyring-api
as apeerDependencies
for every packages to force using the same API everywhere.