Skip to content

Commit

Permalink
fix: convert absolute gitignore patterns to relative
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 13, 2024
1 parent 9390803 commit 5380255
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export async function mkdist(
r
.split("\n")
.map((r) => r.trim())
.filter((r) => r && !r.startsWith("#")),
.filter((r) => r && !r.startsWith("#"))
.map(r => r.startsWith("/") ? r.slice(1) : r),
)
.catch(() => []);
const filePaths = await glob(options.pattern || "**", {
Expand Down

0 comments on commit 5380255

Please sign in to comment.