diff --git a/src/providers.ts b/src/providers.ts index 16e9ddf..75957bc 100644 --- a/src/providers.ts +++ b/src/providers.ts @@ -6,6 +6,7 @@ export const github: TemplateProvider = (input) => { return { name: parsed.repo.replace('/', '-'), version: parsed.ref, + subdir: parsed.subdir, url: `https://github.com/${parsed.repo}/tree/${parsed.ref}${parsed.subdir}`, tar: `https://github.com/${parsed.repo}/archive/${parsed.ref}.tar.gz` } @@ -16,6 +17,7 @@ export const gitlab: TemplateProvider = (input) => { return { name: parsed.repo.replace('/', '-'), version: parsed.ref, + subdir: parsed.subdir, url: `https://gitlab.com/${parsed.repo}/tree/${parsed.ref}${parsed.subdir}`, tar: `https://gitlab.com/${parsed.repo}/-/archive/${parsed.ref}.tar.gz` } @@ -26,6 +28,7 @@ export const bitbucket: TemplateProvider = (input) => { return { name: parsed.repo.replace('/', '-'), version: parsed.ref, + subdir: parsed.subdir, url: `https://bitbucket.com/${parsed.repo}/src/${parsed.ref}${parsed.subdir}`, tar: `https://bitbucket.org/${parsed.repo}/get/${parsed.ref}.tar.gz` }