Skip to content

Commit

Permalink
reflect the sole dependency on @fartlabs/htx
Browse files Browse the repository at this point in the history
Update README.md to reflect the sole dependency on @fartlabs/htx (we no longer require a separate dependency on @fartlabs/jsonx for the jsx runtime).
  • Loading branch information
EthanThatOneKid committed Jun 22, 2024
1 parent 2f4c2ce commit 8abe2c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Let's learn how to get started with rtx by creating a simple router in Deno.
deno init
```

3\. Add `@fartlabs/jsonx` and `@fartlabs/rtx` as project dependencies.
3\. Add `@fartlabs/rtx` as a project dependency.

```sh
deno add @fartlabs/jsonx @fartlabs/rtx
deno add @fartlabs/rtx
```

4\. Add the following values to your `deno.json(c)` file.
Expand All @@ -36,7 +36,7 @@ deno add @fartlabs/jsonx @fartlabs/rtx
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "@fartlabs/jsonx"
"jsxImportSource": "@fartlabs/rtx"
}
}
```
Expand Down
5 changes: 4 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"lock": false,
"name": "@fartlabs/rtx",
"version": "0.0.4",
"exports": "./mod.ts",
"exports": {
"./": "./mod.ts",
"./jsx-runtime": "./jsx-runtime.ts"
},
"imports": {
"@fartlabs/jsonx": "jsr:@fartlabs/jsonx@^0.0.10",
"@fartlabs/rt": "jsr:@fartlabs/rt@^0.0.3"
Expand Down
1 change: 1 addition & 0 deletions jsx-runtime.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "@fartlabs/jsonx/jsx-runtime";

0 comments on commit 8abe2c5

Please sign in to comment.