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

Remove rimraf dependency (#133)

This commit is contained in:
XhmikosR
2023-04-03 15:19:27 +03:00
committed by GitHub
parent c45ccfe67c
commit 4d85c73245
4 changed files with 39 additions and 15 deletions
+5
View File
@@ -1,3 +1,4 @@
import { rm } from 'node:fs/promises';
import path from 'node:path';
import process from 'node:process';
import hugoBin from './index.js';
@@ -24,6 +25,10 @@ function getProjectRoot() {
async function main() {
const projectRoot = getProjectRoot();
const vendorDir = path.join(projectRoot, './vendor');
await rm(vendorDir, { force: true, recursive: true });
const bin = await hugoBin(projectRoot);
bin.run(['version']).then(() => {