fix(#2116): use resolvable paths in surface.md require + correct package name

Four require() examples in commands/gsd/surface.md used bare
'gsd-core/...' specifiers that Node cannot resolve (wrong package
name + runtime-mirror layout off module path). Now derives the path
from runtimeConfigDir. Also fixes reinstall hint from
'npm i -g gsd-core' to 'npm i -g @opengsd/gsd-core'.
This commit is contained in:
Tom Boucher
2026-07-12 01:06:39 -04:00
parent 7252807194
commit 64c4a105f6
19 changed files with 74 additions and 28 deletions

View File

@@ -0,0 +1,5 @@
---
type: Documentation
pr: 0
---
**Fixed unresolvable bare `require('gsd-core/...')` in `gsd-surface` command doc** — the four `require()` examples now derive the engine path from `runtimeConfigDir` (resolvable at runtime), and the reinstall hint corrects `npm i -g gsd-core` to `npm i -g @opengsd/gsd-core`. (#2116)