@harness-engineering/core 0.26.2 → 0.26.4

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.
@@ -1,2 +1,2 @@
1
- export { j as ArchHandle, l as ArchitectureOptions, D as archMatchers, F as archModule, G as architecture } from '../matchers-XHMrK1kB.mjs';
1
+ export { j as ArchHandle, l as ArchitectureOptions, D as archMatchers, F as archModule, G as architecture } from '../matchers-DSibUtbV.mjs';
2
2
  import 'zod';
@@ -1,2 +1,2 @@
1
- export { j as ArchHandle, l as ArchitectureOptions, D as archMatchers, F as archModule, G as architecture } from '../matchers-XHMrK1kB.js';
1
+ export { j as ArchHandle, l as ArchitectureOptions, D as archMatchers, F as archModule, G as architecture } from '../matchers-DSibUtbV.js';
2
2
  import 'zod';
@@ -199,8 +199,18 @@ async function readFileContent(path) {
199
199
  return (0, import_types.Err)(error);
200
200
  }
201
201
  }
202
- async function findFiles(pattern, cwd = process.cwd()) {
203
- return (0, import_glob.glob)(pattern, { cwd, absolute: true });
202
+ var DEFAULT_FIND_FILES_IGNORE = [
203
+ "**/node_modules/**",
204
+ "**/dist/**",
205
+ "**/build/**",
206
+ "**/coverage/**"
207
+ ];
208
+ async function findFiles(pattern, cwd = process.cwd(), extraIgnore = []) {
209
+ return (0, import_glob.glob)(pattern, {
210
+ cwd,
211
+ absolute: true,
212
+ ignore: [...DEFAULT_FIND_FILES_IGNORE, ...extraIgnore]
213
+ });
204
214
  }
205
215
  function relativePosix(from, to) {
206
216
  return (0, import_node_path.relative)(from, to).replaceAll("\\", "/");
@@ -2,7 +2,7 @@ import {
2
2
  archMatchers,
3
3
  archModule,
4
4
  architecture
5
- } from "../chunk-4UI65RLE.mjs";
5
+ } from "../chunk-JIOBXIVB.mjs";
6
6
  export {
7
7
  archMatchers,
8
8
  archModule,
@@ -177,8 +177,18 @@ async function readFileContent(path) {
177
177
  return Err(error);
178
178
  }
179
179
  }
180
- async function findFiles(pattern, cwd = process.cwd()) {
181
- return glob(pattern, { cwd, absolute: true });
180
+ var DEFAULT_FIND_FILES_IGNORE = [
181
+ "**/node_modules/**",
182
+ "**/dist/**",
183
+ "**/build/**",
184
+ "**/coverage/**"
185
+ ];
186
+ async function findFiles(pattern, cwd = process.cwd(), extraIgnore = []) {
187
+ return glob(pattern, {
188
+ cwd,
189
+ absolute: true,
190
+ ignore: [...DEFAULT_FIND_FILES_IGNORE, ...extraIgnore]
191
+ });
182
192
  }
183
193
  function relativePosix(from, to) {
184
194
  return relative(from, to).replaceAll("\\", "/");