Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Oct 12, 2018
1 parent 8665462 commit ba495f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/process-git-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ const hasNonOptionalDiff = !! ( process.argv[ 2 ] || '' )
// If no more line diffs remain after above, remove diff heading for file.
.replace( /diff --git a\/package-lock.json b\/package-lock.json\nindex \w+..\w+ \d+\n--- a\/package-lock.json\n\+\+\+ b\/package-lock.json\n(?!@@)/, '' );

process.stdout.write( '\n\n-------\n\n' );

process.stdout.write( process.argv[ 2 ] );

process.stdout.write( '\n\n-------\n\n' );

process.stdout.write( ( process.argv[ 2 ] || '' )
// Strip individual diffs of optional-only.
.replace( /@@ -\d+ \+\d+,\d+ @@\n-.+\n\+.+,\n\+.+\"optional\": true\n/gm, '' )
Expand Down

0 comments on commit ba495f4

Please sign in to comment.