build(scripts): convert to ESM

This commit is contained in:
Eric Liu 2024-11-10 09:55:56 -08:00
commit 4881ff7ffd
3 changed files with 48 additions and 49 deletions

View file

@ -1,7 +1,8 @@
const fs = require("node:fs");
const { globSync }= require("tinyglobby");
const { sveld } = require("sveld");
const pkg = require("../package.json");
// @ts-check
import fs from "node:fs";
import { globSync } from "tinyglobby";
import { sveld } from "sveld";
import pkg from "../package.json" assert { type: "json" };
sveld({
glob: true,