Skip to content

Commit 80a3df1

Browse files
tools: update lint-md-dependencies to @rollup/plugin-commonjs@23.0.4 rollup@3.7.2
1 parent 94d23f5 commit 80a3df1

File tree

3 files changed

+33
-27
lines changed

3 files changed

+33
-27
lines changed

tools/lint-md/lint-md.mjs

+11-5
Original file line numberDiff line numberDiff line change
@@ -21283,7 +21283,7 @@ function compare(a, b, property) {
2128321283
return String(a[property] || '').localeCompare(b[property] || '')
2128421284
}
2128521285

21286-
function hasFlag(flag, argv = process$1.argv) {
21286+
function hasFlag(flag, argv = globalThis.Deno?.args ?? process$1.argv) {
2128721287
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
2128821288
const position = argv.indexOf(prefix + flag);
2128921289
const terminatorPosition = argv.indexOf('--');
@@ -21347,6 +21347,9 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
2134721347
return 2;
2134821348
}
2134921349
}
21350+
if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
21351+
return 1;
21352+
}
2135021353
if (haveStream && !streamIsTTY && forceColor === undefined) {
2135121354
return 0;
2135221355
}
@@ -21365,20 +21368,23 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
2136521368
return 1;
2136621369
}
2136721370
if ('CI' in env) {
21368-
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
21371+
if ('GITHUB_ACTIONS' in env) {
21372+
return 3;
21373+
}
21374+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
2136921375
return 1;
2137021376
}
2137121377
return min;
2137221378
}
2137321379
if ('TEAMCITY_VERSION' in env) {
2137421380
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2137521381
}
21376-
if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
21377-
return 1;
21378-
}
2137921382
if (env.COLORTERM === 'truecolor') {
2138021383
return 3;
2138121384
}
21385+
if (env.TERM === 'xterm-kitty') {
21386+
return 3;
21387+
}
2138221388
if ('TERM_PROGRAM' in env) {
2138321389
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
2138421390
switch (env.TERM_PROGRAM) {

tools/lint-md/package-lock.json

+20-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/lint-md/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"vfile-reporter": "^7.0.4"
1515
},
1616
"devDependencies": {
17-
"@rollup/plugin-commonjs": "^23.0.3",
17+
"@rollup/plugin-commonjs": "^23.0.4",
1818
"@rollup/plugin-node-resolve": "^15.0.1",
19-
"rollup": "^3.5.1",
19+
"rollup": "^3.7.2",
2020
"rollup-plugin-cleanup": "^3.2.1"
2121
}
2222
}

0 commit comments

Comments
 (0)