chore: refactor server, prepare for browser reuse (#490)

This commit is contained in:
Pavel Feldman 2025-05-28 16:55:47 -07:00 committed by GitHub
parent 3cd74a824a
commit 54ed7c3200
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 105 additions and 118 deletions

View file

@ -15,7 +15,6 @@
*/
import fs from 'node:fs';
import url from 'node:url';
import os from 'node:os';
import path from 'node:path';
@ -416,6 +415,3 @@ async function createUserDataDir(browserConfig: FullConfig['browser']) {
await fs.promises.mkdir(result, { recursive: true });
return result;
}
const __filename = url.fileURLToPath(import.meta.url);
export const packageJSON = JSON.parse(fs.readFileSync(path.join(path.dirname(__filename), '..', 'package.json'), 'utf8'));