@theholocron/tsdown-config 7.16.0 → 7.18.0

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.
Files changed (2) hide show
  1. package/README.md +22 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -26,7 +26,7 @@ To customise entry points or other options, use the `library()` factory:
26
26
  import { library } from "@theholocron/tsdown-config/presets/library";
27
27
 
28
28
  export default library({
29
- entry: ["src/index.ts", "src/capabilities/index.ts"],
29
+ entry: ["src/index.ts", "src/capabilities/index.ts"],
30
30
  });
31
31
  ```
32
32
 
@@ -46,6 +46,26 @@ To customise the entry point or other options, use the `cli()` factory:
46
46
  import { cli } from "@theholocron/tsdown-config/presets/cli";
47
47
 
48
48
  export default cli({
49
- entry: ["src/my-cli.ts"],
49
+ entry: ["src/my-cli.ts"],
50
+ });
51
+ ```
52
+
53
+ ### `cli` — CLI binary
54
+
55
+ Single entry point (`src/cli.ts`), no type declarations (binaries don't need them), sourcemap enabled, injects `#!/usr/bin/env node` shebang so the output is directly executable.
56
+
57
+ ```ts
58
+ // tsdown.config.ts
59
+ export { default } from "@theholocron/tsdown-config/presets/cli";
60
+ ```
61
+
62
+ To customise the entry point or other options, use the `cli()` factory:
63
+
64
+ ```ts
65
+ // tsdown.config.ts
66
+ import { cli } from "@theholocron/tsdown-config/presets/cli";
67
+
68
+ export default cli({
69
+ entry: ["src/my-cli.ts"],
50
70
  });
51
71
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/tsdown-config",
3
- "version": "7.16.0",
3
+ "version": "7.18.0",
4
4
  "description": "Shared tsdown configurations for @theholocron packages.",
5
5
  "homepage": "https://github.com/theholocron/configs/tree/main/packages/tsdown-config#readme",
6
6
  "bugs": "https://github.com/theholocron/configs/issues",
@@ -24,8 +24,8 @@
24
24
  "typescript": "^5.9.3",
25
25
  "vitest": "^4.1.10",
26
26
  "@vitest/coverage-v8": "^4.1.10",
27
- "@theholocron/tsconfig": "7.16.0",
28
- "@theholocron/vitest-config": "7.16.0"
27
+ "@theholocron/vitest-config": "7.18.0",
28
+ "@theholocron/tsconfig": "7.18.0"
29
29
  },
30
30
  "exports": {
31
31
  ".": {