Skip to content
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: missed script for yarn reset #1013

Merged
merged 4 commits into from
Jul 25, 2024
Merged

Conversation

lumirlumir
Copy link
Collaborator

@lumirlumir lumirlumir commented Jul 22, 2024

안녕하세요😊 아래 스크린샷과 같이 기존 README.md 에 존재하는 yarn reset 명령어에 대한 script를 추가하였습니다.
기존에는 package.json의 script 상에 yarn reset이 존재하지 않아, 해당 명령어 사용이 불가능하였습니다.

image

수정 내역은 아래와 같습니다.

  1. rm -rf node_modules/.cache

    • yarn dev를 통한 로컬 서버는 아래 스크린샷과 같이 node_modules/.cache 디렉토리에서 캐싱된 파일을 참조합니다. 해당 디렉토리를 삭제하여야만 기존에 캐싱된 파일이 사용되지 않고, 새롭게 생성된 캐시 파일이 사용됨을 확인하였습니다.

    image

  2. rm -rf .next

    • .next 디렉토리를 삭제하여, Next.js 프로젝트의 빌드 캐시를 삭제합니다. 이 명령어는 .next 디렉토리를 삭제하여 캐시를 지우고, 다음 빌드 시 새로 생성하게 합니다.
  3. yarn cache clean

    • yarn 캐시를 삭제하여, 캐시로 인한 의도치 않은 동작을 방지합니다.

Progress

README.md에 존재하는 yarn reset에 대한 script 추가.
Copy link

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
ko-legacy-reactjs-org ⬜️ Ignored (Inspect) Visit Preview Jul 24, 2024 7:27am

Copy link

github-actions bot commented Jul 22, 2024

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

package.json Outdated Show resolved Hide resolved
npm script 상의 reset 명령어를 cache-reset으로 이름 변경.
관련 README.md 수정.
Copy link
Member

@hg-pyun hg-pyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hg-pyun hg-pyun merged commit 78a22d3 into reactjs:main Jul 25, 2024
5 checks passed
@lumirlumir lumirlumir deleted the feature-reset branch July 25, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants