littlehorse-enterprises / littlehorse

This repository contains the code for the LittleHorse Server, Dashboard, CLI, and Java/Go/Python SDK's. Brought to you by LittleHorse Enterprises LLC
https://littlehorse.dev/
Other
66 stars 7 forks source link

chore(sdk-js): add global imports #879

Closed mijailr closed 1 month ago

mijailr commented 1 month ago

This allows to import protobuf types from the sdk-js entrypoint.

- import { NodeRun } from 'littlehorse-client/dist/proto/node_run'
- import { WfRun } from 'littlehorse-client/dist/proto/wf_run'
- import { WfSpec } from 'littlehorse-client/dist/proto/wf_spec'
+ import { NodeRun, WfRun, WfSpec } from 'littlehorse-client/proto'

It also introduces buf.build which will allow us to run compile-proto.sh from different architectures and setups.