chore: esm compatible scripts

This commit is contained in:
Dan Ribbens
2024-03-06 12:11:12 -05:00
parent a7dcdc8df2
commit 19d2a4d1cd
3 changed files with 40 additions and 18 deletions

View File

@@ -1,5 +1,9 @@
import fse from 'fs-extra'
import path from 'path'
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const packagesDir = path.resolve(__dirname, '../../packages')