IMPORTANT : This project is an adaptation of Mads Kristensen's Yarn Installer project to adapt it to VS 2022.
Download this extension from the VS Marketplace or get the CI build.
Makes it easy to restore npm packages using Yarn from within Visual Studio
You need to install Yarn in order for this extension to work.
Automatically run yarn install
when saving package.json by enabling it in the Tools -> Options dialog.
Remember to disable the built-in npm restore
when you do this (see below).
By default Visual Studio will call npm install
when package.json is saved and also when a project containing a package.json file is being opened.
To turn off the automatic calls to npm install
, disable them in the Tools -> Options dialog.