Skip to content

chore: replace npm with pnpm#1849

Merged
pedrolamas merged 17 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/test-pnpm
May 20, 2026
Merged

chore: replace npm with pnpm#1849
pedrolamas merged 17 commits into
fluidd-core:developfrom
pedrolamas:pedrolamas/test-pnpm

Conversation

@pedrolamas
Copy link
Copy Markdown
Member

Completely replaces npm with pnpm, including in the devcontainer.

The main reason is the wasted space from using npm, especially when we are dealing with git worktrees where we get multiple "node_modules" copies - pnpm solves this by using symbolic links instead of duplicating the files.

pedrolamas added 10 commits May 19, 2026 23:35
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added this to the 1.37.1 milestone May 20, 2026
@pedrolamas pedrolamas requested a review from Copilot May 20, 2026 13:13
@pedrolamas pedrolamas added the Code - Infrastructure Code related to CICD, Pipelines, Testing, and Deployment label May 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the repository’s tooling and contributor workflows from npm to pnpm (including CI and the devcontainer) to reduce duplicated node_modules storage and better support git worktrees.

Changes:

  • Switches CI workflows and Husky hooks to use pnpm commands.
  • Updates contributor/developer documentation to instruct pnpm + Corepack usage.
  • Pins the package manager via package.json#packageManager and moves dependency overrides into pnpm-workspace.yaml.

Reviewed changes

Copilot reviewed 12 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Adds pnpm install/build allowlist and dependency overrides configuration.
package.json Updates scripts to invoke pnpm and pins pnpm via packageManager; removes prior overrides block.
docs/docs/getting-started.md Replaces npm commands with pnpm for building from source.
docs/docs/development.md Documents enabling Corepack/pnpm and updates install/dev/test commands.
CONTRIBUTING.md Updates contributor setup and CI command references to pnpm (with Corepack note).
AGENTS.md Updates internal contributor guidance/commands to pnpm.
.husky/pre-commit Switches eslint invocation from npx to pnpm exec.
.gitignore Ignores .pnpm-store.
.github/workflows/release.yml Updates release workflow to install and run checks with pnpm.
.github/workflows/build.yml Updates build workflow to install and run checks with pnpm.
.devcontainer/Dockerfile Enables Corepack, sets zsh, and prepares workspace dirs for pnpm/node_modules.
.devcontainer/docker-compose.yml Adds named volumes for node_modules and .pnpm-store; adjusts networking/ports.
.devcontainer/devcontainer.json Updates postCreateCommand to pnpm and tweaks forwarded ports/terminal settings.

Comment thread .github/workflows/build.yml
Comment thread .github/workflows/release.yml
Comment thread .devcontainer/Dockerfile
Comment thread .devcontainer/docker-compose.yml
Comment thread docs/docs/getting-started.md Outdated
Comment thread AGENTS.md
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 15 changed files in this pull request and generated 1 comment.

Comment thread docs/docs/getting-started.md Outdated
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 15 changed files in this pull request and generated 1 comment.

Comment thread pnpm-workspace.yaml
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 15 changed files in this pull request and generated 2 comments.

Comment thread .devcontainer/docker-compose.yml
Comment thread .husky/pre-commit Outdated
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 15 changed files in this pull request and generated 5 comments.

Comment thread package.json
Comment thread .husky/pre-commit
Comment thread .husky/pre-commit
Comment thread .devcontainer/Dockerfile Outdated
Comment thread .devcontainer/Dockerfile
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 16 changed files in this pull request and generated 4 comments.

Comment thread .husky/pre-commit
Comment thread .devcontainer/docker-compose.yml Outdated
Comment thread .devcontainer/devcontainer.json Outdated
Comment thread .vscode/tasks.json
pedrolamas and others added 2 commits May 20, 2026 16:58
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 16 changed files in this pull request and generated no new comments.

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas merged commit f1096e3 into fluidd-core:develop May 20, 2026
6 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/test-pnpm branch May 20, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code - Infrastructure Code related to CICD, Pipelines, Testing, and Deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants