@adamhl8/configs 0.15.13 → 0.15.15

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/adamhl8-knip CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
  import path from "node:path";
3
3
  import process from "node:process";
4
- const baseKnipPreprocessorPath = `${path.resolve(import.meta.dir, "../knip-preprocessor")}`;
4
+ const baseKnipPreprocessorPath = `${path.resolve(import.meta.dir, "./knip-preprocessor")}`;
5
5
  const knipPreprocessorPathExt = await Bun.file(`${baseKnipPreprocessorPath}.ts`).exists() ? ".ts" : ".js";
6
6
  const knipPreprocessorPath = `${baseKnipPreprocessorPath}${knipPreprocessorPathExt}`;
7
7
  process.exitCode = Bun.spawnSync({
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { knipConfig } from "./knip.js";
2
2
  import { prettierConfig } from "./prettier.js";
3
- import { tsdownConfig } from "./tsdown.js";
4
- export { knipConfig, prettierConfig, tsdownConfig };
3
+ import { tsdownBinConfig, tsdownConfig } from "./tsdown.js";
4
+ export { knipConfig, prettierConfig, tsdownBinConfig, tsdownConfig };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { knipConfig } from "./knip.js";
2
2
  import { prettierConfig } from "./prettier.js";
3
- import { tsdownConfig } from "./tsdown.js";
4
- export { knipConfig, prettierConfig, tsdownConfig };
3
+ import { tsdownBinConfig, tsdownConfig } from "./tsdown.js";
4
+ export { knipConfig, prettierConfig, tsdownBinConfig, tsdownConfig };
package/dist/tsdown.d.ts CHANGED
@@ -21,7 +21,25 @@ declare const baseConfig: {
21
21
  readonly publint: true;
22
22
  readonly failOnWarn: true;
23
23
  };
24
+ declare const binConfig: {
25
+ readonly entry: [];
26
+ readonly platform: "node";
27
+ readonly outExtensions: () => {
28
+ js: string;
29
+ };
30
+ readonly copy: [];
31
+ readonly unbundle: false;
32
+ readonly sourcemap: false;
33
+ readonly dts: false;
34
+ readonly attw: false;
35
+ readonly publint: false;
36
+ readonly target: false;
37
+ readonly minify: "dce-only";
38
+ readonly hash: false;
39
+ readonly failOnWarn: true;
40
+ };
24
41
  declare const tsdownConfig: MergeConfigFn<UserConfig, typeof baseConfig>;
42
+ declare const tsdownBinConfig: MergeConfigFn<UserConfig, typeof binConfig>;
25
43
  //#endregion
26
- export { tsdownConfig };
44
+ export { tsdownBinConfig, tsdownConfig };
27
45
  //# sourceMappingURL=tsdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsdown.d.ts","names":[],"sources":["../src/tsdown.ts"],"sourcesContent":[],"mappings":";;;;cAOM;;EAAA,SAAA,QAkByB,EAAA,IAAA;EAelB,SAAA,MAA4F,EAAA,KAAA;EAAA,SAAA,QAAA,EAAA,SAAA;WAAhE,MAAA,EAAA,UAAA;WAAmB,SAAA,EAAA,IAAA;WAAjC,IAAA,EAAA,KAAA;EAAa,SAAA,GAAA,EAAA;;;;;;;;;;;cAA3B,cAAc,cAAc,mBAAmB"}
1
+ {"version":3,"file":"tsdown.d.ts","names":[],"sources":["../src/tsdown.ts"],"sourcesContent":[],"mappings":";;;;cAOM;;EAAA,SAAA,QAkByB,EAAA,IAAA;EAEzB,SAAA,MAWyB,EAAA,KAAA;EAElB,SAAA,QAA4F,EAAA,SAAA;EAAA,SAAA,MAAA,EAAA,UAAA;WAAhE,SAAA,EAAA,IAAA;WAAmB,IAAA,EAAA,KAAA;WAAjC,GAAA,EAAA;IAAa,SAAA,UAAA,EAAA,IAAA;IAC3B,SAAA,SAA6F,EAAA,IAAA;EAAA,CAAA;WAA9D,IAAA,EAAA;IAAmB,SAAA,KAAA,EAAA,OAAA;IAAjC,SAAA,OAAA,EAAA,SAAA;EAAa,CAAA;;;;cAdrC;;;;;;;;;;;;;;;;;cAaO,cAAc,cAAc,mBAAmB;cAC/C,iBAAiB,cAAc,mBAAmB"}
package/dist/tsdown.js CHANGED
@@ -31,7 +31,7 @@ const binConfig = {
31
31
  publint: false
32
32
  };
33
33
  const tsdownConfig = createMergeConfigFn(baseConfig);
34
- createMergeConfigFn(binConfig);
35
- export { tsdownConfig };
34
+ const tsdownBinConfig = createMergeConfigFn(binConfig);
35
+ export { tsdownBinConfig, tsdownConfig };
36
36
 
37
37
  //# sourceMappingURL=tsdown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsdown.js","names":["tsdownConfig: MergeConfigFn<UserConfig, typeof baseConfig>","tsdownBinConfig: MergeConfigFn<UserConfig, typeof binConfig>"],"sources":["../src/tsdown.ts"],"sourcesContent":["import type { UserConfig } from \"tsdown\"\n\n// biome-ignore lint/plugin: ignore\nimport type { MergeConfigFn } from \"./utils.ts\"\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 hash: false,\n dts: {\n newContext: true,\n sourcemap: true,\n },\n attw: {\n level: \"error\",\n profile: \"esmOnly\",\n },\n publint: true,\n failOnWarn: true,\n} as const satisfies UserConfig\n\nconst binConfig = {\n ...baseConfig,\n entry: [],\n platform: \"node\",\n outExtensions: () => ({ js: \"\" }),\n copy: [],\n unbundle: false,\n sourcemap: false,\n dts: false,\n attw: false,\n publint: false,\n} as const satisfies UserConfig\n\nexport const tsdownConfig: MergeConfigFn<UserConfig, typeof baseConfig> = createMergeConfigFn(baseConfig)\nexport const tsdownBinConfig: MergeConfigFn<UserConfig, typeof binConfig> = createMergeConfigFn(binConfig)\n"],"mappings":";AAOA,MAAM,aAAa;CACjB,OAAO,CAAC,iBAAiB;CACzB,UAAU;CACV,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,WAAW;CACX,MAAM;CACN,KAAK;EACH,YAAY;EACZ,WAAW;EACZ;CACD,MAAM;EACJ,OAAO;EACP,SAAS;EACV;CACD,SAAS;CACT,YAAY;CACb;AAED,MAAM,YAAY;CAChB,GAAG;CACH,OAAO,EAAE;CACT,UAAU;CACV,sBAAsB,EAAE,IAAI,IAAI;CAChC,MAAM,EAAE;CACR,UAAU;CACV,WAAW;CACX,KAAK;CACL,MAAM;CACN,SAAS;CACV;AAED,MAAaA,eAA6D,oBAAoB,WAAW;AAC7B,oBAAoB,UAAU"}
1
+ {"version":3,"file":"tsdown.js","names":["tsdownConfig: MergeConfigFn<UserConfig, typeof baseConfig>","tsdownBinConfig: MergeConfigFn<UserConfig, typeof binConfig>"],"sources":["../src/tsdown.ts"],"sourcesContent":["import type { UserConfig } from \"tsdown\"\n\n// biome-ignore lint/plugin: ignore\nimport type { MergeConfigFn } from \"./utils.ts\"\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 hash: false,\n dts: {\n newContext: true,\n sourcemap: true,\n },\n attw: {\n level: \"error\",\n profile: \"esmOnly\",\n },\n publint: true,\n failOnWarn: true,\n} as const satisfies UserConfig\n\nconst binConfig = {\n ...baseConfig,\n entry: [],\n platform: \"node\",\n outExtensions: () => ({ js: \"\" }),\n copy: [],\n unbundle: false,\n sourcemap: false,\n dts: false,\n attw: false,\n publint: false,\n} as const satisfies UserConfig\n\nexport const tsdownConfig: MergeConfigFn<UserConfig, typeof baseConfig> = createMergeConfigFn(baseConfig)\nexport const tsdownBinConfig: MergeConfigFn<UserConfig, typeof binConfig> = createMergeConfigFn(binConfig)\n"],"mappings":";AAOA,MAAM,aAAa;CACjB,OAAO,CAAC,iBAAiB;CACzB,UAAU;CACV,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,WAAW;CACX,MAAM;CACN,KAAK;EACH,YAAY;EACZ,WAAW;EACZ;CACD,MAAM;EACJ,OAAO;EACP,SAAS;EACV;CACD,SAAS;CACT,YAAY;CACb;AAED,MAAM,YAAY;CAChB,GAAG;CACH,OAAO,EAAE;CACT,UAAU;CACV,sBAAsB,EAAE,IAAI,IAAI;CAChC,MAAM,EAAE;CACR,UAAU;CACV,WAAW;CACX,KAAK;CACL,MAAM;CACN,SAAS;CACV;AAED,MAAaA,eAA6D,oBAAoB,WAAW;AACzG,MAAaC,kBAA+D,oBAAoB,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamhl8/configs",
3
- "version": "0.15.13",
3
+ "version": "0.15.15",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "files": ["dist/"],
31
31
  "scripts": {
32
32
  "bundle": "bun lint && tsdown",
33
- "lint": "bun generate-biome-rules.ts && tsc --noEmit && biome check --write && ./src/bin/adamhl8-knip.ts",
33
+ "lint": "bun generate-biome-rules.ts && tsc --noEmit && biome check --write && ./src/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"