NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.04k stars 195 forks source link

feat: add experimental bun package manager support #5791

Closed jasongitmail closed 7 months ago

jasongitmail commented 8 months ago

Based on the existing NPM and PNPM versions.

I added a test file, based on the test/npm-package-manager.ts.

Not tested via linking and using in a terminal yet.

PR Checklist

What is the current behavior?

Bun package manager is not supported.

What is the new behavior?

Adds support for Bun package manager. Falls back to npm commands when Bun does not have an analogous command, like search and view.

Implements https://github.com/NativeScript/NativeScript/issues/10397

Migration steps

ns package-manager set bun, then use the ns CLI commands like normal.

rigor789 commented 7 months ago

Marked this as experimental, so we can release it as-is and do follow-up adjustments as necessary.

jasongitmail commented 7 months ago

Great thanks!