We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8430bc1 commit b868b5fCopy full SHA for b868b5f
scripts/prepublish.js
@@ -71,10 +71,14 @@ function check(map) {
71
72
// make sure the remote and current are on the same commit
73
var currentBranch = (p.execSync(`git branch --show-current`) + "").trim()
74
- var remoteDiffs = p.execSync(`git diff ${currentBranch} origin/${currentBranch}`) + ""
+ var command = `git diff ${currentBranch} origin/${currentBranch}`
75
+ console.log(`Running '${command}'`)
76
+ var remoteDiffs = p.execSync(command) + ""
77
if(remoteDiffs){
78
console.warn(`diffs with remote`)
79
console.log(remoteDiffs)
80
+ } else {
81
+ console.log(`remote diffs looking good`)
82
}
83
84
0 commit comments