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:
7
.changeset/rename-binary-to-fn.md
Normal file
7
.changeset/rename-binary-to-fn.md
Normal 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.
|
||||
@@ -6,7 +6,7 @@
|
||||
"pi-package"
|
||||
],
|
||||
"bin": {
|
||||
"kb": "./dist/bin.js"
|
||||
"fn": "./dist/bin.js"
|
||||
},
|
||||
"pi": {
|
||||
"extensions": [
|
||||
|
||||
@@ -19,9 +19,9 @@ function loadWorkflowYaml(name: string): any {
|
||||
describe("CLI package.json publishing config", () => {
|
||||
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.kb).toBe("./dist/bin.js");
|
||||
expect(pkg.bin.fn).toBe("./dist/bin.js");
|
||||
});
|
||||
|
||||
it('has "files" array with refined globs for dist output', () => {
|
||||
|
||||
Reference in New Issue
Block a user