Skip to content

PNPM 11 instead of NPM#2708

Open
pxp9 wants to merge 1 commit into
nerves-hub:mainfrom
pxp9:pnpm-11
Open

PNPM 11 instead of NPM#2708
pxp9 wants to merge 1 commit into
nerves-hub:mainfrom
pxp9:pnpm-11

Conversation

@pxp9

@pxp9 pxp9 commented May 30, 2026

Copy link
Copy Markdown
Contributor

Replaces NPM usage with PNPM 11 usage because PNPM is secure by default to supply chain attacks which recently happened in the JS ecosystem.

@pxp9

pxp9 commented May 30, 2026

Copy link
Copy Markdown
Contributor Author

it seems there is a flacky test breaking the PR CI.

@joshk joshk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'll need to review this later in the week as I want to test it locally and confirm a few questions I have around pnpm setup.

@joshk joshk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR

Why was the default package.lock not removed?

I also noticed that the Dockerfile hasn't been updated to install and use pnpm.

Comment thread mix.exs
defp aliases() do
[
"assets.install": ["cmd pnpm install --dir assets"],
"assets.build": ["esbuild default", "tailwind default"],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why was assets.build added?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think these are the correct changes:

"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing", "cmd pnpm install --dir assets"],
"assets.build": ["compile", "tailwind default", "esbuild default"],
"assets.deploy": ["tailwind default --minify", "esbuild default --minify", "phx.digest"],

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