build with wasm-pack build --target web --out-dir pkg and in the calling project's directory npm install --save /path/to/that/pkg