Skip to content

feat(rn): route plugin.json scripts through segkit#61

Merged
abueide merged 1 commit intomainfrom
feat/segkit-rn-plugin
May 2, 2026
Merged

feat(rn): route plugin.json scripts through segkit#61
abueide merged 1 commit intomainfrom
feat/segkit-rn-plugin

Conversation

@abueide
Copy link
Copy Markdown
Contributor

@abueide abueide commented May 1, 2026

Summary

Updates React Native plugin convenience scripts to call segkit instead of shell scripts directly. Adds segkit metro subcommand and fixes the delegate script resolution env var.

Changes

  • Replace metro.sh, android.sh, ios.sh, rn.sh calls with segkit metro/android/ios/rn in 6 plugin.json scripts
  • Add segkit metro subcommand delegating to metro.sh
  • Fix delegate.rs to use REACT_NATIVE_SCRIPTS_DIR (the actual env var) instead of RN_SCRIPTS_DIR (which doesn't exist)
  • Add metro delegation test, update help test

Why

Phase 1.4 of the shell-to-Rust migration. Completes the delegation layer for all three plugins. Also fixes a latent bug where rn.sh and metro.sh resolution via SCRIPTS_DIR env var would silently fail and fall through to PATH lookup.


🤖 Generated with Claude Code

@abueide abueide added the feature New feature or functionality label May 1, 2026
…ommand

Replace direct shell script calls in the React Native plugin's
convenience scripts with segkit delegation. Adds `segkit metro`
subcommand for metro.sh delegation. Fixes delegate.rs to use
REACT_NATIVE_SCRIPTS_DIR instead of non-existent RN_SCRIPTS_DIR.

Scripts updated: start:metro, stop:metro, start:android, start:ios,
rn:metro:port, rn:metro:clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abueide abueide force-pushed the feat/segkit-rn-plugin branch from db8bab5 to 15437d9 Compare May 1, 2026 23:57
@abueide abueide marked this pull request as ready for review May 2, 2026 00:23
@abueide abueide merged commit 6c4af74 into main May 2, 2026
19 checks passed
@abueide abueide deleted the feat/segkit-rn-plugin branch May 8, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant