feat: migrate codebase to ES Modules
This commit is contained in:
@@ -2,6 +2,11 @@ import * as child_process from 'child_process'
|
||||
import * as fs from 'fs'
|
||||
import * as path from 'path'
|
||||
import {Audit} from '../src/audit'
|
||||
import {fileURLToPath} from 'url'
|
||||
import {dirname} from 'path'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = dirname(__filename)
|
||||
|
||||
vi.mock('child_process')
|
||||
|
||||
|
||||
@@ -4,6 +4,11 @@ import {Audit} from '../src/audit'
|
||||
import {run} from '../src/main'
|
||||
import * as issue from '../src/issue'
|
||||
import * as pr from '../src/pr'
|
||||
import {fileURLToPath} from 'url'
|
||||
import {dirname} from 'path'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = dirname(__filename)
|
||||
|
||||
vi.mock('../src/audit')
|
||||
vi.mock('../src/issue')
|
||||
|
||||
Reference in New Issue
Block a user