@adamhl8/configs 0.15.15 → 0.15.17

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.
@@ -2,8 +2,10 @@ import { knipConfig } from "./knip.js";
2
2
  import "./index.js";
3
3
  const entries = knipConfig().entry;
4
4
  const preprocess = (options) => {
5
- const filteredConfigurationHints = [...options.configurationHints].filter((hint) => !(typeof hint.identifier === "string" && entries.includes(hint.identifier) && hint.type === "entry-empty"));
5
+ const filteredConfigurationHints = [...options.configurationHints].filter((hint) => !(entries.some((entry) => typeof hint.identifier === "string" && hint.identifier.includes(entry)) && hint.type === "entry-empty"));
6
6
  options.configurationHints = new Set(filteredConfigurationHints);
7
+ const filteredUnlisted = Object.fromEntries(Object.entries(options.issues.unlisted).filter(([key]) => !key.includes("prettier")));
8
+ options.issues.unlisted = filteredUnlisted;
7
9
  return options;
8
10
  };
9
11
  var knip_preprocessor_default = preprocess;
@@ -1 +1 @@
1
- {"version":3,"file":"knip-preprocessor.js","names":["preprocess: Preprocessor"],"sources":["../src/knip-preprocessor.ts"],"sourcesContent":["import type { Preprocessor } from \"knip\"\n\n// biome-ignore lint/plugin: ignore\nimport { knipConfig } from \"./index.ts\"\n\nconst entries = knipConfig().entry as string[]\n\nconst preprocess: Preprocessor = (options) => {\n // ignore the \"Refine entry pattern (no matches)\" configuration hints for entries in the base config\n const filteredConfigurationHints = [...options.configurationHints].filter(\n (hint) =>\n !(typeof hint.identifier === \"string\" && entries.includes(hint.identifier) && hint.type === \"entry-empty\"),\n )\n options.configurationHints = new Set(filteredConfigurationHints)\n return options\n}\n\nexport default preprocess\n"],"mappings":";;AAKA,MAAM,UAAU,YAAY,CAAC;AAE7B,MAAMA,cAA4B,YAAY;CAE5C,MAAM,6BAA6B,CAAC,GAAG,QAAQ,mBAAmB,CAAC,QAChE,SACC,EAAE,OAAO,KAAK,eAAe,YAAY,QAAQ,SAAS,KAAK,WAAW,IAAI,KAAK,SAAS,eAC/F;AACD,SAAQ,qBAAqB,IAAI,IAAI,2BAA2B;AAChE,QAAO;;AAGT,IAAA,4BAAe"}
1
+ {"version":3,"file":"knip-preprocessor.js","names":["preprocess: Preprocessor"],"sources":["../src/knip-preprocessor.ts"],"sourcesContent":["import type { Preprocessor } from \"knip\"\n\n// biome-ignore lint/plugin: ignore\nimport { knipConfig } from \"./index.ts\"\n\nconst entries = knipConfig().entry as string[]\n\nconst preprocess: Preprocessor = (options) => {\n // ignore the \"Refine entry pattern (no matches)\" configuration hints for entries in the base config\n const filteredConfigurationHints = [...options.configurationHints].filter(\n (hint) =>\n !(\n entries.some((entry) => typeof hint.identifier === \"string\" && hint.identifier.includes(entry)) &&\n hint.type === \"entry-empty\"\n ),\n )\n options.configurationHints = new Set(filteredConfigurationHints)\n\n const filteredUnlisted = Object.fromEntries(\n Object.entries(options.issues.unlisted).filter(([key]) => !key.includes(\"prettier\")),\n )\n options.issues.unlisted = filteredUnlisted\n\n return options\n}\n\nexport default preprocess\n"],"mappings":";;AAKA,MAAM,UAAU,YAAY,CAAC;AAE7B,MAAMA,cAA4B,YAAY;CAE5C,MAAM,6BAA6B,CAAC,GAAG,QAAQ,mBAAmB,CAAC,QAChE,SACC,EACE,QAAQ,MAAM,UAAU,OAAO,KAAK,eAAe,YAAY,KAAK,WAAW,SAAS,MAAM,CAAC,IAC/F,KAAK,SAAS,eAEnB;AACD,SAAQ,qBAAqB,IAAI,IAAI,2BAA2B;CAEhE,MAAM,mBAAmB,OAAO,YAC9B,OAAO,QAAQ,QAAQ,OAAO,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,WAAW,CAAC,CACrF;AACD,SAAQ,OAAO,WAAW;AAE1B,QAAO;;AAGT,IAAA,4BAAe"}
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
+ "include": ["${configDir}/**/*", "${configDir}/**/.*/**/*"],
3
4
  "exclude": ["${configDir}/dist/"],
4
5
  "compilerOptions": {
5
6
  "target": "ESNext",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamhl8/configs",
3
- "version": "0.15.15",
3
+ "version": "0.15.17",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,6 +16,9 @@
16
16
  "url": "https://github.com/adamhl8"
17
17
  },
18
18
  "license": "MIT",
19
+ "bin": {
20
+ "adamhl8-knip": "./dist/adamhl8-knip"
21
+ },
19
22
  "exports": {
20
23
  "./tsconfig": "./dist/tsconfig.base.json",
21
24
  "./biome": "./dist/biome.base.json",
@@ -24,13 +27,10 @@
24
27
  "import": "./dist/index.js"
25
28
  }
26
29
  },
27
- "bin": {
28
- "adamhl8-knip": "dist/adamhl8-knip"
29
- },
30
- "files": ["dist/"],
30
+ "files": ["./dist/"],
31
31
  "scripts": {
32
32
  "bundle": "bun lint && tsdown",
33
- "lint": "bun generate-biome-rules.ts && tsc --noEmit && biome check --write && ./src/adamhl8-knip.ts",
33
+ "lint": "bun ./generate-biome-rules.ts && markdown-toc -i --bullets '-' --maxdepth 3 ./README.md && tsc --noEmit && biome check --write && ./src/adamhl8-knip.ts",
34
34
  "postinstall": "mkdir -p ./node_modules/@adamhl8/configs/dist/ && cp -r ./src/biome-plugins/ ./node_modules/@adamhl8/configs/dist/",
35
35
  "prepare": "find .githooks -type f -exec ln -srf {} .git/hooks/ \\; || true",
36
36
  "prepublishOnly": "bun bundle"
@@ -50,6 +50,7 @@
50
50
  "@biomejs/biome": "^2.2.4",
51
51
  "@types/bun": "^1.2.22",
52
52
  "knip": "^5.63.1",
53
+ "markdown-toc": "^1.2.0",
53
54
  "prettier": "^3.6.2",
54
55
  "publint": "^0.3.12",
55
56
  "tsdown": "^0.15.2",