Skip to content

feat(run-run): add TsdownService and export tools#152

Merged
rqbazan merged 9 commits intomainfrom
feat/run-run-tsdown-service
Mar 14, 2026
Merged

feat(run-run): add TsdownService and export tools#152
rqbazan merged 9 commits intomainfrom
feat/run-run-tsdown-service

Conversation

@rqbazan
Copy link
Member

@rqbazan rqbazan commented Mar 14, 2026

Summary

  • Add TsdownService extending ToolService for CLI access via rr tools tsdown
  • Make ToolService.getBinDir() optional instead of abstract, so tools resolvable via the shell's inherited PATH don't need a custom bin directory
  • Export tools via ./tools/* in package.json to allow import { defineConfig } from '@vlandoss/run-run/tools/tsdown'

Test plan

  • rr tools tsdown --help resolves the binary correctly
  • rr build:lib continues working as before
  • Snapshot tests updated and passing
  • Type check passes

🤖 Generated with Claude Code

rqbazan and others added 2 commits March 13, 2026 20:26
- Create TsdownService extending ToolService without getBinDir, relying
  on the shell's inherited localBaseBinPath for binary resolution
- Make ToolService.getBinDir optional instead of abstract, so tools that
  are already resolvable via the shell PATH don't need a custom bin dir
- Add tsdown to the tools command for direct CLI access
- Export tools via package.json (./tools/*) to allow consumers to
  import { defineConfig } from '@vlandoss/run-run/tools/tsdown'

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2026

🦋 Changeset detected

Latest commit: b26aaa2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@vlandoss/run-run Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Mar 14, 2026

Preview release

Latest commit: b26aaa2

Some packages have been released:

Package Version Install
@vlandoss/run-run v0.0.18-git-b26aaa2.0 @vlandoss/run-run@v0.0.18-git-b26aaa2.0

Note

Use the PR number as tag to install any package. For instance:

pnpm add @vlandoss/run-run@pr-152

rqbazan and others added 6 commits March 13, 2026 20:49
Raw .ts exports in node_modules can't be type-stripped by Node.js or
unrun, breaking consumers like tsdown config files. Compile lib exports
to dist/ and move src/tools into src/lib/tools.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…esolution

Adds "bun" condition to package exports so Bun resolves source .ts files
directly without requiring a build step. Adds root tsconfig.json with
paths mapping so VSCode/TypeScript can resolve @vlandoss/run-run/* imports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rqbazan rqbazan merged commit 373b8fc into main Mar 14, 2026
3 checks passed
@rqbazan rqbazan deleted the feat/run-run-tsdown-service branch March 14, 2026 02:48
@github-actions github-actions bot mentioned this pull request Mar 14, 2026
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