Skip to content

Commit 6135754

Browse files
committedNov 1, 2024
Add a bit more to integrated monorepo doc
1 parent a74d27b commit 6135754

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
 

‎packages/docs/src/content/docs/features/integrated-monorepos.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ An integrated monorepo is a single workspace.
1414

1515
:::
1616

17+
## Entry Files
18+
19+
The default entrypoints files might not be enough. Here's an idea that might fit
20+
this type of monorepo:
21+
22+
```json title="knip.json"
23+
{
24+
"entry": ["{apps,libs}/**/src/index.{ts,tsx}"],
25+
"project": ["{apps,libs}/**/src/**/*.{ts,tsx}"]
26+
}
27+
```
28+
29+
## Plugins
30+
1731
Let's assume some of these projects are applications ("apps") which have their
1832
own ESLint configuration files and Cypress configuration and test files. This
1933
may result in those files getting reported as unused, and consequently also the
@@ -24,7 +38,7 @@ In that case, we could configure the ESLint and Cypress plugins like this:
2438
```json title="knip.json"
2539
{
2640
"eslint": {
27-
"config": ["**/.eslintrc.json"]
41+
"config": ["{apps,libs}/**/.eslintrc.json"]
2842
},
2943
"cypress": {
3044
"entry": ["apps/**/cypress.config.ts", "apps/**/cypress/e2e/*.spec.ts"]

0 commit comments

Comments
 (0)
Please sign in to comment.