@adamhl8/configs 1.0.0 → 1.1.1
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/dist/configs/commitlint.base.d.ts +2 -2
- package/dist/configs/commitlint.base.d.ts.map +1 -1
- package/dist/configs/commitlint.base.js +6 -8
- package/dist/configs/commitlint.base.js.map +1 -1
- package/dist/configs/justfile.base.just +2 -2
- package/dist/configs/knip.base.d.ts +4 -2
- package/dist/configs/knip.base.d.ts.map +1 -1
- package/dist/configs/knip.base.js +2 -2
- package/dist/configs/knip.base.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OptionalMergeConfigFn } from "../utils.js";
|
|
2
|
-
import {
|
|
2
|
+
import { UserConfig } from "@commitlint/types";
|
|
3
3
|
//#region src/configs/commitlint.base.d.ts
|
|
4
4
|
declare const commitlintConfig: OptionalMergeConfigFn<UserConfig, {
|
|
5
5
|
readonly extends: ["@commitlint/config-conventional"];
|
|
6
6
|
readonly rules: {
|
|
7
|
-
readonly "type-enum": readonly [
|
|
7
|
+
readonly "type-enum": readonly [2, "always", string[]];
|
|
8
8
|
};
|
|
9
9
|
}>;
|
|
10
10
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commitlint.base.d.ts","names":[],"sources":["../../src/configs/commitlint.base.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"commitlint.base.d.ts","names":[],"sources":["../../src/configs/commitlint.base.ts"],"mappings":";;;cAkBa,kBAAgB,sBAAA;;;aAJzB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createMergeConfigFn } from "../utils.js";
|
|
2
2
|
import conventional from "@commitlint/config-conventional";
|
|
3
|
-
import { RuleConfigSeverity } from "@commitlint/types";
|
|
4
3
|
//#region src/configs/commitlint.base.ts
|
|
5
4
|
const [_severity, _condition, conventionalTypes] = conventional.rules["type-enum"];
|
|
6
5
|
const EXCLUDED_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -8,17 +7,16 @@ const EXCLUDED_TYPES = /* @__PURE__ */ new Set([
|
|
|
8
7
|
"style",
|
|
9
8
|
"build"
|
|
10
9
|
]);
|
|
11
|
-
const commitTypes = [
|
|
12
|
-
...conventionalTypes.filter((type) => !EXCLUDED_TYPES.has(type)),
|
|
13
|
-
"improve",
|
|
14
|
-
"release"
|
|
15
|
-
];
|
|
16
10
|
const commitlintConfig = createMergeConfigFn({
|
|
17
11
|
extends: ["@commitlint/config-conventional"],
|
|
18
12
|
rules: { "type-enum": [
|
|
19
|
-
|
|
13
|
+
2,
|
|
20
14
|
"always",
|
|
21
|
-
|
|
15
|
+
[
|
|
16
|
+
...conventionalTypes.filter((type) => !EXCLUDED_TYPES.has(type)),
|
|
17
|
+
"improve",
|
|
18
|
+
"release"
|
|
19
|
+
]
|
|
22
20
|
] }
|
|
23
21
|
});
|
|
24
22
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commitlint.base.js","names":[],"sources":["../../src/configs/commitlint.base.ts"],"sourcesContent":["import conventional from \"@commitlint/config-conventional\"\nimport
|
|
1
|
+
{"version":3,"file":"commitlint.base.js","names":[],"sources":["../../src/configs/commitlint.base.ts"],"sourcesContent":["import conventional from \"@commitlint/config-conventional\"\nimport type { UserConfig } from \"@commitlint/types\"\n\nimport { createMergeConfigFn } from \"#utils.ts\"\n\nconst [_severity, _condition, conventionalTypes] = conventional.rules[\"type-enum\"]\n\nconst EXCLUDED_TYPES = new Set([\"test\", \"style\", \"build\"])\nconst filteredTypes = conventionalTypes.filter((type) => !EXCLUDED_TYPES.has(type))\nconst commitTypes = [...filteredTypes, \"improve\", \"release\"]\n\nconst baseConfig = {\n extends: [\"@commitlint/config-conventional\"],\n rules: {\n \"type-enum\": [2, \"always\", commitTypes],\n },\n} as const satisfies UserConfig\n\nexport const commitlintConfig = createMergeConfigFn<UserConfig, typeof baseConfig>(baseConfig)\n"],"mappings":";;;AAKA,MAAM,CAAC,WAAW,YAAY,qBAAqB,aAAa,MAAM;AAEtE,MAAM,iCAAiB,IAAI,IAAI;CAAC;CAAQ;CAAS;AAAO,CAAC;AAWzD,MAAa,mBAAmB,oBAAmD;CANjF,SAAS,CAAC,iCAAiC;CAC3C,OAAO,EACL,aAAa;EAAC;EAAG;EAAU;GALV,GADC,kBAAkB,QAAQ,SAAS,CAAC,eAAe,IAAI,IAAI,CAC7C;GAAG;GAAW;EAKT;CAAC,EACxC;AAGiF,CAAU"}
|
|
@@ -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.1",
|
|
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": {
|