1

I have a package that is added via a github branch, for instance:

"dependencies": {
  "foobar": "https://github.com/foo/bar.git#master"
}

How can I prevent foobar to be added to yarn.lock since I always want the latest version? I currently have a pre-commit git hook that throws if it's in the staged changes but I'd like to not have to remove it manually every time.

CoryCoolguy
  • 1,065
  • 8
  • 18
Calvein
  • 2,111
  • 13
  • 28
  • You can't. There is no feature of yarn that allows this. Generally this is what CI is for – Liam Oct 20 '20 at 07:43

0 Answers0