@kb-labs/commit-core 2.94.0 → 2.96.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.
- package/dist/analyzer/index.js +10 -13
- package/dist/analyzer/index.js.map +1 -1
- package/dist/applier/index.js +113 -21
- package/dist/applier/index.js.map +1 -1
- package/dist/generator/index.js +10 -13
- package/dist/generator/index.js.map +1 -1
- package/dist/index.js +124 -22
- package/dist/index.js.map +1 -1
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.js +12 -3
- package/dist/storage/index.js.map +1 -1
- package/package.json +5 -5
package/dist/generator/index.js
CHANGED
|
@@ -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
|
-
|
|
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 = [
|