7 lines
202 B
TypeScript
7 lines
202 B
TypeScript
import { dirname } from "$std/path/dirname.ts";
|
|
|
|
export function project_root_dir() {
|
|
const this_url = new URL(import.meta.url);
|
|
const this_dir = dirname(this_url.pathname);
|
|
return this_dir + "/";
|
|
}
|