@yuu1111/knip-config 1.0.4 → 1.0.6
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.ja.md +12 -0
- package/README.md +13 -0
- package/package.json +1 -2
package/README.ja.md
CHANGED
|
@@ -58,6 +58,18 @@ export default {
|
|
|
58
58
|
}
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
`workspaces` を設定に書くと、`base` が足すtop levelの `entry` はroot workspaceへ届かない root workspace側にも `entry` を書く
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
export default {
|
|
65
|
+
...application,
|
|
66
|
+
workspaces: {
|
|
67
|
+
".": { entry: ["quality.config.ts"] },
|
|
68
|
+
"packages/app": { entry: ["src/cli.ts"] }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
61
73
|
別Projectを同居させているrepositoryは `ignore` でそのProjectを報告から外し、親のsourceとして読ませない
|
|
62
74
|
|
|
63
75
|
```ts
|
package/README.md
CHANGED
|
@@ -61,6 +61,19 @@ export default {
|
|
|
61
61
|
}
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
Writing `workspaces` in the config means the top-level `entry` that `base`
|
|
65
|
+
adds does not reach the root workspace, so the root workspace repeats it:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
export default {
|
|
69
|
+
...application,
|
|
70
|
+
workspaces: {
|
|
71
|
+
".": { entry: ["quality.config.ts"] },
|
|
72
|
+
"packages/app": { entry: ["src/cli.ts"] }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
64
77
|
A repository that also holds another project keeps that project out of the
|
|
65
78
|
report with `ignore`, so its files are not read as source of the parent:
|
|
66
79
|
|
package/package.json
CHANGED