@yuu1111/knip-config 0.0.0 → 1.0.0

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/application.ts CHANGED
@@ -2,6 +2,7 @@ import type { KnipConfig } from "knip";
2
2
  import { base } from "./base";
3
3
 
4
4
  // frameworkが動的に読み込むentrypointは利用Projectが明示する
5
+ /** application向けのknip設定を提供する */
5
6
  export const application = {
6
7
  ...base,
7
8
  // applicationのentryは公開契約ではないため未使用exportとして報告しない
package/base.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { KnipConfig } from "knip";
2
2
 
3
+ /** 各knip設定が共通で継承するbase設定を提供する */
3
4
  export const base = {
4
5
  // 同一file内で参照しているexportは内部利用とみなす
5
6
  ignoreExportsUsedInFile: true,
package/library.ts CHANGED
@@ -2,6 +2,7 @@ import type { KnipConfig } from "knip";
2
2
  import { base } from "./base";
3
3
 
4
4
  // 公開APIのentryから未使用になったexportを報告する
5
+ /** 公開APIのentryを持つlibrary向けのknip設定を提供する */
5
6
  export const library = {
6
7
  ...base,
7
8
  includeEntryExports: true,
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "@yuu1111/knip-config",
3
- "version": "0.0.0",
4
- "description": "Shared Knip configuration",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/yuu1111/configs.git",
9
- "directory": "packages/knip-config"
10
- },
11
- "type": "module",
12
- "exports": {
13
- "./application": "./application.ts",
14
- "./base": "./base.ts",
15
- "./library": "./library.ts"
16
- },
17
- "files": [
18
- "application.ts",
19
- "base.ts",
20
- "library.ts"
21
- ],
22
- "keywords": [
23
- "knip",
24
- "config"
25
- ],
26
- "peerDependencies": {
27
- "knip": ">=5.0.0"
28
- },
29
- "peerDependenciesMeta": {
30
- "knip": {
31
- "optional": true
32
- }
33
- },
34
- "devDependencies": {
35
- "knip": "^6.34.0"
36
- }
37
- }
1
+ {
2
+ "name": "@yuu1111/knip-config",
3
+ "version": "1.0.0",
4
+ "description": "Shared Knip configuration",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/yuu1111/configs.git",
9
+ "directory": "packages/knip-config"
10
+ },
11
+ "type": "module",
12
+ "exports": {
13
+ "./application": "./application.ts",
14
+ "./base": "./base.ts",
15
+ "./library": "./library.ts"
16
+ },
17
+ "files": [
18
+ "application.ts",
19
+ "base.ts",
20
+ "library.ts"
21
+ ],
22
+ "keywords": [
23
+ "knip",
24
+ "config"
25
+ ],
26
+ "peerDependencies": {
27
+ "knip": ">=5.0.0"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "knip": {
31
+ "optional": true
32
+ }
33
+ },
34
+ "devDependencies": {
35
+ "knip": "^6.34.0"
36
+ }
37
+ }