Skip to content

Commit

Permalink
build(scripts): replace glob with tinyglobby (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Nov 10, 2024
1 parent b0214ec commit c7529fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"sveld": "^0.21.0",
"svelte": "^4.2.10",
"svelte-check": "^3.8.6",
"tinyglobby": "^0.2.10",
"typescript": "^5.6.3"
},
"standard-version": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-docs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require("node:fs");
const glob = require("glob");
const { globSync }= require("tinyglobby");
const { sveld } = require("sveld");
const pkg = require("../package.json");

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

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

0 comments on commit c7529fe

Please sign in to comment.