Update script URL construction to reflect new 'scripts/' subdirectory
This commit is contained in:
parent
606f200621
commit
ed5c818508
1 changed files with 2 additions and 1 deletions
|
|
@ -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 -----------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue