@adamhl8/configs 0.21.1 → 0.22.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/knip.base.d.ts +3 -2
- package/dist/configs/knip.base.d.ts.map +1 -1
- package/dist/configs/knip.base.js +10 -7
- package/dist/configs/knip.base.js.map +1 -1
- package/dist/configs/oxfmt.base.d.ts +2 -2
- package/dist/configs/oxfmt.base.js +2 -2
- package/dist/configs/oxfmt.base.js.map +1 -1
- package/dist/configs/oxlint.base.d.ts +1 -6
- package/dist/configs/oxlint.base.d.ts.map +1 -1
- package/dist/configs/oxlint.base.js +2 -2
- package/dist/configs/oxlint.base.js.map +1 -1
- package/dist/configs/release-it.base.d.ts +28 -0
- package/dist/configs/release-it.base.d.ts.map +1 -0
- package/dist/configs/release-it.base.js +23 -0
- package/dist/configs/release-it.base.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +9 -5
|
@@ -3,9 +3,10 @@ import { KnipConfig } from "knip";
|
|
|
3
3
|
|
|
4
4
|
//#region src/configs/knip.base.d.ts
|
|
5
5
|
declare const baseConfig: {
|
|
6
|
-
readonly entry: ["./src/index.ts", "**/*.test.ts", "./tsdown.config.ts"];
|
|
7
|
-
readonly ignoreBinaries: ["lefthook"];
|
|
8
6
|
readonly project: ["**"];
|
|
7
|
+
readonly entry: ["./src/index.ts", "**/*.test.ts", "./tsdown.config.ts"];
|
|
8
|
+
readonly ignoreBinaries: ["lefthook", "git-cliff"];
|
|
9
|
+
readonly ignoreDependencies: ["@commitlint/cli"];
|
|
9
10
|
readonly tsdown: false;
|
|
10
11
|
};
|
|
11
12
|
declare const knipConfig: OptionalMergeConfigFn<KnipConfig, typeof baseConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip.base.d.ts","names":[],"sources":["../../src/configs/knip.base.ts"],"mappings":";;;;cAWM,UAAA;EAAA
|
|
1
|
+
{"version":3,"file":"knip.base.d.ts","names":[],"sources":["../../src/configs/knip.base.ts"],"mappings":";;;;cAWM,UAAA;EAAA;;;;;;cAQO,UAAA,EAAY,qBAAA,CAAsB,UAAA,SAAmB,UAAA"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { createMergeConfigFn } from "../utils.js";
|
|
2
|
+
//#region src/configs/knip.base.ts
|
|
3
|
+
const DEFAULT_ENTRIES = [
|
|
4
|
+
"./src/index.ts",
|
|
5
|
+
"**/*.test.ts",
|
|
6
|
+
"./tsdown.config.ts"
|
|
7
|
+
];
|
|
2
8
|
const knipConfig = createMergeConfigFn({
|
|
3
|
-
entry: [
|
|
4
|
-
"./src/index.ts",
|
|
5
|
-
"**/*.test.ts",
|
|
6
|
-
"./tsdown.config.ts"
|
|
7
|
-
],
|
|
8
|
-
ignoreBinaries: ["lefthook"],
|
|
9
9
|
project: ["**"],
|
|
10
|
+
entry: DEFAULT_ENTRIES,
|
|
11
|
+
ignoreBinaries: ["lefthook", "git-cliff"],
|
|
12
|
+
ignoreDependencies: ["@commitlint/cli"],
|
|
10
13
|
tsdown: false
|
|
11
14
|
});
|
|
12
15
|
//#endregion
|
|
13
|
-
export { knipConfig };
|
|
16
|
+
export { DEFAULT_ENTRIES, knipConfig };
|
|
14
17
|
|
|
15
18
|
//# sourceMappingURL=knip.base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip.base.js","names":[],"sources":["../../src/configs/knip.base.ts"],"sourcesContent":["import type { KnipConfig } from \"knip\"\n\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\nimport { createMergeConfigFn } from \"#/utils.ts\"\n\n// Normally, specifying the `./src/index.ts` entry would cause knip to complain about a redundant entry because it gets automatically included via the tsdown plugin.\n// However, in projects that _don't_ use tsdown, the `./src/index.ts` entry would be missing entirely.\n// To handle this, we specify it and disable the tsdown plugin. This makes knip work in both cases.\n\nexport const DEFAULT_ENTRIES = [\"./src/index.ts\", \"**/*.test.ts\", \"./tsdown.config.ts\"] as const satisfies string[]\n\nconst baseConfig = {\n entry: DEFAULT_ENTRIES,\n ignoreBinaries: [\"lefthook\"],\n
|
|
1
|
+
{"version":3,"file":"knip.base.js","names":[],"sources":["../../src/configs/knip.base.ts"],"sourcesContent":["import type { KnipConfig } from \"knip\"\n\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\nimport { createMergeConfigFn } from \"#/utils.ts\"\n\n// Normally, specifying the `./src/index.ts` entry would cause knip to complain about a redundant entry because it gets automatically included via the tsdown plugin.\n// However, in projects that _don't_ use tsdown, the `./src/index.ts` entry would be missing entirely.\n// To handle this, we specify it and disable the tsdown plugin. This makes knip work in both cases.\n\nexport const DEFAULT_ENTRIES = [\"./src/index.ts\", \"**/*.test.ts\", \"./tsdown.config.ts\"] as const satisfies string[]\n\nconst baseConfig = {\n project: [\"**\"],\n entry: DEFAULT_ENTRIES,\n ignoreBinaries: [\"lefthook\", \"git-cliff\"],\n ignoreDependencies: [\"@commitlint/cli\"],\n tsdown: false,\n} as const satisfies KnipConfig\n\nexport const knipConfig: OptionalMergeConfigFn<KnipConfig, typeof baseConfig> = createMergeConfigFn(baseConfig)\n"],"mappings":";;AASA,MAAa,kBAAkB;CAAC;CAAkB;CAAgB;AAAoB;AAUtF,MAAa,aAAmE,oBAAoB;CAPlG,SAAS,CAAC,IAAI;CACd,OAAO;CACP,gBAAgB,CAAC,YAAY,WAAW;CACxC,oBAAoB,CAAC,iBAAiB;CACtC,QAAQ;AAG0F,CAAU"}
|
|
@@ -3,10 +3,10 @@ import { OxfmtConfig } from "oxfmt";
|
|
|
3
3
|
|
|
4
4
|
//#region src/configs/oxfmt.base.d.ts
|
|
5
5
|
declare const baseConfig: {
|
|
6
|
-
readonly jsdoc: true;
|
|
7
6
|
readonly printWidth: 120;
|
|
8
|
-
readonly proseWrap: "never";
|
|
9
7
|
readonly semi: false;
|
|
8
|
+
readonly jsdoc: true;
|
|
9
|
+
readonly proseWrap: "never";
|
|
10
10
|
readonly sortImports: {
|
|
11
11
|
readonly groups: ["builtin", "external", ["subpath", "internal"], ["index", "sibling", "parent"], "side_effect", ["style", "side_effect_style"]];
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxfmt.base.js","names":[],"sources":["../../src/configs/oxfmt.base.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\"\n\nimport { createMergeConfigFn } from \"#/utils.ts\"\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\n\nconst baseConfig = {\n
|
|
1
|
+
{"version":3,"file":"oxfmt.base.js","names":[],"sources":["../../src/configs/oxfmt.base.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\"\n\nimport { createMergeConfigFn } from \"#/utils.ts\"\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\n\nconst baseConfig = {\n printWidth: 120,\n semi: false,\n jsdoc: true,\n proseWrap: \"never\",\n sortImports: {\n groups: [\n \"builtin\",\n \"external\",\n [\"subpath\", \"internal\"],\n [\"index\", \"sibling\", \"parent\"],\n \"side_effect\",\n [\"style\", \"side_effect_style\"],\n ],\n },\n sortTailwindcss: true,\n} as const satisfies OxfmtConfig\n\nexport const oxfmtConfig: OptionalMergeConfigFn<OxfmtConfig, typeof baseConfig> = createMergeConfigFn(baseConfig)\n"],"mappings":";AAuBA,MAAa,cAAqE,oBAAoB;CAjBpG,YAAY;CACZ,MAAM;CACN,OAAO;CACP,WAAW;CACX,aAAa,EACX,QAAQ;EACN;EACA;EACA,CAAC,WAAW,UAAU;EACtB;GAAC;GAAS;GAAW;EAAQ;EAC7B;EACA,CAAC,SAAS,mBAAmB;CAC/B,EACF;CACA,iBAAiB;AAGmF,CAAU"}
|
|
@@ -18,7 +18,7 @@ declare const baseConfig: {
|
|
|
18
18
|
readonly typeCheck: true;
|
|
19
19
|
};
|
|
20
20
|
readonly overrides: [{
|
|
21
|
-
readonly files: ["knip.ts", "oxfmt.config.ts", "oxlint.config.ts", "tsdown.config.ts", "vitest.config.ts"];
|
|
21
|
+
readonly files: ["knip.ts", "oxfmt.config.ts", "oxlint.config.ts", ".release-it.ts", "tsdown.config.ts", "vitest.config.ts"];
|
|
22
22
|
readonly rules: {
|
|
23
23
|
readonly "import/no-default-export": "off";
|
|
24
24
|
};
|
|
@@ -78,11 +78,6 @@ declare const baseConfig: {
|
|
|
78
78
|
readonly "vitest/require-hook": "off";
|
|
79
79
|
readonly "vitest/require-test-timeout": "off";
|
|
80
80
|
};
|
|
81
|
-
readonly settings: {
|
|
82
|
-
readonly vitest: {
|
|
83
|
-
readonly typecheck: true;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
81
|
};
|
|
87
82
|
declare const oxlintConfig: OptionalMergeConfigFn<OxlintConfig, typeof baseConfig>;
|
|
88
83
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxlint.base.d.ts","names":[],"sources":["../../src/configs/oxlint.base.ts"],"mappings":";;;;cAKM,UAAA;EAAA
|
|
1
|
+
{"version":3,"file":"oxlint.base.d.ts","names":[],"sources":["../../src/configs/oxlint.base.ts"],"mappings":";;;;cAKM,UAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiGO,YAAA,EAAc,qBAAA,CAAsB,YAAA,SAAqB,UAAA"}
|
|
@@ -19,6 +19,7 @@ const oxlintConfig = createMergeConfigFn({
|
|
|
19
19
|
"knip.ts",
|
|
20
20
|
"oxfmt.config.ts",
|
|
21
21
|
"oxlint.config.ts",
|
|
22
|
+
".release-it.ts",
|
|
22
23
|
"tsdown.config.ts",
|
|
23
24
|
"vitest.config.ts"
|
|
24
25
|
],
|
|
@@ -87,8 +88,7 @@ const oxlintConfig = createMergeConfigFn({
|
|
|
87
88
|
"vitest/prefer-to-be-truthy": "off",
|
|
88
89
|
"vitest/require-hook": "off",
|
|
89
90
|
"vitest/require-test-timeout": "off"
|
|
90
|
-
}
|
|
91
|
-
settings: { vitest: { typecheck: true } }
|
|
91
|
+
}
|
|
92
92
|
});
|
|
93
93
|
//#endregion
|
|
94
94
|
export { oxlintConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxlint.base.js","names":[],"sources":["../../src/configs/oxlint.base.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\"\n\nimport { createMergeConfigFn } from \"#/utils.ts\"\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\n\nconst baseConfig = {\n categories: {\n correctness: \"error\",\n nursery: \"error\",\n pedantic: \"error\",\n perf: \"error\",\n restriction: \"error\",\n style: \"error\",\n suspicious: \"error\",\n },\n options: {\n reportUnusedDisableDirectives: \"error\",\n typeAware: true,\n typeCheck: true,\n },\n overrides: [\n {\n files: [\"knip.ts\"
|
|
1
|
+
{"version":3,"file":"oxlint.base.js","names":[],"sources":["../../src/configs/oxlint.base.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\"\n\nimport { createMergeConfigFn } from \"#/utils.ts\"\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\n\nconst baseConfig = {\n categories: {\n correctness: \"error\",\n nursery: \"error\",\n pedantic: \"error\",\n perf: \"error\",\n restriction: \"error\",\n style: \"error\",\n suspicious: \"error\",\n },\n options: {\n reportUnusedDisableDirectives: \"error\",\n typeAware: true,\n typeCheck: true,\n },\n overrides: [\n {\n files: [\n \"knip.ts\",\n \"oxfmt.config.ts\",\n \"oxlint.config.ts\",\n \".release-it.ts\",\n \"tsdown.config.ts\",\n \"vitest.config.ts\",\n ],\n rules: {\n \"import/no-default-export\": \"off\",\n },\n },\n ],\n plugins: [\n \"eslint\",\n \"react\",\n \"unicorn\",\n \"typescript\",\n \"oxc\",\n \"import\",\n \"jsdoc\",\n \"vitest\",\n \"jsx-a11y\",\n \"react-perf\",\n \"promise\",\n \"node\",\n ],\n rules: {\n curly: [\"error\", \"multi-or-nest\"],\n \"func-style\": [\"error\", \"expression\"],\n \"node/no-sync\": [\"error\", { ignores: [\"existsSync\", \"spawnSync\"] }],\n \"require-unicode-regexp\": [\"error\", { requireFlag: \"v\" }],\n\n \"capitalized-comments\": \"off\",\n \"id-length\": \"off\",\n \"import/exports-last\": \"off\",\n \"import/group-exports\": \"off\",\n \"import/no-named-export\": \"off\",\n \"import/no-nodejs-modules\": \"off\",\n \"import/prefer-default-export\": \"off\",\n \"init-declarations\": \"off\",\n \"jsdoc/require-param\": \"off\",\n \"jsdoc/require-returns\": \"off\",\n \"max-classes-per-file\": \"off\",\n \"max-lines\": \"off\",\n \"max-lines-per-function\": \"off\",\n \"max-statements\": \"off\",\n \"no-console\": \"off\",\n \"no-continue\": \"off\",\n \"no-duplicate-imports\": \"off\",\n \"no-inline-comments\": \"off\",\n \"no-magic-numbers\": \"off\",\n \"no-plusplus\": \"off\",\n \"no-ternary\": \"off\",\n \"no-undef\": \"off\",\n \"no-undefined\": \"off\",\n \"no-useless-return\": \"off\",\n \"node/callback-return\": \"off\",\n \"oxc/no-optional-chaining\": \"off\",\n \"oxc/no-rest-spread-properties\": \"off\",\n \"sort-imports\": \"off\",\n \"sort-keys\": \"off\",\n \"typescript/consistent-return\": \"off\",\n \"typescript/explicit-function-return-type\": \"off\",\n \"typescript/explicit-module-boundary-types\": \"off\",\n \"typescript/prefer-readonly-parameter-types\": \"off\",\n \"typescript/strict-boolean-expressions\": \"off\",\n \"unicorn/no-array-callback-reference\": \"off\",\n \"unicorn/no-array-method-this-argument\": \"off\",\n \"unicorn/switch-case-braces\": \"off\",\n \"vitest/no-importing-vitest-globals\": \"off\",\n \"vitest/prefer-expect-assertions\": \"off\",\n \"vitest/prefer-lowercase-title\": \"off\",\n \"vitest/prefer-to-be-falsy\": \"off\",\n \"vitest/prefer-to-be-truthy\": \"off\",\n \"vitest/require-hook\": \"off\", // reenable when false positives are fixed?\n \"vitest/require-test-timeout\": \"off\",\n },\n} as const satisfies OxlintConfig\n\nexport const oxlintConfig: OptionalMergeConfigFn<OxlintConfig, typeof baseConfig> = createMergeConfigFn(baseConfig)\n"],"mappings":";AAsGA,MAAa,eAAuE,oBAAoB;CAhGtG,YAAY;EACV,aAAa;EACb,SAAS;EACT,UAAU;EACV,MAAM;EACN,aAAa;EACb,OAAO;EACP,YAAY;CACd;CACA,SAAS;EACP,+BAA+B;EAC/B,WAAW;EACX,WAAW;CACb;CACA,WAAW,CACT;EACE,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;EACF;EACA,OAAO,EACL,4BAA4B,MAC9B;CACF,CACF;CACA,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,OAAO;EACL,OAAO,CAAC,SAAS,eAAe;EAChC,cAAc,CAAC,SAAS,YAAY;EACpC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,cAAc,WAAW,EAAE,CAAC;EAClE,0BAA0B,CAAC,SAAS,EAAE,aAAa,IAAI,CAAC;EAExD,wBAAwB;EACxB,aAAa;EACb,uBAAuB;EACvB,wBAAwB;EACxB,0BAA0B;EAC1B,4BAA4B;EAC5B,gCAAgC;EAChC,qBAAqB;EACrB,uBAAuB;EACvB,yBAAyB;EACzB,wBAAwB;EACxB,aAAa;EACb,0BAA0B;EAC1B,kBAAkB;EAClB,cAAc;EACd,eAAe;EACf,wBAAwB;EACxB,sBAAsB;EACtB,oBAAoB;EACpB,eAAe;EACf,cAAc;EACd,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;EACrB,wBAAwB;EACxB,4BAA4B;EAC5B,iCAAiC;EACjC,gBAAgB;EAChB,aAAa;EACb,gCAAgC;EAChC,4CAA4C;EAC5C,6CAA6C;EAC7C,8CAA8C;EAC9C,yCAAyC;EACzC,uCAAuC;EACvC,yCAAyC;EACzC,8BAA8B;EAC9B,sCAAsC;EACtC,mCAAmC;EACnC,iCAAiC;EACjC,6BAA6B;EAC7B,8BAA8B;EAC9B,uBAAuB;EACvB,+BAA+B;CACjC;AAGsG,CAAU"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OptionalMergeConfigFn } from "../utils.js";
|
|
2
|
+
import { Config } from "release-it";
|
|
3
|
+
|
|
4
|
+
//#region src/configs/release-it.base.d.ts
|
|
5
|
+
declare const baseConfig: {
|
|
6
|
+
readonly git: {
|
|
7
|
+
readonly commitMessage: "release: v${version}";
|
|
8
|
+
readonly tagName: "v${version}";
|
|
9
|
+
readonly tagAnnotation: "version ${version}";
|
|
10
|
+
};
|
|
11
|
+
readonly hooks: {
|
|
12
|
+
readonly "after:bump": "git-cliff --tag ${version} -o";
|
|
13
|
+
};
|
|
14
|
+
readonly github: {
|
|
15
|
+
readonly release: true;
|
|
16
|
+
readonly releaseName: "${version}";
|
|
17
|
+
readonly releaseNotes: "git-cliff --unreleased --tag ${version}";
|
|
18
|
+
};
|
|
19
|
+
readonly npm: {
|
|
20
|
+
readonly publishPackageManager: "bun";
|
|
21
|
+
readonly publishPath: "";
|
|
22
|
+
readonly publishArgs: ["--no-git-checks"];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
declare const releaseItConfig: OptionalMergeConfigFn<Config, typeof baseConfig>;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { releaseItConfig };
|
|
28
|
+
//# sourceMappingURL=release-it.base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-it.base.d.ts","names":[],"sources":["../../src/configs/release-it.base.ts"],"mappings":";;;;cAMM,UAAA;EAAA;;;;;;;;;;;;;;;;;;;cAsBO,eAAA,EAAiB,qBAAA,CAAsB,MAAA,SAAe,UAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createMergeConfigFn } from "../utils.js";
|
|
2
|
+
const releaseItConfig = createMergeConfigFn({
|
|
3
|
+
git: {
|
|
4
|
+
commitMessage: "release: v${version}",
|
|
5
|
+
tagName: "v${version}",
|
|
6
|
+
tagAnnotation: "version ${version}"
|
|
7
|
+
},
|
|
8
|
+
hooks: { "after:bump": "git-cliff --tag ${version} -o" },
|
|
9
|
+
github: {
|
|
10
|
+
release: true,
|
|
11
|
+
releaseName: "${version}",
|
|
12
|
+
releaseNotes: "git-cliff --unreleased --tag ${version}"
|
|
13
|
+
},
|
|
14
|
+
npm: {
|
|
15
|
+
publishPackageManager: "nub",
|
|
16
|
+
publishPath: "",
|
|
17
|
+
publishArgs: ["--no-git-checks"]
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { releaseItConfig };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=release-it.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-it.base.js","names":[],"sources":["../../src/configs/release-it.base.ts"],"sourcesContent":["// oxlint-disable no-template-curly-in-string\nimport type { Config } from \"release-it\"\n\nimport { createMergeConfigFn } from \"#/utils.ts\"\nimport type { OptionalMergeConfigFn } from \"#/utils.ts\"\n\nconst baseConfig = {\n git: {\n commitMessage: \"release: v${version}\",\n tagName: \"v${version}\",\n tagAnnotation: \"version ${version}\",\n },\n hooks: {\n \"after:bump\": \"git-cliff --tag ${version} -o\",\n },\n github: {\n release: true,\n releaseName: \"${version}\",\n releaseNotes: \"git-cliff --unreleased --tag ${version}\",\n },\n npm: {\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion - release-it doesn't support nub directly yet\n publishPackageManager: \"nub\" as \"bun\",\n publishPath: \"\",\n publishArgs: [\"--no-git-checks\"],\n },\n} as const satisfies Config\n\nexport const releaseItConfig: OptionalMergeConfigFn<Config, typeof baseConfig> = createMergeConfigFn(baseConfig)\n"],"mappings":";AA4BA,MAAa,kBAAoE,oBAAoB;CArBnG,KAAK;EACH,eAAe;EACf,SAAS;EACT,eAAe;CACjB;CACA,OAAO,EACL,cAAc,gCAChB;CACA,QAAQ;EACN,SAAS;EACT,aAAa;EACb,cAAc;CAChB;CACA,KAAK;EAEH,uBAAuB;EACvB,aAAa;EACb,aAAa,CAAC,iBAAiB;CACjC;AAGmG,CAAU"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import { tsdownBinConfig, tsdownConfig } from "./configs/tsdown.base.js";
|
|
|
3
3
|
import { oxlintConfig } from "./configs/oxlint.base.js";
|
|
4
4
|
import { oxfmtConfig } from "./configs/oxfmt.base.js";
|
|
5
5
|
import { vitestConfig } from "./configs/vitest.base.js";
|
|
6
|
-
|
|
6
|
+
import { releaseItConfig } from "./configs/release-it.base.js";
|
|
7
|
+
export { knipConfig, oxfmtConfig, oxlintConfig, releaseItConfig, tsdownBinConfig, tsdownConfig, vitestConfig };
|
package/dist/index.js
CHANGED
|
@@ -3,4 +3,5 @@ import { tsdownBinConfig, tsdownConfig } from "./configs/tsdown.base.js";
|
|
|
3
3
|
import { oxlintConfig } from "./configs/oxlint.base.js";
|
|
4
4
|
import { oxfmtConfig } from "./configs/oxfmt.base.js";
|
|
5
5
|
import { vitestConfig } from "./configs/vitest.base.js";
|
|
6
|
-
|
|
6
|
+
import { releaseItConfig } from "./configs/release-it.base.js";
|
|
7
|
+
export { knipConfig, oxfmtConfig, oxlintConfig, releaseItConfig, tsdownBinConfig, tsdownConfig, vitestConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"homepage": "https://github.com/adamhl8/configs",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/adamhl8/configs/issues"
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
|
-
"bundle": "nub run lint && tsdown",
|
|
40
39
|
"lint": "markdown-toc -i --bullets '-' --maxdepth 3 ./README.md && oxfmt && oxlint --fix --fix-suggestions --fix-dangerously && ./src/adamhl8-knip/index.ts",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
40
|
+
"bump-deps": "rm -f lock.yaml && nub update -L && nub ./patch-knip.ts",
|
|
41
|
+
"bundle": "nub run lint && tsdown",
|
|
42
|
+
"release": "nub run bundle && release-it --ci -i \"$(git-cliff --bumped-version | sed 's|^v||')\"",
|
|
43
|
+
"prepare": "lefthook install && nub ./patch-knip.ts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"es-toolkit": "^1.49.0",
|
|
@@ -48,6 +48,9 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@arethetypeswrong/core": "^0.18.4",
|
|
51
|
+
"@commitlint/cli": "^21.1.0",
|
|
52
|
+
"@commitlint/config-conventional": "^21.1.0",
|
|
53
|
+
"@commitlint/types": "^21.1.0",
|
|
51
54
|
"@types/node": "^26.0.1",
|
|
52
55
|
"knip": "^6.23.0",
|
|
53
56
|
"markdown-toc": "^1.2.0",
|
|
@@ -55,6 +58,7 @@
|
|
|
55
58
|
"oxlint": "^1.71.0",
|
|
56
59
|
"oxlint-tsgolint": "^0.23.0",
|
|
57
60
|
"publint": "^0.3.21",
|
|
61
|
+
"release-it": "^20.2.1",
|
|
58
62
|
"tsdown": "^0.22.3",
|
|
59
63
|
"typescript": "^6.0.3",
|
|
60
64
|
"vitest": "^4.1.9"
|