Skip to content

fix: declare tsx as a runtime dependency of the CLI - #30

Merged
cescox merged 1 commit into
mainfrom
fix/cli-tsx-dependency
Jun 26, 2026
Merged

cescox merged 1 commit into
mainfrom
fix/cli-tsx-dependency

Conversation

@cescox

@cescox cescox commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

canup actions test runs a local Node.js action by resolving the tsx binary (require.resolve('tsx/cli')) and spawning it. tsx was a dependency of the pre-split package but was dropped when the CLI moved into its own package — so the resolve throws Cannot find module 'tsx/cli' and local Node action testing is broken for every user, not just in tests.

Re-declares tsx@^4.19.4 (the pre-split version) as a runtime dependency of @canup/cli.

Verified: require.resolve('tsx/cli') now resolves from the CLI's location; the e2e test Node.js action locally passes. test/lint/typecheck/build green.

`canup actions test` runs a local Node.js action by resolving the tsx
binary (require.resolve('tsx/cli')) and spawning it. tsx was a dependency
of the pre-split package but was dropped when the CLI moved to its own
package, so the resolve throws "Cannot find module 'tsx/cli'" and local
Node action testing fails for every user. Re-declare it (^4.19.4, the
pre-split version).
@github-actions

Copy link
Copy Markdown

Coverage Report for @canup/ui (packages/ui)

Status Category Percentage Covered / Total
🔵 Lines 98.38% (🎯 95%) 183 / 186
🔵 Statements 98.07% (🎯 95%) 204 / 208
🔵 Functions 98.07% (🎯 95%) 51 / 52
🔵 Branches 96.06% (🎯 85%) 122 / 127
File CoverageNo changed files found.
Generated in workflow #42 for commit ede5c33 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown

Coverage Report for @canup/cli (packages/cli)

Status Category Percentage Covered / Total
🔵 Lines 98.9% (🎯 95%) 1082 / 1094
🔵 Statements 98.68% (🎯 95%) 1125 / 1140
🔵 Functions 98.46% (🎯 95%) 193 / 196
🔵 Branches 92.45% (🎯 85%) 515 / 557
File CoverageNo changed files found.
Generated in workflow #42 for commit ede5c33 by the Vitest Coverage Report Action

@cescox
cescox merged commit 0c2014a into main Jun 26, 2026
8 checks passed
@cescox
cescox deleted the fix/cli-tsx-dependency branch June 26, 2026 11:39
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.

1 participant