1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-12 08:45:27 -04:00

Rename variables

This commit is contained in:
XhmikosR
2023-05-17 08:15:38 +03:00
parent 1e4307eaf9
commit e69a92ad0e
5 changed files with 19 additions and 18 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ const normalBin = baseDownloadUrl => new BinWrapper()
.dest(destDir)
.use(binName);
async function main(projectRoot) {
const config = await packageConfig('hugo-bin', { cwd: projectRoot });
async function main(cwd) {
const config = await packageConfig('hugo-bin', { cwd });
const extended = (process.env.HUGO_BIN_BUILD_TAGS || process.env.npm_config_hugo_bin_build_tags || config.buildTags) === 'extended';
const downloadRepo = process.env.HUGO_BIN_DOWNLOAD_REPO || process.env.npm_config_hugo_bin_download_repo || config.downloadRepo || 'https://github.com';
const baseDownloadUrl = `${downloadRepo}/gohugoio/hugo/releases/download/v${hugoVersion}/`;