@dbx-tools/path 0.3.39 → 0.3.41

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/README.md CHANGED
@@ -22,7 +22,7 @@ Key features:
22
22
  import { find, ignore } from "@dbx-tools/path";
23
23
 
24
24
  const files = find
25
- .findFiles(["workspaces/**/src/**/*.ts"], {
25
+ .findFiles(["packages/**/src/**/*.ts"], {
26
26
  ignore: ignore.ignorePatterns(),
27
27
  })
28
28
  .toArray();
@@ -41,7 +41,7 @@ should agree with package discovery, barrel generation, or cleanup logic.
41
41
  import { match } from "@dbx-tools/path";
42
42
 
43
43
  const isTest = match.toPathMatcher("**/*.test.ts");
44
- if (isTest("workspaces/shared/model/test/classify.test.ts")) {
44
+ if (isTest("packages/shared/model/test/classify.test.ts")) {
45
45
  skip();
46
46
  }
47
47
  ```
@@ -71,7 +71,7 @@ generated files, build output, VCS metadata, and package-manager output.
71
71
  import { scan } from "@dbx-tools/path";
72
72
 
73
73
  const options: scan.FileScanOptions = {
74
- roots: ["workspaces", "example-workspaces"],
74
+ roots: ["workspaces", "example-packages"],
75
75
  followSymlinks: scan.FOLLOW_SYMLINKS_DEFAULT,
76
76
  };
77
77
  ```
@@ -85,7 +85,7 @@ like synthesis does.
85
85
  ```ts
86
86
  import { watch } from "@dbx-tools/path";
87
87
 
88
- const watcher = watch.watchFiles(["workspaces/**/src/**/*.ts"], {
88
+ const watcher = watch.watchFiles(["packages/**/src/**/*.ts"], {
89
89
  ignoreInitial: true,
90
90
  });
91
91
 
@@ -111,7 +111,7 @@ Pattern helpers keep generated glob fragments escaped and consistent.
111
111
  - `find` - glob-backed lazy file finding.
112
112
  - `match` - glob-to-predicate path matchers.
113
113
  - `ignore` - standard ignore pattern and matcher construction.
114
- - `scan` - workspace package scan option types and defaults.
114
+ - `scan` - package scan option types and defaults.
115
115
  - `watch` - chokidar wrapper for file watching.
116
116
  - `pattern` - escaped directory-name and extension glob fragments.
117
117
 
package/index.ts CHANGED
@@ -8,8 +8,14 @@ export * as match from "./src/match";
8
8
  export * as pattern from "./src/pattern";
9
9
  export * as scan from "./src/scan";
10
10
  export * as watch from "./src/watch";
11
+ export { findFiles } from "./src/find";
11
12
  export type { FileFindOptions } from "./src/find";
13
+ export { ignorePatterns, ignorePathMatcher } from "./src/ignore";
12
14
  export type { IgnorePatternOptions } from "./src/ignore";
15
+ export { pathMatchTests, toPathMatcher } from "./src/match";
13
16
  export type { PathMatchPredicate, PathMatcher, PathMatchInput } from "./src/match";
17
+ export { directoryNamePattern, fileExtensionPattern } from "./src/pattern";
18
+ export { FOLLOW_SYMLINKS_DEFAULT } from "./src/scan";
14
19
  export type { FileScanOptions, FileScanIgnoreOptions } from "./src/scan";
20
+ export { watchFiles } from "./src/watch";
15
21
  export type { FileWatchOptions } from "./src/watch";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/reggie-db/dbx-tools.git",
6
- "directory": "workspaces/node/path"
6
+ "directory": "packages/node/path"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@types/node": "^24.6.0",
@@ -14,15 +14,15 @@
14
14
  "chokidar": "^4.0.3",
15
15
  "glob": "^13.0.6",
16
16
  "minimatch": "^10.2.5",
17
- "@dbx-tools/core": "0.3.39",
18
- "@dbx-tools/shared-core": "0.3.39"
17
+ "@dbx-tools/core": "0.3.41",
18
+ "@dbx-tools/shared-core": "0.3.41"
19
19
  },
20
20
  "main": "index.ts",
21
21
  "license": "UNLICENSED",
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
25
- "version": "0.3.39",
25
+ "version": "0.3.41",
26
26
  "types": "index.ts",
27
27
  "type": "module",
28
28
  "exports": {
package/src/match.ts CHANGED
@@ -61,6 +61,6 @@ if (import.meta.main) {
61
61
  const matcher = ignorePathMatcher({ test: true })
62
62
  .negate()
63
63
  .and(...pathMatchTests("**/cool.ts", "**/wow.ts"));
64
- console.log(matcher("workspaces/node/file-scan/src/cool.ts"));
65
- console.log(matcher("workspaces/node/file-scan/.src/cool.ts"));
64
+ console.log(matcher("packages/node/file-scan/src/cool.ts"));
65
+ console.log(matcher("packages/node/file-scan/.src/cool.ts"));
66
66
  }