From 7c642992cd7d52b7e7cd718542dfa68c41b5aab3 Mon Sep 17 00:00:00 2001 From: Jeffrey Konowitch Date: Sun, 8 Dec 2024 22:21:10 -0500 Subject: [PATCH] DOCS: deno run instead of dpx (#1225) > [!IMPORTANT] > Update TypeScript setup documentation to use `deno run` instead of `dpx` for BAML CLI commands. > > - **Documentation**: > - Replace `dpx baml-cli init` with `deno run -A npm:@boundaryml/baml/baml-cli init` in `typescript.mdx`. > - Add `deno run -A npm:@boundaryml/baml/baml-cli generate` as an alternative to `npx baml-cli generate` in `typescript.mdx`. > > This description was created by [Ellipsis](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral) for c4842a1268103d1aaba387a100af67de9f027c84. It will automatically update as commits are pushed. --- fern/01-guide/02-languages/typescript.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fern/01-guide/02-languages/typescript.mdx b/fern/01-guide/02-languages/typescript.mdx index 2be226790..8673b3d61 100644 --- a/fern/01-guide/02-languages/typescript.mdx +++ b/fern/01-guide/02-languages/typescript.mdx @@ -46,7 +46,7 @@ To set up BAML with Typescript do the following: ``` ```bash deno - dpx baml-cli init + deno run -A npm:@boundaryml/baml/baml-cli init ``` @@ -57,6 +57,9 @@ To set up BAML with Typescript do the following: ```bash npx baml-cli generate ``` + ```bash deno + deno run -A npm:@boundaryml/baml/baml-cli generate + ``` You can modify your `package.json` so you have a helper prefix in front of your build command.