diff --git a/loader.ts b/loader.ts index 5a7c9ac..50068bd 100644 --- a/loader.ts +++ b/loader.ts @@ -55,7 +55,8 @@ function _buildRawUrl(cmd: string, ref: string): string { // Heuristic: tags typically start with 'v', otherwise treat as branch const isTag = /^v[0-9]/.test(ref); const kind = isTag ? "tag" : "branch"; - return `${BASE_RAW}/${kind}/${encodeURIComponent(ref)}/${encodeURIComponent(cmd)}.ts`; + // Scripts now live under the 'scripts/' subdirectory + return `${BASE_RAW}/${kind}/${encodeURIComponent(ref)}/scripts/${encodeURIComponent(cmd)}.ts`; } // --- Daemon mode -----------------------------------------------------