Skip to content

fix: allow tsci push without entrypoint when circuit.json exists#2952

Open
64johnlee wants to merge 5 commits intotscircuit:mainfrom
64johnlee:fix/issue-2797
Open

fix: allow tsci push without entrypoint when circuit.json exists#2952
64johnlee wants to merge 5 commits intotscircuit:mainfrom
64johnlee:fix/issue-2797

Conversation

@64johnlee
Copy link
Copy Markdown

Summary

When no tsx/ts entrypoint files are found, getEntrypoint() now falls back to checking for circuit.json files. This mirrors the behavior of tsci dev which already supports circuit.json files as valid build targets.

Fixes #2797

Changes

  • Added circuit.json fallback in getEntrypoint()
  • When no index.tsx/index.ts/index.circuit.tsx found, search for *.circuit.json or circuit.json
  • If found, use it as the entrypoint (same as tsci dev behavior)

Testing

  • All existing tests pass
  • Added test: tsci push works without package.json when circuit.json exists

64johnlee added 5 commits May 6, 2026 10:41
When no tsx/ts entrypoint files are found, getEntrypoint() now falls back
to checking for circuit.json files. This mirrors the behavior of `tsci dev`
which already supports circuit.json files as valid build targets.

Fixes tscircuit#2797
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tsci push fails when no index.circuit.tsx file and no mainEntrypoint

1 participant