Skip to content

Commit 221716a

Browse files
authored
feat: implement glob pattern matching with last-match-wins semantics (#63)
- Add vite_glob crate for efficient glob pattern matching - Implement GlobPatternSet with support for negated patterns (!) - Follow gitignore-like semantics: last matching pattern wins - Support workspace exclusion patterns in pnpm/npm/yarn workspaces - Add comprehensive tests for various glob scenarios 🤖 Generated with [Claude Code](https://claude.ai/code)
1 parent 4bbae48 commit 221716a

7 files changed

Lines changed: 549 additions & 112 deletions

File tree

Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] }
9191
tui-term = "0.2.0"
9292
twox-hash = "2.1.1"
9393
vite_error = { path = "crates/vite_error" }
94+
vite_glob = { path = "crates/vite_glob" }
9495
vite_package_manager = { path = "crates/vite_package_manager" }
9596
vite_path = { path = "crates/vite_path" }
9697
vite_str = { path = "crates/vite_str" }

crates/vite_glob/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "vite_glob"
3+
version = "0.0.0"
4+
authors.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
7+
publish = false
8+
rust-version.workspace = true
9+
10+
[dependencies]
11+
vite_error = { workspace = true }
12+
wax = { workspace = true }
13+
14+
[dev-dependencies]
15+
vite_str = { workspace = true }

0 commit comments

Comments
 (0)