npm-check-updates로 package.json 모듈 최신화하기

G-NOTE·2023년 8월 2일
0

frontend

목록 보기
2/5

npm-check-updates 설치

npm i npm-check-updates

특정 레포에서 사용하는 것이 아니므로 전역 설치한다.

사용하기

  • 업데이트하려는 레포에서 패키지 업데이트 될 내역 확인

    ncu

    결과

     @reduxjs/toolkit                ^1.9.1  →    ^1.9.5
     @testing-library/jest-dom      ^5.16.5  →   ^5.17.0
     @testing-library/react         ^13.4.0  →   ^14.0.0
     @testing-library/user-event    ^13.5.0  →   ^14.4.3
     @types/jest                    ^27.5.2  →   ^29.5.3
     @types/node                  ^16.18.11  →   ^20.4.5
     @types/react                  ^18.0.26  →  ^18.2.18
     @types/react-dom              ^18.0.10  →   ^18.2.7
     react-device-detect             ^2.2.2  →    ^2.2.3
     react-redux                     ^8.0.5  →    ^8.1.2
     react-router-dom                ^6.6.2  →   ^6.14.2
     recoil                          ^0.7.6  →    ^0.7.7
     redux                           ^4.2.0  →    ^4.2.1
     styled-components               ^5.3.6  →    ^6.0.6
     typescript                      ^4.9.4  →    ^5.1.6
     web-vitals                      ^2.1.4  →    ^3.4.0
  • 전체 업데이트하기

    ncu -u

    결과

    [====================] 23/23 100%
    
     @reduxjs/toolkit                ^1.9.1  →    ^1.9.5
     @testing-library/jest-dom      ^5.16.5  →   ^5.17.0
     @testing-library/react         ^13.4.0  →   ^14.0.0
     @testing-library/user-event    ^13.5.0  →   ^14.4.3
     @types/jest                    ^27.5.2  →   ^29.5.3
     @types/node                  ^16.18.11  →   ^20.4.5
     @types/react                  ^18.0.26  →  ^18.2.18
     @types/react-dom              ^18.0.10  →   ^18.2.7
     react-device-detect             ^2.2.2  →    ^2.2.3
     react-redux                     ^8.0.5  →    ^8.1.2
     react-router-dom                ^6.6.2  →   ^6.14.2
     recoil                          ^0.7.6  →    ^0.7.7
     redux                           ^4.2.0  →    ^4.2.1
     styled-components               ^5.3.6  →    ^6.0.6
     typescript                      ^4.9.4  →    ^5.1.6
     web-vitals                      ^2.1.4  →    ^3.4.0

업데이트 전

업데이트-전

업데이트 후

업데이트-후

참조

https://www.npmjs.com/package/npm-check-updates

profile
FE Developer

0개의 댓글