Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug pnpm inside corepack? #440

Open
KSXGitHub opened this issue Mar 25, 2024 · 1 comment
Open

How to debug pnpm inside corepack? #440

KSXGitHub opened this issue Mar 25, 2024 · 1 comment

Comments

@KSXGitHub
Copy link

There is a bug that only happens inside corepack. It is reproducible with stable release of pnpm, but I can't debug them. I need to debug the pnpm codebase as if it was running inside corepack. The pnpm codebase provide a special command named pd to help developer.

@aduh95
Copy link
Contributor

aduh95 commented Mar 25, 2024

I would create a symbolic link in the COREPACK_HOME that points to your local repo, so something like ln -s /path/to/pnpm/local/clone ~/.cache/node/corepack/pnpm/10.0.0-dev – and then you can run it with corepack pnpm@10.0.0-dev ….

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

No branches or pull requests

2 participants