Skip to content

Try pnpm (take three)#74135

Draft
manzoorwanijk wants to merge 53 commits intotrunkfrom
try/pnpm-take-3
Draft

Try pnpm (take three)#74135
manzoorwanijk wants to merge 53 commits intotrunkfrom
try/pnpm-take-3

Conversation

@manzoorwanijk
Copy link
Member

Take two was in #38624

What?

Closes

Why?

How?

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

Before After

@manzoorwanijk manzoorwanijk self-assigned this Dec 20, 2025
@github-actions github-actions bot added [Package] Element /packages/element [Package] Date /packages/date [Package] Data /packages/data [Package] Server Side Render /packages/server-side-render [Package] A11y /packages/a11y [Package] i18n /packages/i18n [Package] Deprecated packages/deprecated [Package] Compose /packages/compose [Package] Core data /packages/core-data [Package] API fetch /packages/api-fetch [Package] Viewport /packages/viewport [Package] DOM /packages/dom [Package] Keycodes /packages/keycodes [Package] Plugins /packages/plugins [Package] Components /packages/components [Package] Blocks /packages/blocks [Package] Editor /packages/editor [Package] Block library /packages/block-library [Package] Notices /packages/notices [Package] Format library /packages/format-library [Package] Rich text /packages/rich-text [Package] Block editor /packages/block-editor [Package] Edit Post /packages/edit-post [Package] Data Controls /packages/data-controls [Package] Priority Queue /packages/priority-queue [Package] Edit Widgets /packages/edit-widgets [Package] E2E Tests /packages/e2e-tests [Package] Project management automation /packages/project-management-automation [Package] Interface /packages/interface labels Dec 20, 2025
@github-actions github-actions bot removed the [Package] Priority Queue /packages/priority-queue label Dec 31, 2025
function fixDeps( pkg ) {
/**
* esbuild-sass-plugin dynamically requires postcss-modules for CSS modules support.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

One thing I've found useful in Jetpack's monorepo is to include a URL for the upstream bug report in the comment for each block. It makes it easier to audit entries to see if they've been fixed upstream. If there's really no upstream report and I don't feel like making one myself, I explicitly comment about that to set the expectation that each block is expected to have a link.

This one might be glromeo/esbuild-sass-plugin#183, for example.

"dependencies": {
"@wordpress/dom-ready": "file:../dom-ready",
"@wordpress/i18n": "file:../i18n"
"@wordpress/dom-ready": "workspace:../dom-ready",
Copy link
Contributor

Choose a reason for hiding this comment

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

While this works, I wonder if it would be better to do it as a version number (workspace:*) and allow pnpm to determine the path via the pnpm-workspace.yaml file.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that is the plan. I retained the path because some workspaces in routes/ don't have the name field in package.json (see #74310), which causes problems when using workspace:*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] A11y /packages/a11y [Package] API fetch /packages/api-fetch [Package] Block editor /packages/block-editor [Package] Block library /packages/block-library [Package] Blocks /packages/blocks [Package] Commands /packages/commands [Package] Components /packages/components [Package] Compose /packages/compose [Package] Core commands [Package] Core data /packages/core-data [Package] Data Controls /packages/data-controls [Package] Data /packages/data [Package] DataViews /packages/dataviews [Package] Date /packages/date [Package] Deprecated packages/deprecated [Package] DOM /packages/dom [Package] E2E Tests /packages/e2e-tests [Package] Edit Post /packages/edit-post [Package] Edit Site /packages/edit-site [Package] Edit Widgets /packages/edit-widgets [Package] Editor /packages/editor [Package] Element /packages/element [Package] Fields /packages/fields [Package] Format library /packages/format-library [Package] i18n /packages/i18n [Package] Icons /packages/icons [Package] Interactivity Router /packages/interactivity-router [Package] Interactivity /packages/interactivity [Package] Interface /packages/interface [Package] Keyboard Shortcuts /packages/keyboard-shortcuts [Package] Keycodes /packages/keycodes [Package] Media Utils /packages/media-utils [Package] Notices /packages/notices [Package] Patterns /packages/patterns [Package] Plugins /packages/plugins [Package] Preferences /packages/preferences [Package] Primitives /packages/primitives [Package] Project management automation /packages/project-management-automation [Package] React i18n /packages/reacti18n [Package] Rich text /packages/rich-text [Package] Router /pacakges/router [Package] Server Side Render /packages/server-side-render [Package] Sync [Package] Theme /packages/theme [Package] Viewport /packages/viewport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants