@adamhl8/configs 0.14.2 → 0.14.4

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/index.d.ts CHANGED
@@ -1,54 +1,108 @@
1
- import { KnipConfig } from "knip";
2
- import { Config } from "prettier";
3
- import { UserConfig } from "tsdown";
4
-
5
1
  //#region src/knip.d.ts
6
- declare const knipConfig: <T extends KnipConfig>(config: T) => {
7
- readonly entry: ["./src/index.ts", "**/*.test.ts"];
8
- readonly project: ["**"];
9
- readonly tsdown: false;
10
- readonly treatConfigHintsAsErrors: true;
11
- } & T;
2
+ declare const knipConfig: {
3
+ (): {
4
+ readonly entry: ["./src/index.ts", "**/*.test.ts"];
5
+ readonly project: ["**"];
6
+ readonly tsdown: false;
7
+ };
8
+ <S extends {
9
+ [x: string]: unknown;
10
+ [x: number]: unknown;
11
+ [x: symbol]: unknown;
12
+ }>(userConfig: S): {
13
+ readonly entry: ["./src/index.ts", "**/*.test.ts"];
14
+ readonly project: ["**"];
15
+ readonly tsdown: false;
16
+ } & S;
17
+ };
12
18
  //#endregion
13
19
  //#region src/prettier.d.ts
14
- declare const prettierConfig: <T extends Config>(config: T) => {
15
- readonly printWidth: 120;
16
- readonly semi: false;
17
- readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
18
- readonly tailwindStylesheet: "./src/global.css";
19
- readonly overrides: [{
20
- readonly files: "*.jsonc";
21
- readonly options: {
22
- readonly trailingComma: "none";
23
- };
24
- }, {
25
- readonly files: "*.astro";
26
- readonly options: {
27
- readonly parser: "astro";
28
- };
29
- }];
30
- } & T;
20
+ declare const prettierConfig: {
21
+ (): {
22
+ readonly printWidth: 120;
23
+ readonly semi: false;
24
+ readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
25
+ readonly tailwindStylesheet: "./src/global.css";
26
+ readonly overrides: [{
27
+ readonly files: "*.jsonc";
28
+ readonly options: {
29
+ readonly trailingComma: "none";
30
+ };
31
+ }, {
32
+ readonly files: "*.astro";
33
+ readonly options: {
34
+ readonly parser: "astro";
35
+ };
36
+ }];
37
+ };
38
+ <S extends {
39
+ [x: string]: unknown;
40
+ [x: number]: unknown;
41
+ [x: symbol]: unknown;
42
+ }>(userConfig: S): {
43
+ readonly printWidth: 120;
44
+ readonly semi: false;
45
+ readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
46
+ readonly tailwindStylesheet: "./src/global.css";
47
+ readonly overrides: [{
48
+ readonly files: "*.jsonc";
49
+ readonly options: {
50
+ readonly trailingComma: "none";
51
+ };
52
+ }, {
53
+ readonly files: "*.astro";
54
+ readonly options: {
55
+ readonly parser: "astro";
56
+ };
57
+ }];
58
+ } & S;
59
+ };
31
60
  //#endregion
32
61
  //#region src/tsdown.d.ts
