From 6f83a571c8d7363192eaa3fd213ebe76d192c86d Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Mon, 18 Mar 2024 14:59:13 +0100 Subject: [PATCH] refactor: use @metamask/providers as a peer dependency --- package.json | 5 ++++- yarn.lock | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f595f5e1..13b0715fe 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "test:watch": "jest --watch" }, "dependencies": { - "@metamask/providers": "^16.0.0", "@metamask/snaps-sdk": "^3.1.1", "@metamask/utils": "^8.3.0", "@types/uuid": "^9.0.1", @@ -53,6 +52,7 @@ "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", "@metamask/eslint-config-typescript": "^12.1.0", + "@metamask/providers": "^16.0.0", "@types/jest": "^28.1.6", "@types/node": "^16", "@typescript-eslint/eslint-plugin": "^5.43.0", @@ -77,6 +77,9 @@ "typedoc": "^0.23.15", "typescript": "~4.8.4" }, + "peerDependencies": { + "@metamask/providers": ">=15 || <17" + }, "packageManager": "yarn@3.2.1", "engines": { "node": "^18.18 || >=20" diff --git a/yarn.lock b/yarn.lock index f4b976f4c..1ecc199b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1088,6 +1088,8 @@ __metadata: typedoc: ^0.23.15 typescript: ~4.8.4 uuid: ^9.0.0 + peerDependencies: + "@metamask/providers": ">=15 || <17" languageName: unknown linkType: soft