You've already forked hugo-extended
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user