From 544613245f1c2e8e6f1bd6dbf64f94ca60a3df73 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 10 Jun 2024 13:41:11 +0200 Subject: [PATCH] ignore .yarn changes and delete existing tracked files (#7333) This PR follows Yarn's official suggestion on [which files should be gitignored](https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored) and also deletes the `install-state.gz` files that are already committed. I've used the gitignore option that isn't for "zero-installs" because I'm not sure whether we're using them or not. I'm guessing we're not, but we can always update that later if we are. The doc says that the install-state file "is an optimization file that you shouldn't ever have to commit. It simply stores the exact state of your project so that the next commands can boot without having to resolve your workspaces all over again." --- .gitignore | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index c435a4aaaf..b3f158d60b 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,12 @@ website/docs/reference/api/**/sidebar.js website/docs/reference/api/**/**.info.mdx website/docs/generated reports/jest-junit.xml + +# Yarn (https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored) +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions