From 019872c736a93178f46b3016a3639baf7a3d3b95 Mon Sep 17 00:00:00 2001 From: Ayax0 Date: Sun, 1 Dec 2024 11:48:45 +0100 Subject: [PATCH] fix: allow custom giget provider --- src/loader.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/loader.ts b/src/loader.ts index 37f825d..cf2737d 100644 --- a/src/loader.ts +++ b/src/loader.ts @@ -305,7 +305,10 @@ async function resolveConfig< // Download giget URIs and resolve to local path if ( options.giget !== false && - GIGET_PREFIXES.some((prefix) => source.startsWith(prefix)) + (Object.keys(sourceOptions.giget?.providers || {}) + .map((key) => `${key}:`) + .some((prefix) => source.startsWith(prefix)) || + GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) ) { const { downloadTemplate } = await import("giget");