main: dirname for esm supported

This commit is contained in:
leejooy96 committed 2024-01-09 10:02:17 +09:00
1 parent 92498f4465
commit 52ffc48cde
1 file changed
+4 -1
+4 -1
View File
@@ -1,5 +1,8 @@
import { join } from 'path'
import { join, dirname } from 'path'
import { name, version } from '../../../package.json'
import { fileURLToPath } from 'url'
const __dirname = dirname(fileURLToPath(import.meta.url))
export default class Constants {
// Display app name (uppercase first letter)