Skip to content

Commit ce99400

Browse files
authored
fix(scripts/diff-flat): derive BROWSER_NAMES from bcd.browsers (#29583)
1 parent 4554aba commit ce99400

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

scripts/diff-flat.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,14 @@ import stripAnsi from 'strip-ansi';
1515
import yargs from 'yargs';
1616
import { hideBin } from 'yargs/helpers';
1717

18+
import bcd from '../index.js';
1819
import { spawn, walk } from '../utils/index.js';
1920

2021
import { addVersionLast, applyMirroring, transformMD } from './build/index.js';
2122
import { getMergeBase, getFileContent, getGitDiffStatuses } from './lib/git.js';
2223
import dataFolders from './lib/data-folders.js';
2324

24-
const BROWSER_NAMES = [
25-
'chrome',
26-
'chrome_android',
27-
'edge',
28-
'firefox',
29-
'firefox_android',
30-
'safari',
31-
'safari_ios',
32-
'webview_android',
33-
];
25+
const BROWSER_NAMES = Object.keys(bcd.browsers);
3426

3527
/** @type {Format[]} */
3628
const FORMATS = ['html', 'plain'];

0 commit comments

Comments
 (0)