Skip to content

Commit 38b3171

Browse files
authored
Merge pull request #21 from spencerkit/develop
refactor(cli): split executable entry from cli logic
2 parents e7d4c0f + 833d575 commit 38b3171

4 files changed

Lines changed: 366 additions & 380 deletions

File tree

.changeset/late-seals-travel.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"@spencer-kit/coder-studio": patch
2+
---
3+
4+
Refactor the CLI entry structure so the executable wrapper only launches the command entrypoint, while the reusable CLI logic lives in a separate module. This fixes cases where globally installed `coder-studio` commands could fail to print output because the entry module was misdetected.

packages/cli/src/bin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ vi.mock("./browser.js", () => ({
6161
openBrowser,
6262
}));
6363

64-
import { main } from "./bin";
64+
import { main } from "./cli";
6565
import { parseArgs, RUNTIME_CONFIG_ERROR } from "./parse-args";
6666

6767
beforeEach(() => {

0 commit comments

Comments
 (0)