Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 5006439

Browse files
committed
fix(core): check for 3rd party packages properly when 'dependencies' is not defined
1 parent 187c51d commit 5006439

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/libs/core/src/build/third-party/integration-base.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ export abstract class ThirdPartyIntegrationBase {
2121

2222
if (await fse.pathExists(packageJsonPath)) {
2323
const packageJson = await fse.readJSON(packageJsonPath);
24-
return !!packageJson.dependencies[name];
24+
if (packageJson.dependencies && packageJson.dependencies[name]) {
25+
return true;
26+
}
27+
if (packageJson.devDependencies && packageJson.devDependencies[name]) {
28+
return true;
29+
}
2530
}
2631

2732
return false;

0 commit comments

Comments
 (0)