@dbx-tools/projen 0.6.88 → 0.6.89
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 +5 -5
- package/package.json +4 -4
- package/src/watch.ts +3 -3
package/README.md
CHANGED
|
@@ -23,9 +23,9 @@ Key features:
|
|
|
23
23
|
## Define A Workspace Root
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
|
-
import { project as
|
|
26
|
+
import { project as projenProject } from "@dbx-tools/projen";
|
|
27
27
|
|
|
28
|
-
const project = new
|
|
28
|
+
const project = new projenProject.DBXToolsNodeProject({
|
|
29
29
|
name: "my-apps",
|
|
30
30
|
scope: "my-apps",
|
|
31
31
|
packageRoots: ["packages", "examples"],
|
|
@@ -88,11 +88,11 @@ owner.
|
|
|
88
88
|
## Customize Packages With Mixins
|
|
89
89
|
|
|
90
90
|
```ts
|
|
91
|
-
import { project as
|
|
91
|
+
import { project as projenProject } from "@dbx-tools/projen";
|
|
92
92
|
|
|
93
|
-
const project = new
|
|
93
|
+
const project = new projenProject.DBXToolsNodeProject();
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
projenProject.applyToProjects(project, { tags: "shared" }, (pkg) => {
|
|
96
96
|
pkg.addDeps("zod@catalog:");
|
|
97
97
|
});
|
|
98
98
|
|
package/package.json
CHANGED
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@clack/prompts": "^1.7.0",
|
|
29
|
-
"@dbx-tools/core": "0.6.
|
|
30
|
-
"@dbx-tools/path": "0.6.
|
|
31
|
-
"@dbx-tools/shared-core": "0.6.
|
|
29
|
+
"@dbx-tools/core": "0.6.89",
|
|
30
|
+
"@dbx-tools/path": "0.6.89",
|
|
31
|
+
"@dbx-tools/shared-core": "0.6.89",
|
|
32
32
|
"commander": "^15.0.0",
|
|
33
33
|
"concurrently": "^10.0.3",
|
|
34
34
|
"constructs": "^10.6.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"main": "index.ts",
|
|
49
49
|
"license": "Apache-2.0",
|
|
50
|
-
"version": "0.6.
|
|
50
|
+
"version": "0.6.89",
|
|
51
51
|
"types": "index.ts",
|
|
52
52
|
"type": "module",
|
|
53
53
|
"exports": {
|
package/src/watch.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* recompute it. {@link watchFiles} owns the chokidar wiring; this is thin glue.
|
|
17
17
|
*/
|
|
18
18
|
import { isAbsolute, resolve } from "node:path";
|
|
19
|
-
import { watch as
|
|
19
|
+
import { watch as pathWatch } from "@dbx-tools/path";
|
|
20
20
|
import { async, log } from "@dbx-tools/shared-core";
|
|
21
21
|
import { isGeneratedFile, recordedRoots, repoRoot } from "./packages.ts";
|
|
22
22
|
|
|
@@ -49,7 +49,7 @@ const FATAL_WATCH_ERROR_CODES = new Set(["EMFILE", "ENFILE", "ENOSPC"]);
|
|
|
49
49
|
|
|
50
50
|
/** node-path's built-in ignore-group toggles (`{ dot, temp, test, lock, defaults }`). */
|
|
51
51
|
export type IgnoreGroupOptions = NonNullable<
|
|
52
|
-
Parameters<typeof
|
|
52
|
+
Parameters<typeof pathWatch.watchFiles>[1]
|
|
53
53
|
>["ignoreOptions"];
|
|
54
54
|
|
|
55
55
|
/** The package roots (absolute), where every watchable source file lives. */
|
|
@@ -115,7 +115,7 @@ export function watchLoop(
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
const watcher =
|
|
118
|
+
const watcher = pathWatch.watchFiles(paths, {
|
|
119
119
|
cwd: repoRoot,
|
|
120
120
|
ignoreInitial: true,
|
|
121
121
|
ignore: (path) => ignoredPath(path),
|