Skip to content

Commit

Permalink
Support level 1 in Azure DevOps pipelines (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
josundt committed Nov 26, 2021
1 parent 260829c commit 2a58467
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
}

// Check for Azure DevOps pipelines
if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
return 1;
}

if (env.COLORTERM === 'truecolor') {
return 3;
}
Expand Down

0 comments on commit 2a58467

Please sign in to comment.