Skip to content

Commit

Permalink
fix: let preferUnplugged override pkg.conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskuske authored Sep 6, 2022
1 parent e175da2 commit 758aa04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugin-pnp/sources/PnpLinker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,12 @@ export class PnpInstaller implements Installer {
if (FORCED_UNPLUG_PACKAGES.has(pkg.identHash))
return true;

if (pkg.conditions != null)
return true;

if (customPackageData.manifest.preferUnplugged !== null)
return customPackageData.manifest.preferUnplugged;

if (pkg.conditions != null)
return true;

if (jsInstallUtils.extractBuildScripts(pkg, customPackageData, dependencyMeta, {configuration: this.opts.project.configuration}).length > 0 || customPackageData.misc.extractHint)
return true;

Expand Down

0 comments on commit 758aa04

Please sign in to comment.