-
Notifications
You must be signed in to change notification settings - Fork 535
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
Pnpm9 #23318
base: main
Are you sure you want to change the base?
Pnpm9 #23318
Conversation
chore: enable link-workspace-packages
…ing RC5" This reverts commit 737ac14.
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.
⯅ @fluid-example/bundle-size-tests: +245 Bytes
Baseline commit: e8762e3 |
@@ -1,11 +1,10 @@ | |||
engine-strict=true | |||
frozen-lockfile=true | |||
strict-peer-dependencies=true | |||
link-workspace-packages=true |
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.
changes to pnpm defaults require this for workspace deps to function during install now.
|
||
# Disable pnpm update notifications since we use corepack to install package managers | ||
update-notifier=false | ||
# Don't use new lockfile format because component governance does not yet support it | ||
use-lockfile-v6=false |
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 don't think this did anything even before this change as I don't think pnpm 8 looked for this option. Regardless we are moving to format 9 now, so its out of date.
@@ -15,6 +15,7 @@ WORKDIR /home/node/server | |||
COPY package*.json ./ | |||
COPY pnpm*.yaml ./ | |||
COPY scripts/*.* ./scripts/ | |||
COPY .npmrc ./ |
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 don't know docker well, and couldn't reproduce the error CI hit locally, so this "fix" should get extra careful review.
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output
|
@@ -24,7 +25,8 @@ RUN corepack enable | |||
# Need to set the --unsafe-perm flag since we are doing the install as root. Consider adding an 'app' accout so we | |||
# can do the install as node but then switch to 'app' to run. As app we won't be able to write to installed files | |||
# and be able to change them. | |||
RUN pnpm install --unsafe-perm | |||
# Needs to set --no-frozen-lockfile since npmrc requires it if there are resolution changes, and the package dependencies don't exactly match | |||
RUN pnpm install --unsafe-perm --no-frozen-lockfile |
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.
This change is bad, and should not be needed. Once #23330 is unblocked, and merged, this hack should be removed, then this PR can go forward
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.
Can't really comment on Docker, but I love this.
Hopefully it is unblocked soon.
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.
Should this have link-workspace-packages=true
for consistency across our spaces? Or will we be trying to get rid of that in the other places?
COPY pnpm*.yaml ./ | ||
COPY pnpm*.yaml ./s |
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.
Intentional? If so, comment please.
Description
Update to pnpm 9
Same as #21328 but not from a fork to work around issues with how dependency scanning works for PRs.
Breaking Changes
Developers will have to update to pnpm 9
Reviewer Guidance
The review process is outlined on this wiki page.