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
feat(update): pnpm update support update corepack config #7235
base: main
Are you sure you want to change the base?
Conversation
I will update test later, @zkochan when you are free, you can take a look and see if there are any problems with my implementation idea. There are too many data structures in |
799e3d5
to
091ad04
Compare
packages/types/package.json
Outdated
@@ -12,6 +12,7 @@ | |||
"!*.map" | |||
], | |||
"scripts": { | |||
"watch": "tsc --watch", |
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 unrelated, revert it.
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 will revert this before the pull request pass all the CI pipeline, now i need this to debug at my local.
const updatedManifest = project.manifest | ||
if (updatedManifest.packageManager) { | ||
updatedManifest.packageManager = `${updatedPackage}@${updatedVersion}` | ||
// eslint-disable-next-line no-await-in-loop |
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.
use a Promise.all
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.
done
@@ -12,6 +12,7 @@ | |||
"node": ">=16.14" | |||
}, | |||
"scripts": { | |||
"start": "tsc --watch", |
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.
unrelated change
a84be7f
to
822845b
Compare
choices: [ | ||
headerChoice, | ||
{ | ||
message: chalk`pnpm 8.7.0 ❯ 8.9.2 `, |
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.
How can i get the latest pnpm version here at my test case... otherwise we will need to update the test case here everytime pnpm publish latest version. @zkochan
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.
could we just remove the pnpm version before checking the snapshot?
Or mock the pnpm registry endpoint with nock?
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.
ok, i will update here~
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.
done
That failure is not related to the PR |
e107e78
to
3ffa523
Compare
seems the only ci failed by the network |
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.
add changesets
@@ -11,7 +11,7 @@ import * as enquirer from 'enquirer' | |||
jest.mock('enquirer', () => ({ prompt: jest.fn() })) | |||
|
|||
// eslint-disable-next-line | |||
const prompt = enquirer.prompt as any | |||
const prompt = enquirer.prompt as any; |
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.
remove the semicolon
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.
done
}) | ||
|
||
prompt.mockClear() | ||
// t.comment('update to compatible versions') |
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.
remove 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.
done
name: '[dependencies]', | ||
message: 'dependencies', | ||
}, | ||
]) |
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.
Looks like here only the formatting changed. Revert it back.
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.
done
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 run pnpm run lint --fix
at here, it will change automatally.
3ffa523
to
e48d403
Compare
The tests are failing |
e48d403
to
f968f10
Compare
changesets add done. |
Seems the only ci failed not releated to my pr. |
Your change doesn't seem to work. I have tested it locally and the field in |
uha? you test for |
This need to add params |
Why was this closed? |
sorry, i notice the user close the related issue so i think this pr is not necessary... |
You have already implemented it, so I think we can finish it. |
@fireairforce Should I reopen the issue? |
closes: #7134