mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46: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");
|
||||
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,
|
||||
|
@ -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"));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue