mirror of
https://github.com/ivabus/pantry
synced 2024-09-21 01:00:50 +03:00
eb1c8e5aee
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
10 lines
341 B
TypeScript
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)
|
|
}
|
|
}
|