unjs / nypm

🌈 Unified Package Manager for Node.js and Bun
MIT License
439 stars 13 forks source link

feat: add support for bun #87

Closed danielroe closed 10 months ago

danielroe commented 10 months ago

πŸ”— Linked issue

resolves https://github.com/unjs/nypm/issues/86

❓ Type of change

πŸ“š Description

This adds support for the bun package manager.

As Bun isn't yet corepack-supported (we can track in https://github.com/oven-sh/bun/discussions/4056) this directly runs the bun command.

πŸ“ Checklist

codecov[bot] commented 10 months ago

Codecov Report

Merging #87 (f15eade) into main (69003dc) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #87      +/-   ##
==========================================
+ Coverage   98.02%   98.07%   +0.05%     
==========================================
  Files           5        5              
  Lines         405      416      +11     
  Branches       64       67       +3     
==========================================
+ Hits          397      408      +11     
  Misses          8        8              
Files Changed Coverage Ξ”
src/_utils.ts 98.49% <100.00%> (+0.07%) :arrow_up:
src/package-manager.ts 100.00% <100.00%> (ΓΈ)
src/types.ts 100.00% <100.00%> (ΓΈ)