33
- declare const tsdownConfig: <T extends UserConfig>(config: T) => {
34
- readonly entry: ["./src/index.ts"];
35
- readonly unbundle: true;
36
- readonly target: false;
37
- readonly platform: "neutral";
38
- readonly minify: "dce-only";
39
- readonly sourcemap: true;
40
- readonly dts: {
41
- readonly newContext: true;
62
+ declare const tsdownConfig: {
63
+ (): {
64
+ readonly entry: ["./src/index.ts"];
65
+ readonly unbundle: true;
66
+ readonly target: false;
67
+ readonly platform: "neutral";
68
+ readonly minify: "dce-only";
42
69
  readonly sourcemap: true;
70
+ readonly dts: {
71
+ readonly newContext: true;
72
+ readonly sourcemap: true;
73
+ };
74
+ readonly attw: {
75
+ readonly level: "error";
76
+ readonly profile: "esmOnly";
77
+ };
78
+ readonly publint: true;
79
+ readonly logLevel: "warn";
80
+ readonly failOnWarn: true;
43
81
  };
44
- readonly attw: {
45
- readonly level: "error";
46
- readonly profile: "esmOnly";
47
- };
48
- readonly publint: true;
49
- readonly logLevel: "warn";
50
- readonly failOnWarn: true;
51
- } & T;
82
+ <S extends {
83
+ [x: string]: unknown;
84
+ [x: number]: unknown;
85
+ [x: symbol]: unknown;
86
+ }>(userConfig: S): {
87
+ readonly entry: ["./src/index.ts"];
88
+ readonly unbundle: true;
89
+ readonly target: false;
90
+ readonly platform: "neutral";
91
+ readonly minify: "dce-only";
92
+ readonly sourcemap: true;
93
+ readonly dts: {
94
+ readonly newContext: true;
95
+ readonly sourcemap: true;
96
+ };
97
+ readonly attw: {
98
+ readonly level: "error";
99
+ readonly profile: "esmOnly";
100
+ };
101
+ readonly publint: true;
102
+ readonly logLevel: "warn";
103
+ readonly failOnWarn: true;
104
+ } & S;
105
+ };
52
106
  //#endregion
53
107
  export { knipConfig, prettierConfig, tsdownConfig };
54
108
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/knip.ts","../src/prettier.ts","../src/tsdown.ts"],"sourcesContent":[],"mappings":";;;;;cAiBa,uBAAwB,oBAAoB;;;;EAA5C,SAAA,wBAA6F,EAAA,IAAA;CAAA,IAAA;;;cCiB7F,2BAA4B,gBAAgB;;;;EDjB5C,SAAA,kBAA6F,EAAA,kBAAA;EAAA,SAAA,SAAA,EAAA,CAAA;IAArE,SAAA,KAAA,EAAA,SAAA;IAAoB,SAAA,OAAA,EAAA;;IAAiD,CAAA;;;;MCiB7F,SAA6F,MAAA,EAAA,OAAA;IAAA,CAAA;;;;;cCR7F,yBAA0B,oBAAoB;;;;EFT9C,SAAA,QAA6F,EAAA,SAAA;EAAA,SAAA,MAAA,EAAA,UAAA;WAArE,SAAA,EAAA,IAAA;WAAoB,GAAA,EAAA;;IAAiD,SAAA,SAAA,EAAA,IAAA;;;;ICiB7F,SAAA,OAA6F,EAAA,SAAA;EAAA,CAAA;WAAjE,OAAA,EAAA,IAAA;WAAgB,QAAA,EAAA,MAAA;;CAAiD,IAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/knip.ts","../src/prettier.ts","../src/tsdown.ts"],"sourcesContent":[],"mappings":";cAea;EAAA,EAAA,EAAA;IAA4C,SAAA,KAAA,EAAA,CAAA,gBAAA,EAAA,cAAA,CAAA;;;;;;;ICkB5C,CAAA,CAAA,EAAA,MAAA,CAAA,EAAgD,OAAA;EAAA,CAAA,CAAA,CAAA,UAAA,GAAA,CAAA,EAAA;;;;;;;;cAAhD;EDlBA,EAAA,EAAA;IAA4C,SAAA,UAAA,EAAA,GAAA;;;;;;;QCkB5C,SAAgD,aAAA,EAAA,MAAA;MAAA,CAAA;;;;;;;ECRhD,CAAA;EAA8C,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;cAA9C;EFVA,EAAA,EAAA;IAA4C,SAAA,KAAA,EAAA,CAAA,gBAAA,CAAA;;;;;;;MCkB5C,SAAgD,UAAA,EAAA,IAAA;MAAA,SAAA,SAAA,EAAA,IAAA;;;;;;;ICRhD,SAAA,QAA8C,EAAA,MAAA;IAAA,SAAA,UAAA,EAAA,IAAA"}
package/dist/index.js CHANGED
@@ -4,30 +4,36 @@ function isUnsafeProperty(key) {
4
4
  function isObjectLike(value) {
5
5
  return typeof value === "object" && value !== null;
6
6
  }
7
- function mergeWith(target, source, merge) {
7
+ function mergeWith(target, source, merge$1) {
8
8
  const sourceKeys = Object.keys(source);
9
9
  for (let i = 0; i < sourceKeys.length; i++) {
10
10
  const key = sourceKeys[i];
11
11
  if (isUnsafeProperty(key)) continue;
12
12
  const sourceValue = source[key];
13
13
  const targetValue = target[key];
14
- const merged = merge(targetValue, sourceValue, key, target, source);
14
+ const merged = merge$1(targetValue, sourceValue, key, target, source);
15
15
  if (merged !== void 0) target[key] = merged;
16
- else if (Array.isArray(sourceValue)) target[key] = mergeWith(targetValue ?? [], sourceValue, merge);
17
- else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) target[key] = mergeWith(targetValue ?? {}, sourceValue, merge);
16
+ else if (Array.isArray(sourceValue)) target[key] = mergeWith(targetValue ?? [], sourceValue, merge$1);
17
+ else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) target[key] = mergeWith(targetValue ?? {}, sourceValue, merge$1);
18
18
  else if (targetValue === void 0 || sourceValue !== void 0) target[key] = sourceValue;
19
19
  }
20
20
  return target;
21
21
  }
22
- const concatArrays = (objValue, srcValue) => Array.isArray(objValue) ? objValue.concat(srcValue) : void 0;
23
- const baseConfig$2 = {
22
+ function merge(target, source) {
23
+ return mergeWith(target, source, (objValue, srcValue) => Array.isArray(objValue) ? objValue.concat(srcValue) : void 0);
24
+ }
25
+ function createMergeConfigFn(baseConfig$3) {
26
+ function mergeConfig(userConfig) {
27
+ return userConfig ? merge(baseConfig$3, userConfig) : baseConfig$3;
28
+ }
29
+ return mergeConfig;
30
+ }
31
+ const knipConfig = createMergeConfigFn({
24
32
  entry: ["./src/index.ts", "**/*.test.ts"],
25
33
  project: ["**"],
26
- tsdown: false,
27
- treatConfigHintsAsErrors: true
28
- };
29
- const knipConfig = (config) => mergeWith(baseConfig$2, config, concatArrays);
30
- const baseConfig$1 = {
34
+ tsdown: false
35
+ });
36
+ const prettierConfig = createMergeConfigFn({
31
37
  printWidth: 120,
32
38
  semi: false,
33
39
  plugins: [
@@ -45,9 +51,8 @@ const baseConfig$1 = {
45
51
  files: "*.astro",
46
52
  options: { parser: "astro" }
47
53
  }]
48
- };
49
- const prettierConfig = (config) => mergeWith(baseConfig$1, config, concatArrays);
50
- const baseConfig = {
54
+ });
55
+ const tsdownConfig = createMergeConfigFn({
51
56
  entry: ["./src/index.ts"],
52
57
  unbundle: true,
53
58
  target: false,
@@ -65,8 +70,7 @@ const baseConfig = {
65
70
  publint: true,
66
71
  logLevel: "warn",
67
72
  failOnWarn: true
68
- };
69
- const tsdownConfig = (config) => mergeWith(baseConfig, config, concatArrays);
73
+ });
70
74
  export { knipConfig, prettierConfig, tsdownConfig };
71
75
 
72
76
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["baseConfig","baseConfig"],"sources":["../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs","../node_modules/es-toolkit/dist/object/mergeWith.mjs","../src/utils.ts","../src/knip.ts","../src/prettier.ts","../src/tsdown.ts"],"sourcesContent":["function isUnsafeProperty(key) {\n return key === '__proto__';\n}\n\nexport { isUnsafeProperty };\n","function isObjectLike(value) {\n return typeof value === 'object' && value !== null;\n}\n\nexport { isObjectLike };\n","import { isUnsafeProperty } from '../_internal/isUnsafeProperty.mjs';\nimport { isObjectLike } from '../compat/predicate/isObjectLike.mjs';\n\nfunction mergeWith(target, source, merge) {\n const sourceKeys = Object.keys(source);\n for (let i = 0; i < sourceKeys.length; i++) {\n const key = sourceKeys[i];\n if (isUnsafeProperty(key)) {\n continue;\n }\n const sourceValue = source[key];\n const targetValue = target[key];\n const merged = merge(targetValue, sourceValue, key, target, source);\n if (merged !== undefined) {\n target[key] = merged;\n }\n else if (Array.isArray(sourceValue)) {\n target[key] = mergeWith(targetValue ?? [], sourceValue, merge);\n }\n else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) {\n target[key] = mergeWith(targetValue ?? {}, sourceValue, merge);\n }\n else if (targetValue === undefined || sourceValue !== undefined) {\n target[key] = sourceValue;\n }\n }\n return target;\n}\n\nexport { mergeWith };\n","/**\n * A custom merge function for es-toolkit's `mergeWith` that concatenates arrays.\n */\nexport const concatArrays = (objValue: unknown, srcValue: unknown) =>\n Array.isArray(objValue) ? objValue.concat(srcValue) : undefined\n","import { mergeWith } from \"es-toolkit\"\nimport type { KnipConfig } from \"knip\"\n\n// biome-ignore lint/plugin: ignore\nimport { concatArrays } 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\nconst baseConfig = {\n entry: [\"./src/index.ts\", \"**/*.test.ts\"],\n project: [\"**\"],\n tsdown: false,\n treatConfigHintsAsErrors: true,\n} as const satisfies KnipConfig\n\nexport const knipConfig = <T extends KnipConfig>(config: T) => mergeWith(baseConfig, config, concatArrays)\n","import { mergeWith } from \"es-toolkit\"\nimport type { Config } from \"prettier\"\n\n// biome-ignore lint/plugin: ignore\nimport { concatArrays } from \"./utils.ts\"\n\nconst baseConfig = {\n printWidth: 120,\n semi: false,\n plugins: [\n \"@prettier/plugin-xml\",\n \"prettier-plugin-sh\",\n \"prettier-plugin-toml\",\n \"prettier-plugin-astro\",\n \"prettier-plugin-tailwindcss\",\n ],\n tailwindStylesheet: \"./src/global.css\",\n overrides: [\n {\n // https://github.com/prettier/prettier/issues/15956\n files: \"*.jsonc\",\n options: {\n trailingComma: \"none\",\n },\n },\n {\n files: \"*.astro\",\n options: {\n parser: \"astro\",\n },\n },\n ],\n} as const satisfies Config\n\nexport const prettierConfig = <T extends Config>(config: T) => mergeWith(baseConfig, config, concatArrays)\n","import { mergeWith } from \"es-toolkit\"\nimport type { UserConfig } from \"tsdown\"\n\n// biome-ignore lint/plugin: ignore\nimport { concatArrays } from \"./utils.ts\"\n\nconst baseConfig = {\n entry: [\"./src/index.ts\"],\n unbundle: true,\n target: false,\n platform: \"neutral\",\n minify: \"dce-only\",\n sourcemap: true,\n dts: {\n newContext: true,\n sourcemap: true,\n },\n attw: {\n level: \"error\",\n profile: \"esmOnly\",\n },\n publint: true,\n logLevel: \"warn\",\n failOnWarn: true,\n} as const satisfies UserConfig\n\nexport const tsdownConfig = <T extends UserConfig>(config: T) => mergeWith(baseConfig, config, concatArrays)\n"],"x_google_ignoreList":[0,1,2],"mappings":"AAAA,SAAS,iBAAiB,KAAK;AAC3B,QAAO,QAAQ;;ACDnB,SAAS,aAAa,OAAO;AACzB,QAAO,OAAO,UAAU,YAAY,UAAU;;ACElD,SAAS,UAAU,QAAQ,QAAQ,OAAO;CACtC,MAAM,aAAa,OAAO,KAAK,OAAO;AACtC,MAAK,IAAI,IAAI,GAAG,IAAI,WAAW,QAAQ,KAAK;EACxC,MAAM,MAAM,WAAW;AACvB,MAAI,iBAAiB,IAAI,CACrB;EAEJ,MAAM,cAAc,OAAO;EAC3B,MAAM,cAAc,OAAO;EAC3B,MAAM,SAAS,MAAM,aAAa,aAAa,KAAK,QAAQ,OAAO;AACnE,MAAI,WAAW,KAAA,EACX,QAAO,OAAO;WAET,MAAM,QAAQ,YAAY,CAC/B,QAAO,OAAO,UAAU,eAAe,EAAE,EAAE,aAAa,MAAM;WAEzD,aAAa,YAAY,IAAI,aAAa,YAAY,CAC3D,QAAO,OAAO,UAAU,eAAe,EAAE,EAAE,aAAa,MAAM;WAEzD,gBAAgB,KAAA,KAAa,gBAAgB,KAAA,EAClD,QAAO,OAAO;;AAGtB,QAAO;;ACvBX,MAAa,gBAAgB,UAAmB,aAC9C,MAAM,QAAQ,SAAS,GAAG,SAAS,OAAO,SAAS,GAAG,KAAA;ACMxD,MAAMC,eAAa;CACjB,OAAO,CAAC,kBAAkB,eAAe;CACzC,SAAS,CAAC,KAAK;CACf,QAAQ;CACR,0BAA0B;CAC3B;AAED,MAAa,cAAoC,WAAc,UAAUA,cAAY,QAAQ,aAAa;ACX1G,MAAMA,eAAa;CACjB,YAAY;CACZ,MAAM;CACN,SAAS;EACP;EACA;EACA;EACA;EACA;EACD;CACD,oBAAoB;CACpB,WAAW,CACT;EAEE,OAAO;EACP,SAAS,EACP,eAAe,QAChB;EACF,EACD;EACE,OAAO;EACP,SAAS,EACP,QAAQ,SACT;EACF,CACF;CACF;AAED,MAAa,kBAAoC,WAAc,UAAUA,cAAY,QAAQ,aAAa;AC5B1G,MAAM,aAAa;CACjB,OAAO,CAAC,iBAAiB;CACzB,UAAU;CACV,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,WAAW;CACX,KAAK;EACH,YAAY;EACZ,WAAW;EACZ;CACD,MAAM;EACJ,OAAO;EACP,SAAS;EACV;CACD,SAAS;CACT,UAAU;CACV,YAAY;CACb;AAED,MAAa,gBAAsC,WAAc,UAAU,YAAY,QAAQ,aAAa"}
1
+ {"version":3,"file":"index.js","names":["merge","baseConfig","baseConfig","baseConfig"],"sources":["../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs","../node_modules/es-toolkit/dist/object/mergeWith.mjs","../src/utils.ts","../src/knip.ts","../src/prettier.ts","../src/tsdown.ts"],"sourcesContent":["function isUnsafeProperty(key) {\n return key === '__proto__';\n}\n\nexport { isUnsafeProperty };\n","function isObjectLike(value) {\n return typeof value === 'object' && value !== null;\n}\n\nexport { isObjectLike };\n","import { isUnsafeProperty } from '../_internal/isUnsafeProperty.mjs';\nimport { isObjectLike } from '../compat/predicate/isObjectLike.mjs';\n\nfunction mergeWith(target, source, merge) {\n const sourceKeys = Object.keys(source);\n for (let i = 0; i < sourceKeys.length; i++) {\n const key = sourceKeys[i];\n if (isUnsafeProperty(key)) {\n continue;\n }\n const sourceValue = source[key];\n const targetValue = target[key];\n const merged = merge(targetValue, sourceValue, key, target, source);\n if (merged !== undefined) {\n target[key] = merged;\n }\n else if (Array.isArray(sourceValue)) {\n target[key] = mergeWith(targetValue ?? [], sourceValue, merge);\n }\n else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) {\n target[key] = mergeWith(targetValue ?? {}, sourceValue, merge);\n }\n else if (targetValue === undefined || sourceValue !== undefined) {\n target[key] = sourceValue;\n }\n }\n return target;\n}\n\nexport { mergeWith };\n","import { mergeWith } from \"es-toolkit\"\n\ntype AnyObj = Record<PropertyKey, unknown>\n\n/**\n * A wrapper around es-toolkit's `mergeWith` with a custom merge function that concatenates arrays.\n */\nexport function merge<T extends AnyObj, S extends AnyObj>(target: T, source: S) {\n return mergeWith(target, source, (objValue: unknown, srcValue: unknown) =>\n Array.isArray(objValue) ? objValue.concat(srcValue) : undefined,\n )\n}\n\n/**\n * Creates a config merge function with proper type overloads for merging with a base config.\n */\nexport function createMergeConfigFn<T extends AnyObj>(baseConfig: T) {\n function mergeConfig(): T\n function mergeConfig<S extends AnyObj>(userConfig: S): T & S\n function mergeConfig<S extends AnyObj>(userConfig?: S) {\n return userConfig ? merge(baseConfig, userConfig) : baseConfig\n }\n return mergeConfig\n}\n","import type { KnipConfig } from \"knip\"\n\n// biome-ignore lint/plugin: ignore\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\nconst baseConfig = {\n entry: [\"./src/index.ts\", \"**/*.test.ts\"],\n project: [\"**\"],\n tsdown: false,\n} as const satisfies KnipConfig\n\nexport const knipConfig = createMergeConfigFn(baseConfig)\n","import type { Config } from \"prettier\"\n\n// biome-ignore lint/plugin: ignore\nimport { createMergeConfigFn } from \"./utils.ts\"\n\nconst baseConfig = {\n printWidth: 120,\n semi: false,\n plugins: [\n \"@prettier/plugin-xml\",\n \"prettier-plugin-sh\",\n \"prettier-plugin-toml\",\n \"prettier-plugin-astro\",\n \"prettier-plugin-tailwindcss\",\n ],\n tailwindStylesheet: \"./src/global.css\",\n overrides: [\n {\n // https://github.com/prettier/prettier/issues/15956\n files: \"*.jsonc\",\n options: {\n trailingComma: \"none\",\n },\n },\n {\n files: \"*.astro\",\n options: {\n parser: \"astro\",\n },\n },\n ],\n} as const satisfies Config\n\nexport const prettierConfig = createMergeConfigFn(baseConfig)\n","import type { UserConfig } from \"tsdown\"\n\n// biome-ignore lint/plugin: ignore\nimport { createMergeConfigFn } from \"./utils.ts\"\n\nconst baseConfig = {\n entry: [\"./src/index.ts\"],\n unbundle: true,\n target: false,\n platform: \"neutral\",\n minify: \"dce-only\",\n sourcemap: true,\n dts: {\n newContext: true,\n sourcemap: true,\n },\n attw: {\n level: \"error\",\n profile: \"esmOnly\",\n },\n publint: true,\n logLevel: \"warn\",\n failOnWarn: true,\n} as const satisfies UserConfig\n\nexport const tsdownConfig = createMergeConfigFn(baseConfig)\n"],"x_google_ignoreList":[0,1,2],"mappings":"AAAA,SAAS,iBAAiB,KAAK;AAC3B,QAAO,QAAQ;;ACDnB,SAAS,aAAa,OAAO;AACzB,QAAO,OAAO,UAAU,YAAY,UAAU;;ACElD,SAAS,UAAU,QAAQ,QAAQ,SAAO;CACtC,MAAM,aAAa,OAAO,KAAK,OAAO;AACtC,MAAK,IAAI,IAAI,GAAG,IAAI,WAAW,QAAQ,KAAK;EACxC,MAAM,MAAM,WAAW;AACvB,MAAI,iBAAiB,IAAI,CACrB;EAEJ,MAAM,cAAc,OAAO;EAC3B,MAAM,cAAc,OAAO;EAC3B,MAAM,SAASA,QAAM,aAAa,aAAa,KAAK,QAAQ,OAAO;AACnE,MAAI,WAAW,KAAA,EACX,QAAO,OAAO;WAET,MAAM,QAAQ,YAAY,CAC/B,QAAO,OAAO,UAAU,eAAe,EAAE,EAAE,aAAaA,QAAM;WAEzD,aAAa,YAAY,IAAI,aAAa,YAAY,CAC3D,QAAO,OAAO,UAAU,eAAe,EAAE,EAAE,aAAaA,QAAM;WAEzD,gBAAgB,KAAA,KAAa,gBAAgB,KAAA,EAClD,QAAO,OAAO;;AAGtB,QAAO;;ACnBX,SAAgB,MAA0C,QAAW,QAAW;AAC9E,QAAO,UAAU,QAAQ,SAAS,UAAmB,aACnD,MAAM,QAAQ,SAAS,GAAG,SAAS,OAAO,SAAS,GAAG,KAAA,EACvD;;AAMH,SAAgB,oBAAsC,cAAe;CAGnE,SAAS,YAA8B,YAAgB;AACrD,SAAO,aAAa,MAAMG,cAAY,WAAW,GAAGA;;AAEtD,QAAO;;ACPT,MAAa,aAAa,oBANP;CACjB,OAAO,CAAC,kBAAkB,eAAe;CACzC,SAAS,CAAC,KAAK;CACf,QAAQ;CACT,CAEwD;ACkBzD,MAAa,iBAAiB,oBA5BX;CACjB,YAAY;CACZ,MAAM;CACN,SAAS;EACP;EACA;EACA;EACA;EACA;EACD;CACD,oBAAoB;CACpB,WAAW,CACT;EAEE,OAAO;EACP,SAAS,EACP,eAAe,QAChB;EACF,EACD;EACE,OAAO;EACP,SAAS,EACP,QAAQ,SACT;EACF,CACF;CACF,CAE4D;ACR7D,MAAa,eAAe,oBApBT;CACjB,OAAO,CAAC,iBAAiB;CACzB,UAAU;CACV,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,WAAW;CACX,KAAK;EACH,YAAY;EACZ,WAAW;EACZ;CACD,MAAM;EACJ,OAAO;EACP,SAAS;EACV;CACD,SAAS;CACT,UAAU;CACV,YAAY;CACb,CAE0D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamhl8/configs",
3
- "version": "0.14.2",
3
+ "version": "0.14.4",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,6 +48,7 @@
48
48
  "prettier": "^3.6.2",
49
49
  "publint": "^0.3.12",
50
50
  "tsdown": "^0.15.0",
51
+ "type-fest": "^4.41.0",
51
52
  "typescript": "^5.9.2"
52
53
  },
53
54
  "publishConfig": {