Skip to content

Instantly share code, notes, and snippets.

@johnsogg
Last active October 12, 2018 18:17
Show Gist options
  • Save johnsogg/daa1de64e444e6f5b499720e26b0dda4 to your computer and use it in GitHub Desktop.
Save johnsogg/daa1de64e444e6f5b499720e26b0dda4 to your computer and use it in GitHub Desktop.
@johnsogg
Copy link
Author

johnsogg commented Oct 12, 2018

Ignore package-lock.json in Bitbucket Pull Requests

  • Get TamperMonkey for Chrome
  • Go here and install/confirm it: https://openuserjs.org/scripts/zyrolasting/Hide_Annoying_BitBucket_Diffs
  • Go to TamperMonkey’s Chrome icon and hit ‘Dashboard’
  • Hit the edit icon at the right
  • Change resource line to the following:
    // @resource ignorePatterns https://gist.githubusercontent.com/johnsogg/daa1de64e444e6f5b499720e26b0dda4/raw/0641b0cb22dbccf62a67e07b720f816697c1cb9a/ignore-package-lock-json.txt
  • Save it (weird File/Save menu)
  • Go to some Bitbucket PR that involves package-lock.json
  • Look for the package-lock.json diff. Try to find it. It ain’t there.
  • Note that this particular script doesn't work for commits. It only works on PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment