You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-12 07:35:28 -04:00
Update lib/index.js
This commit is contained in:
+4
-2
@@ -5,8 +5,10 @@ import { fileURLToPath } from 'node:url';
|
||||
import BinWrapper from '@xhmikosr/bin-wrapper';
|
||||
import { packageConfig } from 'pkg-conf';
|
||||
|
||||
const { hugoVersion } = JSON.parse(await fs.readFile(new URL('../package.json', import.meta.url)));
|
||||
const destDir = path.join(fileURLToPath(new URL('../vendor', import.meta.url)));
|
||||
const pkg = new URL('../package.json', import.meta.url);
|
||||
const { hugoVersion } = JSON.parse(await fs.readFile(pkg));
|
||||
|
||||
const destDir = path.join(fileURLToPath(new URL('../vendor/', import.meta.url)));
|
||||
const binName = process.platform === 'win32' ? 'hugo.exe' : 'hugo';
|
||||
|
||||
const extendedBin = (baseDownloadUrl) => new BinWrapper()
|
||||
|
||||
Reference in New Issue
Block a user