Skip to content

feat: Update to use pnpm#6031

Open
wayfarer3130 wants to merge 12 commits into
masterfrom
feat/ohifpnpm2
Open

feat: Update to use pnpm#6031
wayfarer3130 wants to merge 12 commits into
masterfrom
feat/ohifpnpm2

Conversation

@wayfarer3130
Copy link
Copy Markdown
Contributor

Context

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 and others added 9 commits February 26, 2026 15:39
…le extensions and modes. Update package.json scripts for development and production builds, and adjust webpack configuration files to accommodate new plugin imports and settings.
…cing compatibility and performance. Refactor webpack configuration in multiple extensions and modes to utilize the new library structure for UMD output. Adjust package.json scripts and settings for improved build processes.
…m Webpack to Rspack v2, the shift to pnpm workspaces, and the increase in minimum Node.js version to 24. Include new build commands, plugin replacements, and updates to package configurations across the monorepo.
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit 49b908b
🔍 Latest deploy log https://app.netlify.com/projects/ohif-dev/deploys/6a0dc92076aac20008fc00e0
😎 Deploy Preview https://deploy-preview-6031--ohif-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@wayfarer3130 wayfarer3130 requested a review from sedghi May 20, 2026 01:36
fi
echo "::notice::Cloning CS3D from $REPO branch $BRANCH"
git clone --depth 1 --branch "$BRANCH" "$REPO" libs/@cornerstonejs
cache: pnpm
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please make sure these are intentional, i don't understand why playwright should change as a result of pnpm

Comment thread .netlify/package.json Outdated
"npm": ">=6",
"yarn": ">=1.16.0"
"node": ">=24",
"pnpm": ">=10"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

11

Comment thread .vscode/settings.json
"Colorbars"
]
],
"liveServer.settings.port": 5501
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove

Comment thread .webpack/webpack.base.js
const config = {
mode: isProdBuild ? 'production' : 'development',
devtool: isProdBuild ? 'source-map' : 'cheap-module-source-map',
devtool: isProdBuild ? 'hidden-source-map' : 'cheap-module-source-map',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this expected? why hidden-source-map? can we document this change in migrations

},
"devDependencies": {
"cross-env": "7.0.3",
"webpack": "5.105.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i guess we don't need webpack anymore

},
"devDependencies": {
"cross-env": "7.0.3",
"webpack": "5.105.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same

"license": "MIT",
"repository": "OHIF/Viewers",
"main": "dist/ohif-mode-microscopy.umd.js",
"module": "src/index.tsx",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we need module? i don't think so

"license": "MIT",
"repository": "OHIF/Viewers",
"main": "dist/ohif-mode-ultrasound-pleura-bline.umd.js",
"module": "src/index.ts",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

some extensions/packages has index.ts as module some not, i remember module is really made up thing by bundlers

Comment thread platform/app/package.json
"workbox-webpack-plugin": "6.6.1"
}
},
"productVersion": "3.4.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hmmm, this version is wrong

"npm": ">=6",
"yarn": ">=1.18.0"
"node": ">=24",
"pnpm": ">=10"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

11?

Comment thread tests/globalSetup.ts
const warmupStudyInstanceUID = '1.3.6.1.4.1.14519.5.2.1.1706.8374.643249677828306008300337414785';
const warmupTimeout = 180_000;

export default async function globalSetup(config: FullConfig) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not sure what is this

Comment thread Dockerfile

RUN apt-get update && apt-get install -y build-essential python3

RUN npm install -g pnpm@latest
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pin to 11.x?

Comment thread lerna.json Outdated
@@ -1,5 +0,0 @@
{
"version": "3.13.0-beta.79",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

love it

Comment thread nx.json
@@ -1,85 +0,0 @@
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

goodby

Comment thread package.json
"worker-loader": "3.0.8"
},
"optionalDependencies": {
"@percy/cypress": "3.1.6",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we don't use percy, we can remove

Comment thread preinstall.js
@@ -1,34 +0,0 @@
console.log('preinstall.js');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is good, don't remove

Copy link
Copy Markdown
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

please see my comments, we should merge cs3d pnpm first

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.

2 participants