chore: refactor server, prepare for browser reuse (#490)
This commit is contained in:
parent
3cd74a824a
commit
54ed7c3200
7 changed files with 105 additions and 118 deletions
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue