Skip to content

Commit c10b571

Browse files
committed
fix: update bin entry test to match corrected altimate path
The altimate bin entry points to ./bin/altimate (the actual binary), not ./bin/altimate-code (the backward-compat wrapper). Also assert that no opencode bin entry exists.
1 parent fcbed02 commit c10b571

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/opencode/test/install/publish-package.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ describe("publish package validation", () => {
4242
test("bin entries are correct", () => {
4343
const pkg = JSON.parse(fs.readFileSync(path.join(REPO_PKG_DIR, "package.json"), "utf-8"))
4444
expect(pkg.bin).toBeDefined()
45-
expect(pkg.bin["altimate"]).toBe("./bin/altimate-code")
45+
expect(pkg.bin["altimate"]).toBe("./bin/altimate")
4646
expect(pkg.bin["altimate-code"]).toBe("./bin/altimate-code")
47+
expect(pkg.bin["opencode"]).toBeUndefined()
4748
})
4849

4950
test("postinstall script has bun-then-node fallback", () => {

0 commit comments

Comments
 (0)