@kb-labs/commit-core 2.94.0 → 2.98.0

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.
@@ -199,20 +199,17 @@ async function getGitStatus(cwd) {
199
199
  untracked: status.not_added.filter((f) => !shouldIgnoreFile(f))
200
200
  };
201
201
  }
202
+ var IGNORED_SEGMENTS = /* @__PURE__ */ new Set([
203
+ "node_modules",
204
+ ".git",
205
+ "dist",
206
+ "build",
207
+ ".next",
208
+ ".turbo",
209
+ "coverage"
210
+ ]);
202
211
  function shouldIgnoreFile(file) {
203
- const ignoredPaths = [
204
- "node_modules/",
205
- ".git/",
206
- "dist/",
207
- "build/",
208
- ".next/",
209
- ".turbo/",
210
- "coverage/",
211
- ".cache/",
212
- ".temp/",
213
- "tmp/"
214
- ];
215
- return ignoredPaths.some((path) => file.includes(path));
212
+ return file.split("/").some((segment) => IGNORED_SEGMENTS.has(segment));
216
213
  }
217
214
  function getAllChangedFiles(status) {
218
215
  const allFiles = [