Skip to content

feat: fix issues with PNPM - #185

Closed
JavierFlores09 wants to merge 2 commits into
FabricMC:mainfrom
JavierFlores09:feat/pnpm-fixes
Closed

feat: fix issues with PNPM#185
JavierFlores09 wants to merge 2 commits into
FabricMC:mainfrom
JavierFlores09:feat/pnpm-fixes

Conversation

@JavierFlores09

@JavierFlores09 JavierFlores09 commented Aug 12, 2026

Copy link
Copy Markdown

adds PNPM-specific metadata files:

  • pnpm-workspace so that esbuild and workerd post-install are approved by default

added @ant-design icons as a top-level dependency because unlike npm, pnpm will refuse to hoist transitive dependencies.

Given this project uses npm by default, it isn't strictly necessary to commit the lock and workspace files, as those can be left untracked I can remove them. The package.json change however would be ideal if it can be accepted so that one doesn't have to be left with unstaged changes to the package.json when using pnpm as package manager

@modmuss50

Copy link
Copy Markdown
Member

Why? I dont really want to have to maintain support for 2 different package managers, can you not just use NPM?

added @ant-design icons as a top-level dependency because unlike npm,
pnpm will refuse to hoist transitive dependencies.
@JavierFlores09

JavierFlores09 commented Aug 12, 2026

Copy link
Copy Markdown
Author

Why? I dont really want to have to maintain support for 2 different package managers, can you not just use NPM?

I can, however I prefer pnpm as it is pretty much compatible with npm in all ways, and it saves space by using sym-links for same dependencies across multiple projects/worktrees. I removed the pnpm-specific files since those are not really necessary but @ant-design/icons being hoisted is a change I hope you can welcome as it doesn't affect npm usage and it is in fact being used as a top-level dep.

If you'd rather not out of principle (i.e., not wanting to receive more PRs in regards to compat with different package managers) then I understand and you can close the PR.

P.S: Also regenerated package-lock.json because otherwise CI builds fail since there's a new top-level dependency

Comment thread package-lock.json Outdated
@modmuss50 modmuss50 mentioned this pull request Aug 14, 2026
@modmuss50

Copy link
Copy Markdown
Member

Hey, this PR is still updating depedencies. Unfortunately I have to be quite picky about PRs that update deps due to secuirty concerns.

I have gone ahead and updated all deps myself in this #186 PR, and also set a min release age for deps to 7. Alongside also adding @ant-design/icons as a top level import to fix your PNPM issues.

@modmuss50 modmuss50 closed this Aug 14, 2026
@JavierFlores09
JavierFlores09 deleted the feat/pnpm-fixes branch August 14, 2026 18:59
@JavierFlores09

Copy link
Copy Markdown
Author

That's completely fine, given that the change was made in the end I am happy about the result. Thanks for looking into it!

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