feat: migrate codebase to ES Modules

This commit is contained in:
Naoki Oketani
2025-05-03 02:15:44 +00:00
parent bee8bef352
commit ed6e8d71b4
7 changed files with 287 additions and 63 deletions

View File

@@ -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')

View File

@@ -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')