Skip to content

Commit ba99c0d

Browse files
authored
build(perf): migrate fixture generator to Bun (#1433)
* build(perf): migrate fixture generator to Bun Replace the Nushell fixture generator with a dependency-free Bun script.\n\nKeep the generated Claude and Codex fixture layouts and command-line\ninterface while using Bun file writers and Bun Shell for file operations. * build(perf): type Bun fixture script Add Bun development types so the fixture generator is checked alongside the package tooling.\n\nAwait file writer operations to preserve ordered writes and satisfy the\nrepository promise lint rule. * build(perf): avoid Bun type dependency Keep the fixture generator dependency-free by declaring its small Bun API surface locally.\n\nRemove the Bun type package and restore the package TypeScript configuration so\npublishing the fixture generator does not expand package dependencies.
1 parent dad1b5d commit ba99c0d

5 files changed

Lines changed: 272 additions & 246 deletions

File tree

‎apps/ccusage/AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ This is the published `ccusage` npm package. The CLI implementation lives in Rus
1313

1414
- Published bin launcher: `src/cli.js`
1515
- Rust CLI implementation: `../../rust/crates/ccusage`
16-
- PR benchmark scripts: `scripts/compare-pr-performance.bb` and `scripts/generate-large-fixture.nu`
16+
- PR benchmark scripts: `scripts/compare-pr-performance.bb` and `scripts/generate-large-fixture.ts`
1717

1818
The package is distributed as the canonical native CLI. Keep the public surface centered on `ccusage`, agent subcommands such as `ccusage amp`, and stable `--json` output instead of library-style TypeScript exports.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
declare namespace Bun {
2+
interface FileSink {
3+
write(data: string): Promise<number>;
4+
end(): Promise<void>;
5+
}
6+
7+
interface BunFile {
8+
writer(): FileSink;
9+
}
10+
}
11+
12+
declare const Bun: {
13+
file(path: string): Bun.BunFile;
14+
$(strings: TemplateStringsArray, ...values: readonly unknown[]): Promise<unknown>;
15+
};

‎apps/ccusage/scripts/generate-large-fixture.nu‎

Lines changed: 0 additions & 244 deletions
This file was deleted.

0 commit comments

Comments
 (0)