Skip to content

Commit

Permalink
DOCS: deno run instead of dpx (#1225)
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->



> [!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`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for c4842a1. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
jkonowitch authored Dec 9, 2024
1 parent 2974458 commit 7c64299
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fern/01-guide/02-languages/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
</CodeBlocks>

Expand All @@ -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.

Expand Down

0 comments on commit 7c64299

Please sign in to comment.