Skip to content

Commit 7619a98

Browse files
committed
fix
1 parent a451378 commit 7619a98

8 files changed

Lines changed: 30 additions & 9 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,8 @@ jobs:
7373
- name: Install dependencies
7474
run: pnpm install --frozen-lockfile
7575

76+
- name: Build
77+
run: pnpm build
78+
7679
- name: Typecheck
7780
run: pnpm typecheck

packages/cli-to-js/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# cli-to-js
22

3+
## 0.0.5
4+
5+
### Patch Changes
6+
7+
- fix
8+
39
## 0.0.4
410

511
### Patch Changes

packages/cli-to-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-to-js",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Turn any CLI tool into a Node.js API. Reverse commander.",
55
"keywords": [
66
"api",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# cli-to-server
2+
3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- fix
8+
9+
- Updated dependencies []:
10+
- cli-to-js@0.0.5

packages/cli-to-server/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-to-server",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Turn any CLI tool into an HTTP server with Hono. Wraps cli-to-js.",
55
"keywords": [
66
"api",
@@ -46,7 +46,6 @@
4646
"scripts": {
4747
"build": "vp pack",
4848
"dev": "vp pack --watch",
49-
"test": "vp test run",
5049
"typecheck": "tsc --noEmit"
5150
},
5251
"dependencies": {

packages/cli-to-server/src/build-server.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Hono } from "hono";
1+
import { Hono, type Context } from "hono";
22
import { streamSSE } from "hono/streaming";
33
import type { CliApi, CommandResult } from "cli-to-js";
44
import { SSE_HEARTBEAT_INTERVAL_MS } from "./constants.js";
@@ -119,10 +119,7 @@ export const buildServer = (cliApi: CliApi): Hono => {
119119
});
120120
});
121121

122-
const handleExecution = async (
123-
context: Parameters<Parameters<typeof app.post>[1]>[0],
124-
subcommand: string | undefined,
125-
) => {
122+
const handleExecution = async (context: Context, subcommand: string | undefined) => {
126123
const body = await parseBodySafe(context.req.raw);
127124
const format = resolveFormat(context.req.query("format"), context.req.header("accept"));
128125

packages/js-to-cli/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# js-to-cli
22

3+
## 0.0.3
4+
5+
### Patch Changes
6+
7+
- fix
8+
39
## 0.0.2
410

511
### Patch Changes

packages/js-to-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-to-cli",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "Turn any Node.js module into a Commander CLI. Inverse of cli-to-js.",
55
"keywords": [
66
"cli",

0 commit comments

Comments
 (0)