mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
build(types): copy .d.ts files from src to types (#1218)
This commit is contained in:
parent
4d955900ad
commit
5209f329bd
13 changed files with 90 additions and 22 deletions
|
@ -1,3 +1,5 @@
|
|||
const fs = require("fs");
|
||||
const glob = require("glob");
|
||||
const { sveld } = require("sveld");
|
||||
const pkg = require("../package.json");
|
||||
|
||||
|
@ -18,3 +20,8 @@ sveld({
|
|||
outFile: "docs/src/COMPONENT_API.json",
|
||||
},
|
||||
});
|
||||
|
||||
glob.sync("./src/**/*.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