MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / main

Function main

scripts/append-lighthouse-notices.ts:14–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12const SOURCE_DIR = path.join(ROOT_DIR, 'src/third_party');
13
14function main() {
15 const lighthouseNotices = fs.readFileSync(
16 path.join(SOURCE_DIR, 'LIGHTHOUSE_MCP_BUNDLE_THIRD_PARTY_NOTICES'),
17 'utf8',
18 );
19 const bundledNotices = fs.readFileSync(
20 path.join(TARGET_DIR, 'THIRD_PARTY_NOTICES'),
21 'utf8',
22 );
23 fs.writeFileSync(
24 path.join(TARGET_DIR, 'THIRD_PARTY_NOTICES'),
25 bundledNotices +
26 '\n\n-------------------- DEPENDENCY DIVIDER --------------------\n\n' +
27 lighthouseNotices,
28 );
29 console.log('Done.');
30}
31
32main();

Callers 1

Calls 2

joinMethod · 0.80
logMethod · 0.80

Tested by

no test coverage detected