Closed sroussey closed 5 months ago
Hi @sroussey! I've heard great things about Bun, but never interacted with it. Is it supposed to run Node modules out of the box? Anything we need to change in package.json
or binding.gyp
?
For now change your instructions on installation.
Add simsimd to “dependencies” AND “trustedDependencies” in package.json before bun i
.
@sroussey Do I understand correctly that the package becomes a dependency of itself? Could you please open a PR?
I'm a bit sick at the moment.
Basically, bun does not run post install scripts (that would build for the current system) for security reasons, but the user can override that.
See https://bun.sh/guides/install/trusted
(Written from bed)
I longer term solution is to pre-build using this:
https://github.com/prebuild/prebuildify (and https://github.com/prebuild/node-gyp-build).
What version of Bun is running?
❯ bun -v 1.0.21
What platform is your computer?
❯ uname -mprs Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
install bun
bun i simsimd
test.ts:
bun run test.ts
What is the expected behavior?
In this simple example, show that the functions exist
What do you see instead?