@harness-engineering/core 0.26.1 → 0.26.3

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,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("\\", "/");
package/dist/index.js CHANGED
@@ -524,8 +524,18 @@ async function readFileContent(path46) {
524
524
  return (0, import_types.Err)(error);
525
525
  }
526
526
  }
527
- async function findFiles(pattern, cwd = process.cwd()) {
528
- return (0, import_glob.glob)(pattern, { cwd, absolute: true });
527
+ var DEFAULT_FIND_FILES_IGNORE = [
528
+ "**/node_modules/**",
529
+ "**/dist/**",
530
+ "**/build/**",
531
+ "**/coverage/**"
532
+ ];
533
+ async function findFiles(pattern, cwd = process.cwd(), extraIgnore = []) {
534
+ return (0, import_glob.glob)(pattern, {
535
+ cwd,
536
+ absolute: true,
537
+ ignore: [...DEFAULT_FIND_FILES_IGNORE, ...extraIgnore]
538
+ });
529
539
  }
530
540
  function relativePosix(from, to) {
531
541
  return (0, import_node_path.relative)(from, to).replaceAll("\\", "/");
package/dist/index.mjs CHANGED
@@ -57,7 +57,7 @@ import {
57
57
  runAll,
58
58
  validateDependencies,
59
59
  violationId
60
- } from "./chunk-4UI65RLE.mjs";
60
+ } from "./chunk-JIOBXIVB.mjs";
61
61
 
62
62
  // src/index.ts
63
63
  export * from "@harness-engineering/types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harness-engineering/core",
3
- "version": "0.26.1",
3
+ "version": "0.26.3",
4
4
  "description": "Core library for Harness Engineering toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "yaml": "^2.8.3",
53
53
  "zod": "^3.25.76",
54
54
  "@harness-engineering/graph": "0.9.0",
55
- "@harness-engineering/types": "0.11.0"
55
+ "@harness-engineering/types": "0.12.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/ejs": "^3.1.5",