build: convert scripts from CJS to ESM

This commit is contained in:
metonym 2022-08-25 11:20:58 -07:00
commit 3dc6b6bb12
2 changed files with 34 additions and 33 deletions

View file

@ -1,7 +1,10 @@
const fs = require("fs");
const glob = require("glob");
const { sveld } = require("sveld");
const pkg = require("../package.json");
import fs from "fs";
import glob from "glob";
import { sveld } from "sveld";
const pkg = JSON.parse(
fs.readFileSync(new URL("../package.json", import.meta.url), "utf8")
);
sveld({
glob: true,