@dbx-tools/path 0.9.131 → 0.9.132
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 +11 -14
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
# @dbx-tools/path
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Discover, match, ignore, scan, and watch filesystem paths with the same rules
|
|
4
|
+
used by the CLI, Projen, barrel generation, code generation, and documentation
|
|
5
|
+
tooling.
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
behavior consistent across the CLI, Projen, barrel generation, code generation,
|
|
8
|
-
and documentation tooling.
|
|
9
|
-
|
|
10
|
-
## Find Files
|
|
7
|
+
## Find files
|
|
11
8
|
|
|
12
9
|
```ts
|
|
13
10
|
import { find, ignore } from "@dbx-tools/path";
|
|
@@ -23,7 +20,7 @@ const files = find.findFilesSync(["packages/**/src/**/*.ts"]).toArray();
|
|
|
23
20
|
|
|
24
21
|
`find.findFiles()` streams matches asynchronously. `find.findFilesSync()`
|
|
25
22
|
returns a lazy `Sequence<string>` from
|
|
26
|
-
[
|
|
23
|
+
[@dbx-tools/shared-core](../../shared/core), so callers can map/filter without
|
|
27
24
|
materializing immediately.
|
|
28
25
|
|
|
29
26
|
The package also provides glob matchers, shared ignore rules, workspace package
|
|
@@ -32,7 +29,7 @@ scanning, and Chokidar-based watch helpers.
|
|
|
32
29
|
Use this package instead of direct `glob` or `chokidar` calls when the result
|
|
33
30
|
should agree with package discovery, barrel generation, or cleanup logic.
|
|
34
31
|
|
|
35
|
-
## Compile
|
|
32
|
+
## Compile matchers
|
|
36
33
|
|
|
37
34
|
```ts
|
|
38
35
|
import { match } from "@dbx-tools/path";
|
|
@@ -47,7 +44,7 @@ if (isTest("packages/shared/model/test/classify.test.ts")) {
|
|
|
47
44
|
`match.pathMatchTests()` when you need to inspect the compiled include/exclude
|
|
48
45
|
tests.
|
|
49
46
|
|
|
50
|
-
## Reuse
|
|
47
|
+
## Reuse ignore rules
|
|
51
48
|
|
|
52
49
|
```ts
|
|
53
50
|
import { ignore } from "@dbx-tools/path";
|
|
@@ -63,7 +60,7 @@ const matcher = ignore.ignorePathMatcher({
|
|
|
63
60
|
The ignore helpers centralize repo-wide exclusions such as `node_modules`,
|
|
64
61
|
generated files, build output, VCS metadata, and package-manager output.
|
|
65
62
|
|
|
66
|
-
## Scan
|
|
63
|
+
## Scan workspace packages
|
|
67
64
|
|
|
68
65
|
```ts
|
|
69
66
|
import { scan } from "@dbx-tools/path";
|
|
@@ -79,7 +76,7 @@ const options: scan.FileScanOptions = {
|
|
|
79
76
|
options when implementing docs or analysis tools that should walk the workspace
|
|
80
77
|
like synthesis does.
|
|
81
78
|
|
|
82
|
-
## Watch
|
|
79
|
+
## Watch files
|
|
83
80
|
|
|
84
81
|
```ts
|
|
85
82
|
import { watch } from "@dbx-tools/path";
|
|
@@ -94,7 +91,7 @@ watcher.on("change", (file) => rebuild(file));
|
|
|
94
91
|
`watch.watchFiles()` wraps chokidar with the same path and ignore expectations
|
|
95
92
|
used by the rest of the repo tooling.
|
|
96
93
|
|
|
97
|
-
## Build
|
|
94
|
+
## Build patterns
|
|
98
95
|
|
|
99
96
|
```ts
|
|
100
97
|
import { pattern } from "@dbx-tools/path";
|
|
@@ -115,4 +112,4 @@ Pattern helpers keep generated glob fragments escaped and consistent.
|
|
|
115
112
|
- `pattern` - escaped directory-name and extension glob fragments.
|
|
116
113
|
|
|
117
114
|
The projen engine uses this package in
|
|
118
|
-
[
|
|
115
|
+
[@dbx-tools/projen](../../../../projen).
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/path";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.132";
|
|
7
7
|
export * as find from "./src/find.ts";
|
|
8
8
|
export * as gitIgnore from "./src/git-ignore.ts";
|
|
9
9
|
export * as ignore from "./src/ignore.ts";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/path";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.9.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.9.132";
|
|
3
3
|
export * as find from "./src/find.ts";
|
|
4
4
|
export * as gitIgnore from "./src/git-ignore.ts";
|
|
5
5
|
export * as ignore from "./src/ignore.ts";
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/path";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.132";
|
|
6
6
|
export * as find from "./src/find.js";
|
|
7
7
|
export * as gitIgnore from "./src/git-ignore.js";
|
|
8
8
|
export * as ignore from "./src/ignore.js";
|
|
@@ -12,4 +12,4 @@ export * as scan from "./src/scan.js";
|
|
|
12
12
|
export * as watch from "./src/watch.js";
|
|
13
13
|
export { GitIgnore } from "./src/git-ignore.js";
|
|
14
14
|
export { FOLLOW_SYMLINKS_DEFAULT } from "./src/scan.js";
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3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I7XG4iXX0=
|
package/package.json
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"typescript": "^5.9.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dbx-tools/core": "^0.9.
|
|
27
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
26
|
+
"@dbx-tools/core": "^0.9.132",
|
|
27
|
+
"@dbx-tools/shared-core": "^0.9.132",
|
|
28
28
|
"chokidar": "^4.0.3",
|
|
29
29
|
"glob": "^13.0.6",
|
|
30
30
|
"ignore": "^7.0.12",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"./package.json": "./package.json"
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
"version": "0.9.
|
|
79
|
+
"version": "0.9.132",
|
|
80
80
|
"types": "./lib/index.d.ts",
|
|
81
81
|
"dbxToolsConfig": {
|
|
82
82
|
"tags": [
|