1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-13 01:45:29 -04:00

switch to ESM imports (drops node 10.x support)

also download assets to a temp dir instead of ./vendor
This commit is contained in:
2021-08-31 11:56:33 -04:00
parent 7c4e8df256
commit 5bb2ff0eb3
7 changed files with 283 additions and 55 deletions
+3 -3
View File
@@ -2,9 +2,9 @@
"use strict";
const { execFile } = require("child_process");
const assert = require("assert");
const hugo = require("..");
import { execFile } from "child_process";
import assert from "assert";
import hugo from "../index.js";
it("Hugo exists and runs?", async () => {
assert(execFile(hugo, ["env"], (error, stdout) => {