Commit 651a7e5
committed
fix(environment): lazy-load bun lockfile parser
Changed @socketregistry/hyrious__bun.lockb import from module-load time
to runtime lazy-loading. The parser is now only loaded when actually
parsing a bun.lockb file, not when the module loads.
This prevents MODULE_NOT_FOUND errors in environments where the parser
isn't needed (e.g., when using npm/pnpm/yarn lockfiles).
Fixes issue where socketbin packages failed to run because the bun
lockfile parser was unnecessarily required at module load time.1 parent a6a353a commit 651a7e5
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
214 | | - | |
| 223 | + | |
215 | 224 | | |
216 | 225 | | |
217 | 226 | | |
| |||
0 commit comments