@yuu1111/knip-config 1.0.1 → 1.0.2
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 -0
- package/application.ts +3 -1
- package/base.ts +5 -1
- package/library.ts +3 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
package/application.ts
CHANGED
|
@@ -2,7 +2,9 @@ import type { KnipConfig } from "knip";
|
|
|
2
2
|
import { base } from "./base";
|
|
3
3
|
|
|
4
4
|
// frameworkが動的に読み込むentrypointは利用Projectが明示する
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* application向けのknip設定を提供する
|
|
7
|
+
*/
|
|
6
8
|
export const application = {
|
|
7
9
|
...base,
|
|
8
10
|
// applicationのentryは公開契約ではないため未使用exportとして報告しない
|
package/base.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { KnipConfig } from "knip";
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* 各knip設定が共通で継承するbase設定を提供する
|
|
5
|
+
*/
|
|
4
6
|
export const base = {
|
|
5
7
|
// 同一file内で参照しているexportは内部利用とみなす
|
|
6
8
|
ignoreExportsUsedInFile: true,
|
|
9
|
+
// quality-checkが実行時に読み込むため、Projectのsourceとして報告しない
|
|
10
|
+
ignoreFiles: ["quality.config.ts"],
|
|
7
11
|
} satisfies KnipConfig;
|
package/library.ts
CHANGED
|
@@ -2,7 +2,9 @@ import type { KnipConfig } from "knip";
|
|
|
2
2
|
import { base } from "./base";
|
|
3
3
|
|
|
4
4
|
// 公開APIのentryから未使用になったexportを報告する
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* 公開APIのentryを持つlibrary向けのknip設定を提供する
|
|
7
|
+
*/
|
|
6
8
|
export const library = {
|
|
7
9
|
...base,
|
|
8
10
|
includeEntryExports: true,
|