10 lines
274 B
TypeScript
10 lines
274 B
TypeScript
// Show the current working directory.
|
|
|
|
import { dirname } from "path"
|
|
import { projectDir } from "@/project"
|
|
import { getState } from "@/session"
|
|
|
|
export default async function () {
|
|
const root = projectDir()
|
|
return (getState("cwd") || root).replace(dirname(root), "")
|
|
} |