更新 'Gruntfile.js'

This commit is contained in:
zhongjin 2024-05-24 10:18:55 +08:00
parent 91ebbf50f7
commit 1f0b3207b0

View File

@ -50,7 +50,7 @@ function logVersionsError (err, requiredNodeVersions, requiredNpmVersions) {
function getTargetDiff () { function getTargetDiff () {
var target = require('child_process').execSync('(git diff --name-only --relative || true;' + var target = require('child_process').execSync('(git diff --name-only --relative || true;' +
'git diff origin/master.. --name-only --relative || true;)' + 'git diff origin/main.. --name-only --relative || true;)' +
'| grep \'\\.js\\?$\' || true').toString(); '| grep \'\\.js\\?$\' || true').toString();
if (target.length === 0) { if (target.length === 0) {
target = ['.']; target = ['.'];