Skip to content

Commit 16ff93a

Browse files
committed
fix(cli): name the compile input type so the CLI's declaration build emits
1 parent b34f480 commit 16ff93a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎packages/sim-cli/src/commands/protocol/source-check.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
type BlockCatalog,
1212
type CanonicalWorkflow,
1313
type ChildResultFields,
14+
type CompileInput,
1415
calledWorkflowKey,
1516
catalogBlock,
1617
childResultFields,
@@ -484,7 +485,7 @@ async function compileWorkflowDir(
484485
cachedSourceCatalog(dir),
485486
])
486487
const catalog = printedWith ?? workspaceCatalog
487-
const input: Parameters<typeof compileWorkflow>[0] = {
488+
const input: CompileInput = {
488489
entry: { path: SOURCE_ENTRY_FILE, text: files[SOURCE_ENTRY_FILE] },
489490
files: new Map(Object.entries(files).filter(([path]) => path !== SOURCE_ENTRY_FILE)),
490491
catalog,

‎packages/workflow-code/src/index.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ export {
3838
isIdentifierName,
3939
parseStoredPath,
4040
} from './code-files'
41-
export { type CompileResult, compileWorkflow, type StoredEdgeRef } from './compile'
41+
export {
42+
type CompileInput,
43+
type CompileResult,
44+
compileWorkflow,
45+
type StoredEdgeRef,
46+
} from './compile'
4247
export { codePointLabel, scriptName } from './compile/characters'
4348
export { didYouMean, suggestBuilder } from './compile/hints'
4449
export { bracketDepthOverflow, sdkHeader, sourceDepthOverflow } from './compile/parse'

0 commit comments

Comments
 (0)