From 46d24036e2c31e9aa45c4caf2034f163948c8dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Sun, 28 Jan 2024 14:41:17 +0200 Subject: [PATCH] Add toolkit (#64) ## Description Adds a simple toolkit module that sets a temporary NUPM_xxx environment variables for development to avoid messing up your own setup. --- toolkit.nu | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 toolkit.nu diff --git a/toolkit.nu b/toolkit.nu new file mode 100644 index 0000000..1f3ef49 --- /dev/null +++ b/toolkit.nu @@ -0,0 +1,9 @@ +export-env { + $env.NUPM_HOME = ($env.FILE_PWD | path join _nupm_dev) + $env.NUPM_CACHE = ($env.FILE_PWD | path join _nupm_dev cache) + $env.NUPM_TEMP = ($env.FILE_PWD | path join _nupm_dev tmp) + + print $'NUPM_HOME: ($env.NUPM_HOME)' + print $'NUPM_CACHE: ($env.NUPM_CACHE)' + print $'NUPM_TEMP: ($env.NUPM_TEMP)' +}