feat(KB-221): rename CLI binary from kb to fn

- Rename binary from 'kb' to 'fn' in package.json bin entries
- Update package-config test to expect new binary name 'fn'
- Add changeset to track the binary rename for package consumers
This commit is contained in:
gsxdsm
2026-03-30 18:15:58 -07:00
parent 919d524d9c
commit 4435659cf5
3 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
---
"@dustinbyrne/kb": minor
---
Rename CLI binary from `kb` to `fn` to align with Fusion branding
The binary installed via `npm i -g @dustinbyrne/kb` is now `fn` instead of `kb`. Users will need to update their workflows and documentation references accordingly. The old `kb` command will no longer be available after this change.

View File

@@ -6,7 +6,7 @@
"pi-package" "pi-package"
], ],
"bin": { "bin": {
"kb": "./dist/bin.js" "fn": "./dist/bin.js"
}, },
"pi": { "pi": {
"extensions": [ "extensions": [

View File

@@ -19,9 +19,9 @@ function loadWorkflowYaml(name: string): any {
describe("CLI package.json publishing config", () => { describe("CLI package.json publishing config", () => {
const pkg = loadPackageJson("cli"); const pkg = loadPackageJson("cli");
it('has "bin" field with kb pointing to ./dist/bin.js', () => { it('has "bin" field with fn pointing to ./dist/bin.js', () => {
expect(pkg.bin).toBeDefined(); expect(pkg.bin).toBeDefined();
expect(pkg.bin.kb).toBe("./dist/bin.js"); expect(pkg.bin.fn).toBe("./dist/bin.js");
}); });
it('has "files" array with refined globs for dist output', () => { it('has "files" array with refined globs for dist output', () => {