Closed zachrattner closed 12 months ago
Hi @zachrattner - I'm not sure what you're trying to do here re: defining this "my-umbrella" package. Also from the above it isn't quite clear which package.json
file you've edited (the main package of the entire umbrella monorepo or just the package of the SIMD library)...
If you're trying to add more SIMD functions you'll have to add them in two places:
/packages/simd/assembly
(as AssemblyScript functions)SIMD
interface in /packages/sim/src/api.ts
Then rebuild both the WASM binary and wrapper via: (cd packages/simd && yarn build:binary && yarn build)
Hope that helps!
I ended up implementing in assembly script vs trying to hack this up. Thanks for the help!
I like the provided SIMD functions but want to add a few of my own to go alongside this. To do this, I wanted to clone the repo, build it locally, and test out modifications.
Cloning the repo and building worked great, but using the locally compiled version does not. If someone could help me get this set up, I'd be happy to update the README.md file with the new steps.
git clone https://github.com/thi-ng/umbrella.git
cd umbrella && yarn install && yarn build
Then when I'm trying to modify this demo code:
To use my local package instead of the published one:
I run with this command:
And I get this error:
However, I can confirm this file does indeed exist:
Any ideas?