-
Notifications
You must be signed in to change notification settings - Fork 189
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
Replace npm with pnpm #2545
Replace npm with pnpm #2545
Conversation
I'm working on updated GitHub Actions for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pulled this locally and tested, everything worked for me.
We should use pnpm
and set its cache
in our workflows, see https://pnpm.io/continuous-integration#github-actions.
We need to update all of our docs, which will refer to npm. Managing the transition to pnpm
from npm
is going to take education and docs.
When I run eslint, I get this message: > @senecacdot/telescope@2.3.0 eslint /Users/francesco/telescope
> eslint --config .eslintrc.js "**/*.{jsx,tsx,ts,js}"
=============
WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.3.0
YOUR TYPESCRIPT VERSION: 4.5.2
Please only submit bug reports when using the officially supported version.
============= followed by: ✖ 974 problems (974 errors, 0 warnings) |
@DukeManh was just updating eslint, do you need to rebase? |
I wonder if this is some latent dev dependency bug, where pnpm is not doing the same thing as npm with respect to pulling in peer deps. |
This comment has been minimized.
This comment has been minimized.
What errors do you have? What didn't it import? One thing we might be hitting here is how we structured our dependencies using npm. We started out with a single project, what is now With |
Sorry looks like the problem was due to the fact that I removed I thought that Line 27 in 663b3c1
and here: Line 40 in 663b3c1
Is it being used anywhere else?
Yes this makes sense, I will work on it. |
We call it via |
The cache is working (see Actions run here) |
This took ~11m in CI vs. 15-30m it usually takes, so already a win. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really need the docs updated, so we don't cause chaos when we merge this.
@manekenpix will landing this break deployment, since it requires a global install of pnpm? If so, we should co-ordinate a time to do that on staging/prod. |
I suspect we need to fix #2563 before we can land this. |
@humphd these changes don't affect |
What's our plan to move this forward? |
I'm hoping that #2563 will fix this. I'll work on it. |
I rebased, updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳 Really glad you stuck with this.
@menghif can you get that pnpm post up and link it here so I can send to all students today? |
|
Issue This PR Addresses
Initial work for #1778
Type of Change
Description
This PR changes the package manager from
npm
topnpm
. pnpm is faster and uses less disk space.To try this locally:
npm install -g pnpm
pnpm install
Checklist