berty / weshnet-expo

🚧 [Work In Progress] 🚧 This library cannot be used yet!!
https://wesh.network
MIT License
5 stars 7 forks source link

fix: manually copy API files in build/api folder #22

Closed D4ryl00 closed 1 month ago

D4ryl00 commented 1 month ago

Doing yarn or yarn install creates a build directory with compiled files, but omits to include src/api/rpcmanager.pb.d.ts, src/api/rpcmanager.pb.js, src/api/protocoltypes.pb.d.ts and src/api/protocoltypes.pb.js into build/api. So when a third app installs weshnet-expo as a dependency, build/api/index.js can't find those files and returns an error.

This PR add a new package.json script to copy those files into the build/api folder`. This script is added in the Makefile and in the Github Action release workflow.

D4ryl00 commented 1 month ago

Tested on Android and iOS, with new expo app (npx create-expo-app my-app --template expo-template-blank-typescript) and the example app (in the example folder).

github-actions[bot] commented 1 month ago

:tada: This PR is included in version 1.0.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: