You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- basic: meow engine mismatch (requires Node >=20, package specifies >=18.6.0)
- monorepo root: shows both root's meow issue AND workspace-a's knip issue
- workspace-a: knip engine mismatch (requires Node >=18.18.0, package specifies >=18.6.0)
- Demonstrates that parent's meow issue is excluded due to includeWorkspaceRoot: false
All three examples now have non-empty, different outputs that demonstrate
distinct aspects of the tool's functionality.
Co-authored-by: voxpelli <34457+voxpelli@users.noreply.github.com>
Copy file name to clipboardExpand all lines: examples/monorepo/packages/workspace-a/README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This workspace is part of the monorepo example and demonstrates automatic parent
6
6
7
7
This workspace:
8
8
- Depends on `chalk@^4.0.0` (installed in parent's node_modules)
9
-
- Has a clean configuration with no errors
9
+
- Has `knip@^5.0.0` in devDependencies (requires Node >=18.18.0, narrower than package's >=18.6.0)
10
10
11
11
The parent monorepo root has a `meow` dependency with an engine issue, but that issue does NOT appear when checking this workspace because `includeWorkspaceRoot` is set to `false` when using parent workspace detection.
12
12
@@ -31,17 +31,23 @@ When you run `installed-check` in this workspace:
31
31
1.**Parent detection**: Automatically detects the parent monorepo at `examples/monorepo`
32
32
2.**Module resolution**: Uses the parent's `node_modules` for finding dependencies
33
33
3.**Filtered checking**: Only checks this workspace package, not the parent (includeWorkspaceRoot: false)
34
-
4.**Validation**: Passes cleanly - the root's meow issue is excluded
34
+
4.**Validation**: Shows knip engine issue - but the parent's meow issue is correctly excluded
35
35
36
36
## Example Output
37
37
38
38
<!-- BEGIN EXPECTED OUTPUT -->
39
39
```
40
+
Errors:
40
41
42
+
workspace-a: knip: Narrower "engines.node" is needed: >=18.18.0
43
+
44
+
Suggestions:
45
+
46
+
workspace-a: Combined "engines.node" needs to be narrower: >=18.18.0
41
47
```
42
48
<!-- END EXPECTED OUTPUT -->
43
49
44
-
The empty output indicates success - this workspace has no issues, and the parent's issue is excluded.
50
+
This shows the knip engine requirement issue in this workspace. Note that the parent's meow issue does NOT appear because `includeWorkspaceRoot: false` excludes the parent from checks.
0 commit comments