Repository navigation
chore(UI): Move to pnpm - #18797
Merged
Merged
chore(UI): Move to pnpm#18797
Conversation
roidelapluie
requested review from
a team,
Nexucis,
SuperQ,
juliusv and
simonpasquier
as code owners
May 26, 2026 15:17
roidelapluie
marked this pull request as draft
May 26, 2026 15:20
roidelapluie
force-pushed
the
roidelapluie/pnpm
branch
from
May 27, 2026 12:47
42e8c1d to
fe95d61
Compare
roidelapluie
force-pushed
the
roidelapluie/pnpm
branch
5 times, most recently
from
June 4, 2026 15:22
87b859b to
13dfb93
Compare
roidelapluie
force-pushed
the
roidelapluie/pnpm
branch
3 times, most recently
from
June 11, 2026 12:06
314751e to
f5b42a1
Compare
Switch the UI workspace from npm to pnpm. Declare jest as a direct devDependency in lezer-promql (pnpm's strict isolation requires every binary to be an explicit dependency), fix the moduleNameMapper path in codemirror-promql's jest config to reflect pnpm's per-package node_modules layout, and add a localStorage mock to mantine-ui's test setup so module-level Redux slice initializers work under Node.js v22+, which pre-defines localStorage as undefined on globalThis. Signed-off-by: Julien Pivotto <[email protected]>
roidelapluie
force-pushed
the
roidelapluie/pnpm
branch
from
June 11, 2026 12:13
f5b42a1 to
53cde1b
Compare
roidelapluie
marked this pull request as ready for review
June 11, 2026 12:16
juliusv
approved these changes
Jun 14, 2026
Nexucis
approved these changes
Jun 15, 2026
Nexucis
left a comment
Member
There was a problem hiding this comment.
I have the same question as Julius ;). But otherwise yeah it looks good to me.
The only thing that is a little bit annoying is that now to build Prometheus we need another tool. So anyone currently contributing to Prometheus will see their build failed because they don't have pnpm
This was referenced Jun 19, 2026
krajorama
added a commit
that referenced
this pull request
Jun 22, 2026
checkPackage read each workspace package's version via `pnpm run env | grep npm_package_version`, an npm-ism. pnpm has no built-in `env` script, so it fails with ERR_PNPM_NO_SCRIPT and returns an empty string, making `ui_release.sh --check-package` report a false version mismatch for every package. Read the version with `pnpm pkg get version` instead. Leftover from the npm-to-pnpm migration (#18797). Signed-off-by: György Krajcsovits <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
krajorama
added a commit
that referenced
this pull request
Jun 22, 2026
…18993) Since the npm-to-pnpm migration (#18797), react-app is a separate pnpm project with its own web/ui/react-app/node_modules, while `npm_licenses` only scanned the workspace's web/ui/node_modules. The old react-app UI is still embedded in the binary (served via --enable-feature=old-ui), so its dependencies (bootstrap, jquery, reactstrap, moment, etc.) are distributed but their licenses were dropped from npm_licenses.tar.bz2. Scan react-app's node_modules too. ui-install already installs it, so the path exists at build time. The tarball grows from ~626 to ~1992 license files. Signed-off-by: György Krajcsovits <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
This was referenced Jul 7, 2026
machine424
added a commit
to machine424/prometheus
that referenced
this pull request
Jul 27, 2026
ALSO ui: add pnpm dedupe to npm-deps update script The move to pnpm (prometheus#18797) introduced strict dependency isolation. When npm-check-updates bumps deps independently per workspace, pnpm can resolve duplicate versions of the same package. This happened with @codemirror/state (6.7.0 and 6.7.1) after running `make update-npm-deps`, causing TypeScript build failures: src/lint/hybrid.ts(23,33): error TS2345: 'import(".../@codemirror[email protected]/...").EditorState' is not assignable to 'import(".../@codemirror[email protected]/...").EditorState'. Types have separate declarations of a private property 'flags'. npm avoided this by hoisting into a flat node_modules. Add `pnpm dedupe` after `pnpm install` to collapse compatible duplicates. Signed-off-by: Ayoub Mrini <[email protected]>
machine424
added a commit
to machine424/prometheus
that referenced
this pull request
Jul 27, 2026
ALSO ui: add pnpm dedupe to npm-deps update script The move to pnpm (prometheus#18797) introduced strict dependency isolation. When npm-check-updates bumps deps independently per workspace, pnpm can resolve duplicate versions of the same package. This happened with @codemirror/state (6.7.0 and 6.7.1) after running `make update-npm-deps`, causing TypeScript build failures: src/lint/hybrid.ts(23,33): error TS2345: 'import(".../@codemirror[email protected]/...").EditorState' is not assignable to 'import(".../@codemirror[email protected]/...").EditorState'. Types have separate declarations of a private property 'flags'. npm avoided this by hoisting into a flat node_modules. Add `pnpm dedupe` after `pnpm install` to collapse compatible duplicates. Signed-off-by: Ayoub Mrini <[email protected]>
machine424
added a commit
to machine424/prometheus
that referenced
this pull request
Jul 27, 2026
ALSO ui: add pnpm dedupe to npm-deps update script The move to pnpm (prometheus#18797) introduced strict dependency isolation. When npm-check-updates bumps deps independently per workspace, pnpm can resolve duplicate versions of the same package. This happened with @codemirror/state (6.7.0 and 6.7.1) after running `make update-npm-deps`, causing TypeScript build failures: src/lint/hybrid.ts(23,33): error TS2345: 'import(".../@codemirror[email protected]/...").EditorState' is not assignable to 'import(".../@codemirror[email protected]/...").EditorState'. Types have separate declarations of a private property 'flags'. npm avoided this by hoisting into a flat node_modules. Add `pnpm dedupe` after `pnpm install` to collapse compatible duplicates. Signed-off-by: Ayoub Mrini <[email protected]>
machine424
added a commit
to machine424/prometheus
that referenced
this pull request
Jul 27, 2026
ALSO ui: add pnpm dedupe to npm-deps update script The move to pnpm (prometheus#18797) introduced strict dependency isolation. When npm-check-updates bumps deps independently per workspace, pnpm can resolve duplicate versions of the same package. This happened with @codemirror/state (6.7.0 and 6.7.1) after running `make update-npm-deps`, causing TypeScript build failures: src/lint/hybrid.ts(23,33): error TS2345: 'import(".../@codemirror[email protected]/...").EditorState' is not assignable to 'import(".../@codemirror[email protected]/...").EditorState'. Types have separate declarations of a private property 'flags'. npm avoided this by hoisting into a flat node_modules. Add `pnpm dedupe` after `pnpm install` to collapse compatible duplicates. Signed-off-by: Ayoub Mrini <[email protected]>
machine424
added a commit
to machine424/prometheus
that referenced
this pull request
Jul 28, 2026
ALSO ui: add pnpm dedupe to npm-deps update script The move to pnpm (prometheus#18797) introduced strict dependency isolation. When npm-check-updates bumps deps independently per workspace, pnpm can resolve duplicate versions of the same package. This happened with @codemirror/state (6.7.0 and 6.7.1) after running `make update-npm-deps`, causing TypeScript build failures: src/lint/hybrid.ts(23,33): error TS2345: 'import(".../@codemirror[email protected]/...").EditorState' is not assignable to 'import(".../@codemirror[email protected]/...").EditorState'. Types have separate declarations of a private property 'flags'. npm avoided this by hoisting into a flat node_modules. Add `pnpm dedupe` after `pnpm install` to collapse compatible duplicates. Signed-off-by: Ayoub Mrini <[email protected]>
machine424
added a commit
that referenced
this pull request
Jul 28, 2026
ALSO ui: add pnpm dedupe to npm-deps update script The move to pnpm (#18797) introduced strict dependency isolation. When npm-check-updates bumps deps independently per workspace, pnpm can resolve duplicate versions of the same package. This happened with @codemirror/state (6.7.0 and 6.7.1) after running `make update-npm-deps`, causing TypeScript build failures: src/lint/hybrid.ts(23,33): error TS2345: 'import(".../@codemirror[email protected]/...").EditorState' is not assignable to 'import(".../@codemirror[email protected]/...").EditorState'. Types have separate declarations of a private property 'flags'. npm avoided this by hoisting into a flat node_modules. Add `pnpm dedupe` after `pnpm install` to collapse compatible duplicates. Signed-off-by: Ayoub Mrini <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moving UI to PNPM.