DEV Community

Discussion on: Automatically Install NPM Dependencies on Git Pull

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.