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