fix paths for build
This commit is contained in:
7
packages/docs/src/constants.ts
Normal file
7
packages/docs/src/constants.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { join } from "node:path"
|
||||
|
||||
const projectRoot = new URL("../", import.meta.url).pathname
|
||||
|
||||
export function fromProjectRoot(...subPaths: string[]) {
|
||||
return join(projectRoot, ...subPaths)
|
||||
}
|
||||
Reference in New Issue
Block a user