Skip to content

Commit 03c3e30

Browse files
committed
fix prisma test
1 parent 73aebfd commit 03c3e30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/dd-trace/test/plugins/externals.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
"versions": ["8.0.0"]
499499
}
500500
],
501-
"@prisma/client": [
501+
"prisma": [
502502
{
503503
"name": "prisma",
504504
"dep": "@prisma/client"

scripts/install_plugin_modules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async function assertPeerDependencies () {
157157
// Add missing dependency to the module. While this technically means the
158158
// module is broken, a user could add the dependency manually as well, so we
159159
// need to do the same thing in order to test that scenario.
160-
if (dep !== externalName && typeof dep === 'string') {
160+
if (typeof dep === 'string' && semver.validRange(dep)) {
161161
versionPkgJson.dependencies[name] = dep
162162

163163
hasPeers = true

0 commit comments

Comments
 (0)