Skip to content

Commit

Permalink
fix: correct JSX runtime path in tsconfig (#2452)
Browse files Browse the repository at this point in the history
Modifies TS paths to point more directly to the JSX runtime. This
prevents problems where TS would incorrectly use an import of
`/jsx-runtime`.

```
    children: import("@metamask/snaps-sdk/jsx-runtime").MaybeArray<import("@metamask/snaps-sdk/jsx-runtime").SnapElement<{
        value: string;
        children: string;
    }, "Option">>;
```
  • Loading branch information
FrederikBolding authored May 31, 2024
1 parent 0d59bdc commit fa67665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsconfig.packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"paths": {
"@metamask/*/test-utils": ["../*/src/test-utils"],
"@metamask/*/node": ["../*/src/node"],
"@metamask/*/jsx-dev-runtime": ["../*/src/jsx"],
"@metamask/*/jsx-runtime": ["../*/src/jsx"],
"@metamask/*/jsx-dev-runtime": ["../*/src/jsx/jsx-dev-runtime.ts"],
"@metamask/*/jsx-runtime": ["../*/src/jsx/jsx-runtime.ts"],
"@metamask/*/jsx": ["../*/src/jsx"],
"@metamask/*": ["../*/src"]
},
Expand Down

0 comments on commit fa67665

Please sign in to comment.