mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
refactor: remove esm module (#1077)
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright.js';
|
||||
import { loadPage } from './libs/load-page.js';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { test } from './libs/playwright';
|
||||
import { loadPage } from './libs/load-page';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const pkgPath = path.join(__dirname, '../apps/web/package.json');
|
||||
const record = fs.readFileSync(pkgPath, 'utf8');
|
||||
const temp = JSON.parse(record);
|
||||
|
||||
Reference in New Issue
Block a user