1
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:
XhmikosR
2023-05-05 17:54:17 +03:00
parent 951cf80450
commit 1429f5b716
+4 -2
View File
@@ -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()