mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
chore: convert build-docs script to esm
This commit is contained in:
parent
a0043e6f64
commit
1b3e045c24
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
const fs = require("fs");
|
import fs from "node:fs";
|
||||||
const glob = require("glob");
|
import glob from "glob";
|
||||||
const { sveld } = require("sveld");
|
import { sveld } from "sveld";
|
||||||
const pkg = require("../package.json");
|
import pkg from "../package.json" assert { type: "json" };
|
||||||
|
|
||||||
sveld({
|
sveld({
|
||||||
glob: true,
|
glob: true,
|
||||||
|
@ -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/");
|
console.log("Copying", file, " to types/");
|
||||||
fs.copyFileSync(file, file.replace(/src/, "types"));
|
fs.copyFileSync(file, file.replace(/src/, "types"));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue