From 661865f14f17b58193a5215b6cf9bc7ae39c39e8 Mon Sep 17 00:00:00 2001 From: kubouch Date: Fri, 29 Mar 2024 00:38:06 +0200 Subject: [PATCH] Change default registry to the new one --- nupm/utils/dirs.nu | 2 +- toolkit.nu | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nupm/utils/dirs.nu b/nupm/utils/dirs.nu index 1c8b732..5bcfae2 100644 --- a/nupm/utils/dirs.nu +++ b/nupm/utils/dirs.nu @@ -12,7 +12,7 @@ export const DEFAULT_NUPM_TEMP = ($nu.temp-path | path join "nupm") # Default registry export const DEFAULT_NUPM_REGISTRIES = { - nupm_test: 'https://raw.githubusercontent.com/nushell/nupm/main/registry.nuon' + nupm_test: 'https://raw.githubusercontent.com/nushell/nupm/main/registry/registry.nuon' } # Prompt to create $env.NUPM_HOME if it does not exist and some sanity checks. diff --git a/toolkit.nu b/toolkit.nu index 422690b..9081bf4 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -11,8 +11,7 @@ export def --env set-nupm-env [--clear] { $env.NUPM_HOME = ($env.PWD | path join _nupm_dev) $env.NUPM_CACHE = ($env.PWD | path join _nupm_dev cache) $env.NUPM_TEMP = ($env.PWD | path join _nupm_dev tmp) - # $env.NUPM_REGISTRIES = { nupm_dev: ($env.PWD | path join registry registry.nuon) } - $env.NUPM_REGISTRIES = { nupm_dev: 'https://git.sr.ht/~kubouch/nupkgs/blob/main/registry/registry.nuon' } + $env.NUPM_REGISTRIES = { nupm_dev: ($env.PWD | path join registry registry.nuon) } if $nu.os-info.family == 'windows' and 'Path' in $env { $env.Path = ($env.Path | prepend ($env.PWD | path join _nupm_dev scripts))