pantry/scripts/utils/misc.ts
Max Howell eb1c8e5aee
Relax requirement to build to /opt (#19)
Improve README somewhat. Don’t overlay files into pantry, use `TEA_PANTRY_PATH` instead. Requires tea/cli 0.11.6 for `env` key in YAML-FM
2022-11-04 13:00:17 +00:00

10 lines
341 B
TypeScript

export function overlay_this_pantry() {
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)
}
}