mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-02-13 22:45:06 -05:00
Currently, if you call `getInfo` the version falls back to `1.0.0`, which is confusing since users want to know which version of the hub they are communicating with. The reason this happens is because the `npm_package_version` environment variable trick only works if you run via `npm`/`yarn`. Since we don't want those as PID 1 (it interferes with signal processing) we build and run directly with the `node` executable. To get this to work, we create a symlink to `package.json` in the `src` directory so that we can still reference the version specified in that file. This required some adjustments to have TypeScript not error (including upgrading Jest), but should now work.
1.5 KiB
1.5 KiB