feat(apps): export ENGINE_VERSION from definition layer
Closed
D-
5mo ago+21+21+01234567890123456789-24-24-01234567890123456789
Proposed changes (including videos or screenshots)
Adds src/definition/version.ts which reads the package version via resolveJsonModule and exports it as ENGINE_VERSION.
Replaces AppPackageParser.getEngineVersion() โ which resolved the version by traversing the filesystem relative to __dirname โ with a direct import of ENGINE_VERSION. This removes the assumption that package.json lives at a predictable relative path, which will break when AppPackageParser moves to a different package during the
apps-engine split.
Issue(s)
Steps to test or reproduce
Further comments
Related to the "Apps-Engine split" stack:
Deprecated
Summary by CodeRabbit
- Refactor
- Engine version is now fixed at build time rather than discovered at runtime, improving startup reliability and consistency and reducing runtime file access.
- Chores
- Build configuration updated to support JSON imports, making builds and version handling more robust.
- Documentation
- Migration guide updated to reflect the new version-handling approach.