@adamhl8/configs 1.0.0 → 1.1.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.
|
@@ -35,7 +35,7 @@ _lint:
|
|
|
35
35
|
markdown-toc -i --bullets '-' --maxdepth 3 ./README.md
|
|
36
36
|
oxlint --fix --fix-suggestions --fix-dangerously
|
|
37
37
|
oxfmt
|
|
38
|
-
knip
|
|
38
|
+
knip-bun
|
|
39
39
|
@just test
|
|
40
40
|
|
|
41
41
|
build: _build
|
|
@@ -54,4 +54,4 @@ _release:
|
|
|
54
54
|
release-run: _release-run
|
|
55
55
|
|
|
56
56
|
_release-run:
|
|
57
|
-
release-it --ci -i "$(adamhl8-cliff --bumped-version)"
|
|
57
|
+
release-it -VV --ci -i "$(adamhl8-cliff --bumped-version)"
|
|
@@ -3,9 +3,11 @@ import { KnipConfig } from "knip";
|
|
|
3
3
|
//#region src/configs/knip.base.d.ts
|
|
4
4
|
declare const knipConfig: OptionalMergeConfigFn<KnipConfig, {
|
|
5
5
|
readonly project: ["**/*"];
|
|
6
|
-
readonly entry: ["./src/index.ts"];
|
|
7
6
|
readonly ignoreBinaries: ["just"];
|
|
8
|
-
readonly ignoreDependencies: ["@adamhl8/eslint-plugin-clean-modules"
|
|
7
|
+
readonly ignoreDependencies: ["@adamhl8/eslint-plugin-clean-modules"];
|
|
8
|
+
readonly bun: {
|
|
9
|
+
readonly entry: ["**/*.test.ts"];
|
|
10
|
+
};
|
|
9
11
|
}>;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { knipConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip.base.d.ts","names":[],"sources":["../../src/configs/knip.base.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"knip.base.d.ts","names":[],"sources":["../../src/configs/knip.base.ts"],"mappings":";;;cAuBa,YAAU,sBAAA;;;;;aAJnB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createMergeConfigFn } from "../utils.js";
|
|
2
2
|
const knipConfig = createMergeConfigFn({
|
|
3
3
|
project: ["**/*"],
|
|
4
|
-
entry: ["./src/index.ts"],
|
|
5
4
|
ignoreBinaries: ["just"],
|
|
6
|
-
ignoreDependencies: ["@adamhl8/eslint-plugin-clean-modules",
|
|
5
|
+
ignoreDependencies: ["@adamhl8/eslint-plugin-clean-modules"],
|
|
6
|
+
bun: { entry: ["**/*.test.ts"] }
|
|
7
7
|
});
|
|
8
8
|
//#endregion
|
|
9
9
|
export { knipConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip.base.js","names":[],"sources":["../../src/configs/knip.base.ts"],"sourcesContent":["import type { KnipConfig } from \"knip\"\n\nimport { createMergeConfigFn } from \"#utils.ts\"\n\n/** Knip sees `just` in the `prepare` script and the release-it hooks, but it isn't a package.json dependency */\nconst IGNORE_BINARIES = [\"just\"] as const satisfies string[]\n\n/**\n * - Knip resolves `@adamhl8/eslint-plugin-clean-modules` via the oxlint config, but we don't need to install it directly\n * in the consuming project, so it shows as unlisted\n
|
|
1
|
+
{"version":3,"file":"knip.base.js","names":[],"sources":["../../src/configs/knip.base.ts"],"sourcesContent":["import type { KnipConfig } from \"knip\"\n\nimport { createMergeConfigFn } from \"#utils.ts\"\n\n/** Knip sees `just` in the `prepare` script and the release-it hooks, but it isn't a package.json dependency */\nconst IGNORE_BINARIES = [\"just\"] as const satisfies string[]\n\n/**\n * - Knip resolves `@adamhl8/eslint-plugin-clean-modules` via the oxlint config, but we don't need to install it directly\n * in the consuming project, so it shows as unlisted\n */\nconst IGNORE_DEPENDENCIES = [\"@adamhl8/eslint-plugin-clean-modules\"] as const satisfies string[]\n\nconst baseConfig = {\n project: [\"**/*\"],\n // entry: [\"**/*.test.ts\"],\n ignoreBinaries: IGNORE_BINARIES,\n ignoreDependencies: IGNORE_DEPENDENCIES,\n bun: {\n entry: [\"**/*.test.ts\"],\n },\n} as const satisfies KnipConfig\n\nexport const knipConfig = createMergeConfigFn<KnipConfig, typeof baseConfig>(baseConfig)\n"],"mappings":";AAuBA,MAAa,aAAa,oBAAmD;CAT3E,SAAS,CAAC,MAAM;CAEhB,gBAAgB,CAXO,MAWO;CAC9B,oBAAoB,CANO,sCAMW;CACtC,KAAK,EACH,OAAO,CAAC,cAAc,EACxB;AAG2E,CAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "My shared configs for TS projects",
|
|
5
5
|
"homepage": "https://github.com/adamhl8/configs",
|
|
6
6
|
"bugs": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"publint": ">=0.3",
|
|
85
85
|
"release-it": ">=19",
|
|
86
86
|
"tsdown": ">=0.20",
|
|
87
|
-
"typescript": "^
|
|
87
|
+
"typescript": "^7.0.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependenciesMeta": {
|
|
90
90
|
"@arethetypeswrong/core": {
|