newsnow/shared/dir.ts

4 lines
114 B
TypeScript

import { fileURLToPath } from "node:url"
export const projectDir = fileURLToPath(new URL("..", import.meta.url))