Skip to content

Commit

Permalink
chore: try to configure "npm install" as a merge tool to resolve pack…
Browse files Browse the repository at this point in the history
…age-lock.json conflicts
  • Loading branch information
boneskull committed Apr 10, 2023
1 parent a4660b7 commit ff118d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
# Handle as a text file but merge via `npm install`
package-lock.json merge=npm
5 changes: 5 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# to use this file, run:
# git config --local include.path ../.gitconfig

[mergetool "npm"]
cmd = npm install

0 comments on commit ff118d3

Please sign in to comment.