grepmax 0.12.6 → 0.12.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,10 +132,15 @@ function _walk(currentDir, rootDir, stack, ignoreFiles) {
132
132
  const absPath = path.join(currentDir, entry.name);
133
133
  const relPathToRoot = path.relative(rootDir, absPath);
134
134
  // 1. Check if ignored by any scope in the stack
135
+ const isDir = entry.isDirectory();
135
136
  let isIgnored = false;
136
137
  for (const scope of stack) {
137
138
  const relToScope = path.relative(scope.dir, absPath);
138
- if (relToScope && scope.filter.ignores(relToScope)) {
139
+ if (!relToScope)
140
+ continue;
141
+ // Append trailing slash for directories so patterns like "dist/" match
142
+ const testPath = isDir ? `${relToScope}/` : relToScope;
143
+ if (scope.filter.ignores(testPath)) {
139
144
  isIgnored = true;
140
145
  break;
141
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "author": "Robert Owens <robowens@me.com>",
5
5
  "homepage": "https://github.com/reowens/grepmax",
6
6
  "bugs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
5
5
  "author": {
6
6
  "name": "Robert Owens",