更新 'Gruntfile.js'
This commit is contained in:
parent
91ebbf50f7
commit
1f0b3207b0
@ -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 = ['.'];
|
||||||
|
Loading…
Reference in New Issue
Block a user