Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: handle undefined conditions
  • Loading branch information
merceyz committed Oct 21, 2021
commit 8dcf500d968e942970e85ac5955ff16c28c42f46
2 changes: 1 addition & 1 deletion packages/plugin-pnp/sources/PnpLinker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class PnpInstaller implements Installer {
if (FORCED_UNPLUG_PACKAGES.has(pkg.identHash))
return true;

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

if (customPackageData.manifest.preferUnplugged !== null)
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-core/sources/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ export class Project {
const disabledLocators = new Set<LocatorHash>();

for (const pkg of allPackages.values()) {
if (pkg.conditions === null)
if (pkg.conditions == null)
continue;

if (!optionalBuilds.has(pkg.locatorHash))
Expand Down