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.
변경사항
release
워크플로우에서 lint 스크립트 동작 과정에서 문제가 발생했어요.원인은 vitest lint 세팅을 하고자
react-internal.js
에 추가했던 부분 때문이었어요.패키지 코드에는 분명히
vitest.js
가 존재했는데, 알고보니 저희 패키지에 설치된@vercel/style-guide
의 버전은5.0.0
이었고, Vitest eslint rule이 릴리즈된 버전은6.0.0
버전이어서 오류가 발생했던 것이었어요.그래서 latest 버전으로 업그레이드를 시도했는데, 문제가 많이 발생했어요.
latest 버전으로 업그레이드하게 되면 업그레이드한 패키지가 의존하는 vite 버전과 기존에 설치된 패키지가 요구하는 vite 버전에 충돌이 발생하게 돼요.
lock파일 임의 변경도 금지되어 있어 여러모로 의존성 충돌을 해결하기 어려운 상황이라
vitest
가 사용되는ui
패키지 내부의eslint
파일에서 직접 rule을 세팅해주기로 했어요.4달 전
eslint-plugin-vitest
라는 플러그인이 개발되어서 이걸 사용해서 lint 세팅을 해주었어요.그 후 lint 스크립트 동작시켰더니 오류가 발생하지 않았어요.
fork한 레포에서 workflow 테스트도 해보았는데 잘 동작하는 것을 확인했어요.
추가 작업
--fix
스크립트로 수정해서 반영했어요.turbo.json
에서 cache 옵션을 비활성화시켰어요. 같은 이유로 test 커맨드도 cache 옵션을 비활성화시켰어요.시급한 정도
🏃♂️ 보통 : 최대한 빠르게 리뷰 부탁드립니다.