mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: fix webkit archiving (#4642)
Protocol concatenation script did not account for `WK_CHECKOUT_PATH`.
This commit is contained in:
parent
17f1b20f39
commit
64a2940a0d
@ -1,6 +1,7 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const protocolDir = path.join(__dirname, './checkout/Source/JavaScriptCore/inspector/protocol');
|
||||
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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user