mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
64a2940a0d
Protocol concatenation script did not account for `WK_CHECKOUT_PATH`.
8 lines
448 B
JavaScript
8 lines
448 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
const checkoutPath = process.env.WK_CHECKOUT_PATH || path.join(__dirname, 'checkout');
|
|
const protocolDir = path.join(checkoutPath, './Source/JavaScriptCore/inspector/protocol');
|
|
const files = fs.readdirSync(protocolDir).filter(f => f.endsWith('.json')).map(f => path.join(protocolDir, f));
|
|
const json = files.map(file => JSON.parse(fs.readFileSync(file)));
|
|
console.log(JSON.stringify(json));
|