bunli 0.5.3 → 0.5.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.
@@ -1,4 +1,16 @@
1
1
  import { z } from 'zod';
2
+ import type { BunliUtils } from '@bunli/utils';
3
+ interface PublishedPlatformPackage {
4
+ platform: string;
5
+ packageName: string;
6
+ version: string;
7
+ }
8
+ export declare function resolvePlatforms(targets: string[]): string[];
9
+ export declare function resolvePlatformsStrict(targets: string[]): string[];
10
+ export declare function buildPlatformPackageName(format: string, cliName: string, platform: string): string;
11
+ export declare function buildShimPlatformMap(published: PublishedPlatformPackage[]): Record<string, string>;
12
+ export declare function formatTag(version: string, tagFormat: string): string;
13
+ export declare function getNpmPublishArgs(dry: boolean): string[];
2
14
  declare const _default: import("@bunli/core").Command<{
3
15
  version: import("@bunli/core").CLIOption<z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
4
16
  patch: "patch";
@@ -14,3 +26,6 @@ declare const _default: import("@bunli/core").Command<{
14
26
  name: "release";
15
27
  };
16
28
  export default _default;
29
+ export declare function determineVersion(versionFlag: string | undefined, current: string, prompt: BunliUtils['prompt']): Promise<string>;
30
+ export declare function bumpVersion(version: string, type: 'patch' | 'minor' | 'major'): string;
31
+ export declare function updatePackageVersion(version: string): Promise<void>;
package/dist/config.d.ts CHANGED
@@ -36,6 +36,10 @@ export type LoadedConfig = {
36
36
  github: boolean;
37
37
  tagFormat: string;
38
38
  conventionalCommits: boolean;
39
+ binary?: {
40
+ packageNameFormat: string;
41
+ shimPath: string;
42
+ };
39
43
  };
40
44
  plugins: any[];
41
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunli",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "description": "The Bunli CLI toolchain for developing, building, and distributing CLIs",
6
6
  "bin": {
@@ -47,12 +47,13 @@
47
47
  "prepublishOnly": "bun run build"
48
48
  },
49
49
  "dependencies": {
50
- "@bunli/core": "0.5.4",
51
- "@bunli/generator": "0.5.2",
50
+ "@bunli/core": "0.5.5",
51
+ "@bunli/generator": "0.5.3",
52
52
  "@bunli/utils": "0.3.2",
53
53
  "zod": "^4.3.6"
54
54
  },
55
55
  "devDependencies": {
56
+ "@bunli/test": "0.3.3",
56
57
  "@types/bun": "1.3.7",
57
58
  "typescript": "^5.8.3"
58
59
  }