Commit 8d48096
fix: inline definePlugin to remove runtime dependency on repterm-api
When repterm is installed via symlink/link outside its monorepo,
bun resolves imports from the symlink target path rather than the
node_modules location. This causes 'Cannot find package repterm-api'
errors because repterm-api isn't in the symlink target's resolution
path.
Fix by inlining the trivial definePlugin function and changing all
repterm-api imports to type-only (erased at compile time). The
repterm-api package remains in dependencies for TypeScript type
resolution but is no longer needed at runtime.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1bfadfb commit 8d48096
1 file changed
Lines changed: 25 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
20 | 37 | | |
21 | 38 | | |
22 | 39 | | |
| |||
0 commit comments