Commit 4a31cdc
fix(cli/run): make engine globals optional in the local runner
The 'thatopen run' execution wrapper hard-required @thatopen/components, so a
cloud component that doesn't touch the 3D engine (e.g. the scaffold, which only
uses thatOpenServices) crashed at module load before main() ran. Under --beta
the package is installed as @thatopen-platform/components-beta, so the literal
require could never resolve. Each engine global (OBC/THREE/web-ifc) is now
best-effort via tryRequire, and @thatopen/components also resolves the beta
package name.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e9db447 commit 4a31cdc
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
0 commit comments