Skip to content

Commit 64a2940

Browse files
authored
devops: fix webkit archiving (#4642)
Protocol concatenation script did not account for `WK_CHECKOUT_PATH`.
1 parent 17f1b20 commit 64a2940

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const fs = require('fs');
22
const path = require('path');
3-
const protocolDir = path.join(__dirname, './checkout/Source/JavaScriptCore/inspector/protocol');
3+
const checkoutPath = process.env.WK_CHECKOUT_PATH || path.join(__dirname, 'checkout');
4+
const protocolDir = path.join(checkoutPath, './Source/JavaScriptCore/inspector/protocol');
45
const files = fs.readdirSync(protocolDir).filter(f => f.endsWith('.json')).map(f => path.join(protocolDir, f));
56
const json = files.map(file => JSON.parse(fs.readFileSync(file)));
67
console.log(JSON.stringify(json));

0 commit comments

Comments
 (0)