@yuu1111/knip-config 1.0.2 → 1.0.3
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 +1 -3
- package/README.md +1 -5
- package/application.ts +1 -2
- package/base.ts +1 -1
- package/library.ts +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -55,8 +55,6 @@ import { application } from "@yuu1111/knip-config/application"
|
|
|
55
55
|
|
|
56
56
|
export default {
|
|
57
57
|
...application,
|
|
58
|
-
ignore: ["
|
|
58
|
+
ignore: ["another-project/**"]
|
|
59
59
|
}
|
|
60
60
|
```
|
|
61
|
-
|
|
62
|
-
そのrepositoryではpresetだけで未使用exportが48件から41件になり、入れ子Projectを外すとrepositoryに本当に残った未使用type 1件まで減った
|
package/README.md
CHANGED
|
@@ -57,10 +57,6 @@ import { application } from "@yuu1111/knip-config/application"
|
|
|
57
57
|
|
|
58
58
|
export default {
|
|
59
59
|
...application,
|
|
60
|
-
ignore: ["
|
|
60
|
+
ignore: ["another-project/**"]
|
|
61
61
|
}
|
|
62
62
|
```
|
|
63
|
-
|
|
64
|
-
On such a repository the preset alone took the unused exports from 48 to 41,
|
|
65
|
-
and the nested project took the report down to the single unused type that the
|
|
66
|
-
repository really has left.
|
package/application.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { KnipConfig } from "knip";
|
|
2
2
|
import { base } from "./base";
|
|
3
3
|
|
|
4
|
-
// frameworkが動的に読み込むentrypointは利用Projectが明示する
|
|
5
4
|
/**
|
|
6
|
-
* application向けのknip設定を提供する
|
|
5
|
+
* frameworkが動的に読み込むentryは利用Projectが明示するapplication向けのknip設定を提供する
|
|
7
6
|
*/
|
|
8
7
|
export const application = {
|
|
9
8
|
...base,
|
package/base.ts
CHANGED
package/library.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { KnipConfig } from "knip";
|
|
2
2
|
import { base } from "./base";
|
|
3
3
|
|
|
4
|
-
// 公開APIのentryから未使用になったexportを報告する
|
|
5
4
|
/**
|
|
6
5
|
* 公開APIのentryを持つlibrary向けのknip設定を提供する
|
|
7
6
|
*/
|
|
8
7
|
export const library = {
|
|
9
8
|
...base,
|
|
9
|
+
// 公開APIから外れたexportを未使用として報告する
|
|
10
10
|
includeEntryExports: true,
|
|
11
11
|
} satisfies KnipConfig;
|