@adamhl8/configs 0.15.7 → 0.15.9
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/bin/adamhl8-knip +0 -1
- package/dist/index.d.ts +13 -13
- package/package.json +5 -5
package/dist/bin/adamhl8-knip
CHANGED
|
@@ -6,7 +6,6 @@ const knipPreprocessorPathExt = await Bun.file(`${baseKnipPreprocessorPath}.ts`)
|
|
|
6
6
|
const knipPreprocessorPath = `${baseKnipPreprocessorPath}${knipPreprocessorPathExt}`;
|
|
7
7
|
process.exitCode = Bun.spawnSync({
|
|
8
8
|
cmd: [
|
|
9
|
-
"bun",
|
|
10
9
|
"knip-bun",
|
|
11
10
|
"--preprocessor",
|
|
12
11
|
knipPreprocessorPath,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import * as type_fest_source_internal_type_js3 from "type-fest/source/internal/type.js";
|
|
2
|
+
import * as type_fest4 from "type-fest";
|
|
3
|
+
import * as type_fest_source_conditional_simplify_js3 from "type-fest/source/conditional-simplify.js";
|
|
4
|
+
import * as type_fest_source_merge_deep_js0 from "type-fest/source/merge-deep.js";
|
|
5
5
|
import { Config } from "prettier";
|
|
6
6
|
import * as tsdown0 from "tsdown";
|
|
7
7
|
|
|
@@ -1164,11 +1164,11 @@ declare const knipConfig: {
|
|
|
1164
1164
|
ignoreUnresolved?: (string | RegExp)[] | undefined;
|
|
1165
1165
|
includeEntryExports?: boolean | undefined;
|
|
1166
1166
|
}> | undefined;
|
|
1167
|
-
}>(userConfig: UserConfig):
|
|
1167
|
+
}>(userConfig: UserConfig): type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<[undefined] extends [{
|
|
1168
1168
|
readonly entry: ["./src/index.ts", "**/*.test.ts", "./tsdown.config.ts"];
|
|
1169
1169
|
readonly project: ["**"];
|
|
1170
1170
|
readonly tsdown: false;
|
|
1171
|
-
} |
|
|
1171
|
+
} | type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object>] ? never : type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object> extends infer T ? T extends type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object> ? T extends type_fest4.UnknownRecord ? type_fest_source_merge_deep_js0.MergeDeepRecord<{
|
|
1172
1172
|
readonly entry: ["./src/index.ts", "**/*.test.ts", "./tsdown.config.ts"];
|
|
1173
1173
|
readonly project: ["**"];
|
|
1174
1174
|
readonly tsdown: false;
|
|
@@ -1176,7 +1176,7 @@ declare const knipConfig: {
|
|
|
1176
1176
|
recurseIntoArrays: false;
|
|
1177
1177
|
spreadTopLevelArrays: true;
|
|
1178
1178
|
arrayMergeMode: "spread";
|
|
1179
|
-
}> : never : never : never,
|
|
1179
|
+
}> : never : never : never, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object>;
|
|
1180
1180
|
};
|
|
1181
1181
|
//#endregion
|
|
1182
1182
|
//#region src/prettier.d.ts
|
|
@@ -1198,7 +1198,7 @@ declare const prettierConfig: {
|
|
|
1198
1198
|
};
|
|
1199
1199
|
}];
|
|
1200
1200
|
};
|
|
1201
|
-
<UserConfig extends Config>(userConfig: UserConfig):
|
|
1201
|
+
<UserConfig extends Config>(userConfig: UserConfig): type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<[undefined] extends [{
|
|
1202
1202
|
readonly printWidth: 120;
|
|
1203
1203
|
readonly semi: false;
|
|
1204
1204
|
readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
|
|
@@ -1214,7 +1214,7 @@ declare const prettierConfig: {
|
|
|
1214
1214
|
readonly parser: "astro";
|
|
1215
1215
|
};
|
|
1216
1216
|
}];
|
|
1217
|
-
} |
|
|
1217
|
+
} | type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object>] ? never : type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object> extends infer T ? T extends type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object> ? T extends type_fest4.UnknownRecord ? type_fest_source_merge_deep_js0.MergeDeepRecord<{
|
|
1218
1218
|
readonly printWidth: 120;
|
|
1219
1219
|
readonly semi: false;
|
|
1220
1220
|
readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
|
|
@@ -1234,7 +1234,7 @@ declare const prettierConfig: {
|
|
|
1234
1234
|
recurseIntoArrays: false;
|
|
1235
1235
|
spreadTopLevelArrays: true;
|
|
1236
1236
|
arrayMergeMode: "spread";
|
|
1237
|
-
}> : never : never : never,
|
|
1237
|
+
}> : never : never : never, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object>;
|
|
1238
1238
|
};
|
|
1239
1239
|
//#endregion
|
|
1240
1240
|
//#region src/tsdown.d.ts
|
|
@@ -1258,7 +1258,7 @@ declare const tsdownConfig: {
|
|
|
1258
1258
|
readonly publint: true;
|
|
1259
1259
|
readonly failOnWarn: true;
|
|
1260
1260
|
};
|
|
1261
|
-
<UserConfig extends tsdown0.UserConfig>(userConfig: UserConfig):
|
|
1261
|
+
<UserConfig extends tsdown0.UserConfig>(userConfig: UserConfig): type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<[undefined] extends [{
|
|
1262
1262
|
readonly entry: ["./src/index.ts"];
|
|
1263
1263
|
readonly unbundle: true;
|
|
1264
1264
|
readonly target: false;
|
|
@@ -1276,7 +1276,7 @@ declare const tsdownConfig: {
|
|
|
1276
1276
|
};
|
|
1277
1277
|
readonly publint: true;
|
|
1278
1278
|
readonly failOnWarn: true;
|
|
1279
|
-
} |
|
|
1279
|
+
} | type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object>] ? never : type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object> extends infer T ? T extends type_fest_source_conditional_simplify_js3.ConditionalSimplifyDeep<UserConfig, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object> ? T extends type_fest4.UnknownRecord ? type_fest_source_merge_deep_js0.MergeDeepRecord<{
|
|
1280
1280
|
readonly entry: ["./src/index.ts"];
|
|
1281
1281
|
readonly unbundle: true;
|
|
1282
1282
|
readonly target: false;
|
|
@@ -1298,7 +1298,7 @@ declare const tsdownConfig: {
|
|
|
1298
1298
|
recurseIntoArrays: false;
|
|
1299
1299
|
spreadTopLevelArrays: true;
|
|
1300
1300
|
arrayMergeMode: "spread";
|
|
1301
|
-
}> : never : never : never,
|
|
1301
|
+
}> : never : never : never, type_fest_source_internal_type_js3.NonRecursiveType | Set<unknown> | Map<unknown, unknown> | type_fest4.UnknownArray, object>;
|
|
1302
1302
|
};
|
|
1303
1303
|
//#endregion
|
|
1304
1304
|
export { knipConfig, prettierConfig, tsdownConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"import": "./dist/index.js"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"bin": {
|
|
28
|
+
"adamhl8-knip": "dist/bin/adamhl8-knip"
|
|
29
29
|
},
|
|
30
30
|
"files": ["dist/"],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"bundle": "bun lint &&
|
|
33
|
-
"lint": "bun generate-biome-rules.ts && tsc --noEmit && biome check --write &&
|
|
32
|
+
"bundle": "bun lint && tsdown",
|
|
33
|
+
"lint": "bun generate-biome-rules.ts && tsc --noEmit && biome check --write && ./src/bin/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"
|