From b44379516581225f9ffa460a31c395438c18d8e3 Mon Sep 17 00:00:00 2001 From: Alex Robbin Date: Mon, 1 Aug 2022 22:25:18 -0400 Subject: [PATCH] add a peer dependency between rum and logs packages --- packages/logs/package.json | 8 ++++++++ packages/rum/package.json | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/packages/logs/package.json b/packages/logs/package.json index 3ef5778175..9aa4f298ca 100644 --- a/packages/logs/package.json +++ b/packages/logs/package.json @@ -15,6 +15,14 @@ "dependencies": { "@datadog/browser-core": "4.16.0" }, + "peerDependencies": { + "@datadog/rum": "4.16.0" + }, + "peerDependenciesMeta": { + "@datadog/rum": { + "optional": true + } + }, "devDependencies": { "@types/sinon": "9.0.10", "sinon": "9.2.4" diff --git a/packages/rum/package.json b/packages/rum/package.json index 9385c13a6d..15a4a37909 100644 --- a/packages/rum/package.json +++ b/packages/rum/package.json @@ -15,6 +15,14 @@ "@datadog/browser-core": "4.16.0", "@datadog/browser-rum-core": "4.16.0" }, + "peerDependencies": { + "@datadog/logs": "4.16.0" + }, + "peerDependenciesMeta": { + "@datadog/logs": { + "optional": true + } + }, "repository": { "type": "git", "url": "https://github.com/DataDog/browser-sdk.git",