From 1418a10bf7d9e3f44de0e4b87d7f65c8d30800ee Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Tue, 21 Jul 2020 17:22:38 -0400 Subject: [PATCH 1/5] Update yarn 2 gitignore based on documentation https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored --- Node.gitignore | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Node.gitignore b/Node.gitignore index 1f22b9c2..3045eda2 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -109,8 +109,10 @@ dist .vscode-test # yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* +.yarn/* +# !.yarn/cache # Uncomment for zero-install +!.yarn/releases +!.yarn/plugins +!.yarn/sdks +!.yarn/versions +.pnp.* # Comment for zero-install From 058ff644bcae7cf14f5cf38d9c7d75845c926570 Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Fri, 24 Jun 2022 05:32:11 -0400 Subject: [PATCH 2/5] Update yarn 2 gitignore based on documentation again --- Node.gitignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Node.gitignore b/Node.gitignore index 3045eda2..ce9ff3c3 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -109,10 +109,11 @@ dist .vscode-test # yarn v2 +.pnp.* # Comment for zero-install .yarn/* # !.yarn/cache # Uncomment for zero-install -!.yarn/releases +!.yarn/patches !.yarn/plugins +!.yarn/releases !.yarn/sdks !.yarn/versions -.pnp.* # Comment for zero-install From ed1dee219fc05a770885a4f6a4f9f077fbc0fe35 Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Fri, 5 Aug 2022 19:16:38 -0400 Subject: [PATCH 3/5] Fix gitignore comment syntax --- Node.gitignore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Node.gitignore b/Node.gitignore index ce9ff3c3..75fa6f83 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -109,9 +109,11 @@ dist .vscode-test # yarn v2 -.pnp.* # Comment for zero-install +# Comment for zero-install +.pnp.* .yarn/* -# !.yarn/cache # Uncomment for zero-install +# Uncomment for zero-install +# !.yarn/cache !.yarn/patches !.yarn/plugins !.yarn/releases From 7955c8f606f212877f7a31cdf2c15e806f5905be Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Fri, 5 Aug 2022 19:17:30 -0400 Subject: [PATCH 4/5] Rename Yarn v2 to modern --- Node.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Node.gitignore b/Node.gitignore index 75fa6f83..ef678d76 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -108,7 +108,7 @@ dist # Stores VSCode versions used for testing VSCode extensions .vscode-test -# yarn v2 +# Yarn modern # Comment for zero-install .pnp.* .yarn/* From 7f1532420c087d50b7c27dce37c46cc5890a7460 Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Tue, 21 Mar 2023 06:10:32 -0400 Subject: [PATCH 5/5] Update Yarn modern gitignore based on `yarn init -2` --- Node.gitignore | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Node.gitignore b/Node.gitignore index ef678d76..28146e10 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -109,13 +109,13 @@ dist .vscode-test # Yarn modern -# Comment for zero-install -.pnp.* .yarn/* -# Uncomment for zero-install -# !.yarn/cache !.yarn/patches !.yarn/plugins !.yarn/releases !.yarn/sdks !.yarn/versions +# Swap the comments on the following lines if you don't wish to use zero-installs +# Documentation here: https://yarnpkg.com/features/zero-installs +!.yarn/cache +#.pnp.*