pantry/scripts/utils/misc.ts

10 lines
341 B
TypeScript
Raw Normal View History

export function overlay_this_pantry() {
2022-10-28 01:23:32 +03:00
const self = new URL(import.meta.url).path().parent().parent().parent().join("projects")
// if unset just assume the user wants this
// this is magic in a bad way, but for now is what we're doing
if (!!Deno.env.get("TEA_PANTRY_PATH")) {
Deno.env.set("TEA_PANTRY_PATH", self.string)
2022-10-28 01:23:32 +03:00
}
}