Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ccharly
Copy link
Collaborator

@ccharly ccharly commented Dec 10, 2024

Updating some deps to avoid pulling non-needed dependencies in the main dependency tree.

Also, use @metamask/keyring-api as a peerDependencies for every packages to force using the same API everywhere.

@ccharly
Copy link
Collaborator Author

ccharly commented Dec 10, 2024

@metamaskbot publish-preview

Copy link

Preview builds have been published. See these instructions (from the core monorepo) for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/keyring-api": "12.0.0-4685a87",
  "@metamask-previews/eth-hd-keyring": "9.0.1-4685a87",
  "@metamask-previews/eth-ledger-bridge-keyring": "8.0.1-4685a87",
  "@metamask-previews/eth-simple-keyring": "8.0.1-4685a87",
  "@metamask-previews/eth-trezor-keyring": "6.0.1-4685a87",
  "@metamask-previews/keyring-internal-api": "1.0.0-4685a87",
  "@metamask-previews/keyring-internal-snap-client": "1.0.0-4685a87",
  "@metamask-previews/eth-snap-keyring": "7.0.0-4685a87",
  "@metamask-previews/keyring-snap-client": "1.0.0-4685a87",
  "@metamask-previews/keyring-snap-sdk": "1.0.0-4685a87",
  "@metamask-previews/keyring-utils": "1.0.0-4685a87"
}

"typedoc": "^0.25.13",
"typescript": "~5.6.3"
},
"peerDependencies": {
"tslib": "^2.6.2"
Copy link
Collaborator Author

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.

@ccharly ccharly force-pushed the refactor/deps branch 2 times, most recently from a0d508c to 8e5037c Compare December 10, 2024 17:07
@ccharly
Copy link
Collaborator Author

ccharly commented Dec 10, 2024

@metamaskbot publish-preview

Copy link

Preview builds have been published. See these instructions (from the core monorepo) for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/keyring-api": "12.0.0-fb72e65",
  "@metamask-previews/eth-hd-keyring": "9.0.1-fb72e65",
  "@metamask-previews/eth-ledger-bridge-keyring": "8.0.1-fb72e65",
  "@metamask-previews/eth-simple-keyring": "8.0.1-fb72e65",
  "@metamask-previews/eth-trezor-keyring": "6.0.1-fb72e65",
  "@metamask-previews/keyring-internal-api": "1.0.0-fb72e65",
  "@metamask-previews/keyring-internal-snap-client": "1.0.0-fb72e65",
  "@metamask-previews/eth-snap-keyring": "7.0.0-fb72e65",
  "@metamask-previews/keyring-snap-client": "1.0.0-fb72e65",
  "@metamask-previews/keyring-snap-sdk": "1.0.0-fb72e65",
  "@metamask-previews/keyring-utils": "1.0.0-fb72e65"
}

@@ -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"
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant