From ab1ae0f63cc2ef8327cf11d752cb3e7c76b89946 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Mon, 7 Feb 2022 17:23:19 +0100 Subject: [PATCH] updated yarn shell script --- yarn2.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/yarn2.sh b/yarn2.sh index c38be42..70fed42 100755 --- a/yarn2.sh +++ b/yarn2.sh @@ -7,18 +7,16 @@ printf "\n###Yarn 2" >> "$dir/.gitignore" printf "\n.yarn/*" >> "$dir/.gitignore" printf "\n!.yarn/releases" >> "$dir/.gitignore" printf "\n!.yarn/plugins" >> "$dir/.gitignore" +printf "\n.pnp.*" >> "$dir/.gitignore" + +# removes node_modules +rm -rf node_modules # Upgrade Yarn to Berry (latest Yarn 2 version known to Yarn 1) yarn set version berry -# Upgrade Yarn Berry to latest version now that Yarn knows where to download it from -yarn set version latest - -# (optional) Set nodeLinker to node-modules - this 100% guarantees backwards compatibility -yarn config set nodeLinker node-modules - # (optional) Adds `yarn upgrade-interactive` command back yarn plugin import interactive-tools -# Reinstalls project using Yarn 2. This will also update your yarn.lock file, but will NOT sneakily upgrade the dependencies -yarn \ No newline at end of file +# Re-installs project using Yarn 2. This will also update your yarn.lock file, but will NOT sneakily upgrade the dependencies +yarn install \ No newline at end of file