You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can package up the generated output in as an npm module by adding the following package.json to in the root directory of the generated output (ie: the proto folder), ensuring that you declare dependencies on google-protobuf and its typedefs:
Now, in the consumer package, you will be able to declare a dependency on the my-protos package as you would any other module and import using the following syntax:
import { OrphanStreamRequest } from 'my-protos/orphan_pb';
Please let me know if you have any followup questions.
Hello
What would be the recommended approach to package all generated js files as npm package while exporting all modules.
Thanks
The text was updated successfully, but these errors were encountered: