Skip to content

Commit

Permalink
tools: update lint-md-dependencies to @rollup/plugin-commonjs@23.0.4 …
Browse files Browse the repository at this point in the history
…rollup@3.7.2
  • Loading branch information
nodejs-github-bot committed Dec 11, 2022
1 parent 94d23f5 commit 80a3df1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 27 deletions.
16 changes: 11 additions & 5 deletions tools/lint-md/lint-md.mjs
Expand Up @@ -21283,7 +21283,7 @@ function compare(a, b, property) {
return String(a[property] || '').localeCompare(b[property] || '')
}

function hasFlag(flag, argv = process$1.argv) {
function hasFlag(flag, argv = globalThis.Deno?.args ?? process$1.argv) {
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
const position = argv.indexOf(prefix + flag);
const terminatorPosition = argv.indexOf('--');
Expand Down Expand Up @@ -21347,6 +21347,9 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
return 2;
}
}
if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
return 1;
}
if (haveStream && !streamIsTTY && forceColor === undefined) {
return 0;
}
Expand All @@ -21365,20 +21368,23 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
return 1;
}
if ('CI' in env) {
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
if ('GITHUB_ACTIONS' in env) {
return 3;
}
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
return 1;
}
return min;
}
if ('TEAMCITY_VERSION' in env) {
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
}
if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
return 1;
}
if (env.COLORTERM === 'truecolor') {
return 3;
}
if (env.TERM === 'xterm-kitty') {
return 3;
}
if ('TERM_PROGRAM' in env) {
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
switch (env.TERM_PROGRAM) {
Expand Down
40 changes: 20 additions & 20 deletions tools/lint-md/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tools/lint-md/package.json
Expand Up @@ -14,9 +14,9 @@
"vfile-reporter": "^7.0.4"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^23.0.3",
"@rollup/plugin-commonjs": "^23.0.4",
"@rollup/plugin-node-resolve": "^15.0.1",
"rollup": "^3.5.1",
"rollup": "^3.7.2",
"rollup-plugin-cleanup": "^3.2.1"
}
}

0 comments on commit 80a3df1

Please sign in to comment.