chore(yarnrc): add yarn plugin for validating yarn, node version #1220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Self Checklist
CODEOWNERS
file.Related Issue
None
Summary
package.json
에 engines를 통해 node와 yarn의 버젼을 지정해도, 실제 스크립트를 돌릴때 버젼에 대한 검증을 하지 않습니다.이를 검증하는 yarn plugin을 추가합니다.
Details
yarn 3.2 미만의 버젼으로 bezier-react를 빌드시에 빌드가 깨지는 문제가 있습니다. 확인해본 결과 engines에 yarn 버젼이 3.4.1로 명시되어있음에도 불구하고 이를 검증하지 않아 휴먼 에러가 발생했습니다.
Yarn berry부터는 engines에 대한 validation이 yarn 내에서 이루어지지 않도록 변경되어 이를 돌려달라는 Yarn Berry에서의 Issue도 존재합니다.
Breaking change or not (Yes/No)
References