This project is demonstrating how CRE TS Javy Plugin works as an npm package.
- Bun 1.2.21 installed
Download the CRE TS Javy Plugin like a regular bun dependency:
bun install
Before first usage run the setup command. Setup will download the right Javy binary based on your operating system and will compile a version with the Chainlink CRE Javy Plugin included:
bunx cre-setup
Then you are ready to use the CRE TS SDK to compile your workflows to WASM. Run the following command:
bunx cre-compile <input.ts> <output.wasm>
Example:
bun cre-compile src/hello-world/hello-world.ts dist/hello-world.wasm