Skip to content

Switch to pnpm#149

Open
schtibe wants to merge 1 commit into
masterfrom
feat-incident-clickable
Open

Switch to pnpm#149
schtibe wants to merge 1 commit into
masterfrom
feat-incident-clickable

Conversation

@schtibe
Copy link
Copy Markdown
Contributor

@schtibe schtibe commented May 11, 2026

With all the other frontend projects we're using pnpm instead of npm these days. I suggest switching here, too!
WDYT?

It should not be much more than just typing pnpm instead of npm in the CLI.
Also, I needed to add the package 'shiki' in my case, it seemed to be missing (but maybe that's because pnpm behaves slightly different?)

If you're OK with this, I will have to update the codebuild project to use pnpm as well before we can merge this

Test link

@pedroslvieira
Copy link
Copy Markdown
Contributor

Hey @schtibe, thanks for the update. Since it's a small project with very few dependencies, I don't see other reason to implement it other than keeping it consistent with other projects. If you're familiar with it, I'm not against it.

The 'shiki' package problem is probably because it's a dependency of vite-press, with npm we can directly use it but with pnpm we need to add to the packages. Can you do that please?

Copy link
Copy Markdown
Contributor

@asteiner-swisstopo asteiner-swisstopo left a comment

Choose a reason for hiding this comment

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

Hard to judge for me what is better but I like consistency - so go for it 👍

And yes, don't forget to make a corresponding change in CodeBuild..

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.

3 participants