Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): support bun's new text-based lockfile and use bun publish within nx release #30064

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

JamesHenry
Copy link
Collaborator

@JamesHenry JamesHenry commented Feb 16, 2025

Current Behavior

  • Bun's new default (as of 1.2) text-based lockfile is not picked up by Nx
  • We currently only support pnpm for dynamically replacing local dependency protocols at publish time.

Expected Behavior

  • Bun's text-based bun.lock is picked up by Nx

  • We support both pnpm and bun for dynamically replacing local dependency protocols at publish time, and include more specific messaging for why modern yarn is not (hopefully "yet") supported.

Also resolves the package manager detection logic by folding in #28546

Related Issue(s)

Fixes #28201

FIxes #29422

Fixes #29494

Copy link

vercel bot commented Feb 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 8:31am

Copy link

nx-cloud bot commented Feb 16, 2025

View your CI Pipeline Execution ↗ for commit a473fa2.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 37m 14s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 15s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base= --he... ✅ Succeeded 7s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 5s View ↗
nx documentation ✅ Succeeded 57s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-19 09:12:47 UTC

@JamesHenry JamesHenry changed the title feat(release): support bun publish for local dependency protocols feat(core): support bun's new text-based lockfile and use bun publish within nx release Feb 17, 2025
@JamesHenry JamesHenry force-pushed the more-support-for-publishing-workspace-protocol branch from 8575c37 to c0bbebe Compare February 17, 2025 15:02
@JamesHenry JamesHenry force-pushed the more-support-for-publishing-workspace-protocol branch from dfc9d63 to 79a945b Compare February 17, 2025 16:20
@JamesHenry JamesHenry force-pushed the more-support-for-publishing-workspace-protocol branch from da309d2 to 578c00f Compare February 17, 2025 16:44
@matthewrj
Copy link

This also should fix #29429

@JamesHenry
Copy link
Collaborator Author

@matthewrj Just the bun-specific manifestation, we will add better handling for the missing lockfile case in general to properly address that one

@JamesHenry JamesHenry force-pushed the more-support-for-publishing-workspace-protocol branch from bbcfb20 to 9a6795b Compare February 18, 2025 11:36
@JamesHenry JamesHenry force-pushed the more-support-for-publishing-workspace-protocol branch from 9a6795b to b257fcd Compare February 18, 2025 15:11
@JamesHenry JamesHenry merged commit 443d4fd into master Feb 19, 2025
12 checks passed
@JamesHenry JamesHenry deleted the more-support-for-publishing-workspace-protocol branch February 19, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bun new text-based lock file is not supported /bin/sh: 1: bun: not found
4 participants