replace dirname with a hack that should behave like before

the '@ts-expect-error' is to silence tsc just in case, since this function does in fact exist during bundling. techinically the real solution would be to declare it but /shrug
This commit is contained in:
modeco80
2024-04-23 10:42:36 -04:00
parent cb297e15c4
commit 59d5331b68

View File

@@ -21,8 +21,12 @@ import { Size, Rect, Logger } from '@cvmts/shared';
import jpegTurbo from "@computernewb/jpeg-turbo"; import jpegTurbo from "@computernewb/jpeg-turbo";
import sharp from 'sharp'; import sharp from 'sharp';
// probably better // @ts-expect-error (I know, but this is already ugly)
const __dirname = process.cwd(); // really wish I didn't have to do it like this..
const __dirname = fileURLToPath(new __parcel__URL__('..'));
console.log(__dirname);
// ejla this exist. Useing it. // ejla this exist. Useing it.
type ChatHistory = { type ChatHistory = {