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",