File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
4646 "scripts" : {
4747 "build" : " vp pack" ,
4848 "dev" : " vp pack --watch" ,
49- "test" : " vp test run" ,
5049 "typecheck" : " tsc --noEmit"
5150 },
5251 "dependencies" : {
Original file line number Diff line number Diff line change 1- import { Hono } from "hono" ;
1+ import { Hono , type Context } from "hono" ;
22import { streamSSE } from "hono/streaming" ;
33import type { CliApi , CommandResult } from "cli-to-js" ;
44import { 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments