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: pnpm import support yarn2 transform #3997
Conversation
7435f91
to
102ceb8
Compare
I will execute by myself. |
Note Yarn 2+ lockfile is a valid YAML and can be parsed with any YAML parser. |
Of course,So maybe we can implement by ourselves |
606f79d
to
9179d0a
Compare
89f9007
to
7d066bc
Compare
@zkochan CI failed for the network error? |
7d066bc
to
fd6f12e
Compare
if (lockJsonFile.type === 'success') { | ||
return lockJsonFile.object | ||
} else { | ||
throw new PnpmError('GET_YARN_LOCKFILE_ERR', `Failed With ${lockJsonFile.type}`) |
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.
Don't put _ERR in the error code because each error code is automatically prepended with ERR_PNPM_
@@ -0,0 +1,90 @@ | |||
/** |
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.
maybe let's make a subdirectory for the import command and put this file there.
and add yourself as codeowner of it to .github/CODEOWNERS
/packages/plugin-commands-installation/src/import/ @fireairforce
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, thx, i will do this
I'll check later. |
aaf8fd3
to
d11ca8f
Compare
I have updated the case, it will run successfully. |
closes: #3993