Skip to content

fix: Update to use pnpm and remove bun/yarn usage#2635

Merged
wayfarer3130 merged 27 commits into
betafrom
fix/pnpm
May 29, 2026
Merged

fix: Update to use pnpm and remove bun/yarn usage#2635
wayfarer3130 merged 27 commits into
betafrom
fix/pnpm

Conversation

@wayfarer3130
Copy link
Copy Markdown
Collaborator

@wayfarer3130 wayfarer3130 commented Feb 25, 2026

OHIF_REF: ohifohifupdateplaywightimgaes

Context

Switch to remove yarn/bun and use pnpm

Changes & Results

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • [] My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

@wayfarer3130
Copy link
Copy Markdown
Collaborator Author

Basically all I did was ask to remove lerna and switch to pnpm/node 24 for CS3D - this is more a straw man to talk about than a final version. Certainly all the tests/setup need to still be fixed

@sedghi
Copy link
Copy Markdown
Member

sedghi commented Feb 25, 2026

@wayfarer3130 great start, could you do a sample with OHIF too
I'd like to make sure linking also works fine bw cs3d and ohif

@wayfarer3130
Copy link
Copy Markdown
Collaborator Author

@sedghi - passes the tests now and has nx removed

@sedghi
Copy link
Copy Markdown
Member

sedghi commented Feb 26, 2026

Looks good i tested this. Can you do the same on OHIF so that we can merge together? Also don't see how we are versioning now

@wayfarer3130 wayfarer3130 changed the base branch from main to beta February 27, 2026 18:58
@wayfarer3130
Copy link
Copy Markdown
Collaborator Author

Can't figure out how to get this working.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 27, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b249bcd5-7030-45a8-bfdb-814562e6dfaa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pnpm

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

# Conflicts:
#	.github/workflows/playwright.yml
#	.husky/pre-commit
#	package.json
#	packages/core/package.json
@wayfarer3130
Copy link
Copy Markdown
Collaborator Author

OHIF_REF: ohifohifupdateplaywightimgaes

wayfarer3130 and others added 4 commits May 27, 2026 20:14
playwright.yml's matrix had regressed to Node 20 during the beta merge, but
pnpm 11 requires Node >=22.13 (uses node:sqlite), so installs crashed with
ERR_UNKNOWN_BUILTIN_MODULE. Restore Node 24 everywhere and move pnpm 11.1.1 ->
11.4.0 across all workflows and packageManager.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The packageManager: pnpm@11.4.0 pin forced pnpm's precise-version auto-switch,
which broke commits for anyone whose local pnpm couldn't fetch that exact build.
engines.pnpm ">=11" is sufficient; CI still pins 11.4.0 via pnpm/action-setup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
CS3D lives inside the OHIF repo, whose package.json pins packageManager: yarn.
With corepack enabled, dropping CS3D's own packageManager field makes corepack
walk up and resolve yarn for CS3D, breaking the pnpm-based husky hook. Pin pnpm
here so corepack uses (and auto-fetches) pnpm for this workspace.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
OHIF is a bun/yarn project checked out inside this pnpm workspace. Installing
it with pnpm walks up to this repo's pnpm-workspace.yaml (node-linker: hoisted)
and produces a mixed node_modules where OHIF's jest and CS3D's jest copies get
tangled, so jest-runner resolves to a different instance than @jest/core ->
"Cannot read properties of undefined (reading 'leakDetector')".

Install/run the OHIF side with bun (its native package manager) so it gets a
self-contained node_modules. Adds a Set up Bun step; CS3D's own install/build
stay on pnpm.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wayfarer3130
Copy link
Copy Markdown
Collaborator Author

@sedghi - this PR now passes with the same OHIF downstream tests which were failing previously. Should we merge the pnpm side of this and then finish up the OHIF fixes?

@sedghi
Copy link
Copy Markdown
Member

sedghi commented May 28, 2026

Sure lets do it

Comment thread .circleci/config.yml
Comment thread .circleci/config.yml
Comment thread .npmrc
Comment thread package.json Outdated
Comment thread package.json Outdated
jbocce
jbocce previously requested changes May 28, 2026
Copy link
Copy Markdown
Collaborator

@jbocce jbocce left a comment

Choose a reason for hiding this comment

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

I am excited about this change - definitely tightens things up security wise especially for developers. That said, there are a couple of security items to consider. Thanks.

Comment thread packages/docs/package.json
@wayfarer3130 wayfarer3130 dismissed jbocce’s stale review May 29, 2026 17:44

Issues applied.

@wayfarer3130 wayfarer3130 merged commit f848c34 into beta May 29, 2026
9 of 10 checks passed
@wayfarer3130 wayfarer3130 deleted the fix/pnpm branch May 29, 2026 17:44
@sedghi sedghi mentioned this pull request Jun 4, 2026
3 tasks
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.

3 participants