Skip to content

Commit

Permalink
chore: convert build-docs script to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
theetrain committed Jan 23, 2023
1 parent 170ce96 commit 0d1ff59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/build-docs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const glob = require("glob");
const { sveld } = require("sveld");
const pkg = require("../package.json");
import fs from "node:fs";
import glob from "glob";
import { sveld } from "sveld";
import pkg from "../package.json" assert { type: "json" };

sveld({
glob: true,
Expand All @@ -21,7 +21,7 @@ sveld({
},
});

glob.sync("./src/**/*.d.ts").forEach((file) => {
glob.sync("./package/**/*.d.ts").forEach((file) => {
console.log("Copying", file, " to types/");
fs.copyFileSync(file, file.replace(/src/, "types"));
});

0 comments on commit 0d1ff59

Please sign in to comment.