Skip to content

fix(cli): strip workspaces from package.json before bun install#3290

Closed
cyphercodes wants to merge 1 commit intotriggerdotdev:mainfrom
cyphercodes:main
Closed

fix(cli): strip workspaces from package.json before bun install#3290
cyphercodes wants to merge 1 commit intotriggerdotdev:mainfrom
cyphercodes:main

Conversation

@cyphercodes
Copy link
Copy Markdown

Bun strictly validates that all workspaces exist before installing, unlike npm/node which just warns. This causes deployments to fail with 'Workspace not found' error when using runtime: 'bun' in projects with workspaces defined in package.json.

The fix strips the workspaces field from package.json before running bun install, preventing the validation error.

Fixes #3272

Bun strictly validates that all workspaces exist before installing,
unlike npm/node which just warns. This causes deployments to fail
with 'Workspace not found' error when using runtime: 'bun' in
projects with workspaces defined in package.json.

The fix strips the workspaces field from package.json before running
bun install, preventing the validation error.

Fixes triggerdotdev#3272
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 29, 2026

⚠️ No Changeset found

Latest commit: c58f728

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

Hi @cyphercodes, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions bot closed this Mar 29, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 29, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e4c3ced9-3a4f-4bca-826c-af608b43bcb8

📥 Commits

Reviewing files that changed from the base of the PR and between 2366b21 and c58f728.

📒 Files selected for processing (1)
  • packages/cli-v3/src/deploy/buildImage.ts

Walkthrough

The build process for the Bun-based Docker stage has been modified to include an additional step that removes the workspaces field from package.json before installing production dependencies. This is done via a Node inline script executed between copying the file and running bun install --production --no-save.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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.

bug: Bun runtime deploy fails with workspaces in package.json ("Workspace not found")

1 participant