Skip to content

Commit

Permalink
fix(install): Skip optional dependencies if false in bunfig.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Eckhardt-D committed Oct 18, 2024
1 parent f3b658d commit c8f75ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/install/install.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4201,6 +4201,8 @@ pub const PackageManager = struct {
};
} else if (behavior.isPeer() and !install_peer) {
return null;
} else if (behavior.isOptional() and !this.options.remote_package_features.optional_dependencies) {
return null;
}

// appendPackage sets the PackageID on the package
Expand Down

0 comments on commit c8f75ad

Please sign in to comment.