DEV Community

Discussion on: Automatically Install NPM Dependencies on Git Pull

Collapse
 
arpitprod profile image
arpitprod

If we are using yarn then How to do same thing ?

Collapse
 
zirkelc profile image
Chris Cook

That should be easy with changing the regex expression from package-lock.json to yarn.lock: PACKAGE_LOCK_REGEX="(^packages\/.*\/yarn\.lock)|(^yarn\.lock)" and running yarn install instead of npm install inside the hook.