1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-07-03 13:26:38 -04:00

fix(default): deprecate hugoVersion configuration (#4)

This commit is contained in:
Shun Sato
2016-06-09 01:08:54 +09:00
parent 69bc327754
commit 75b26fadec
3 changed files with 3 additions and 23 deletions

View File

@ -1,9 +1,9 @@
const path = require('path');
const BinWrapper = require('bin-wrapper');
const pkgConf = require('pkg-conf');
const getBinalyName = require('./getBinalyName');
const pkg = require('../package');
const hugoVersion = pkgConf.sync('hugoBin', {cwd: path.join(__dirname, '../')}).hugoVersion;
const hugoVersion = pkg.hugoVersion;
const baseUrl = `https://github.com/spf13/hugo/releases/download/v${hugoVersion}/`;
const binalyNames = getBinalyName(hugoVersion, process.platform, process.arch);