Skip to content

Commit

Permalink
fix: tsconfig setup tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bconnorwhite committed Sep 28, 2023
1 parent 07c47c5 commit af92b38
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,20 @@ Prxmpt provides a base `tsconfig.json` that you can extend:

```json
{
"extends": "@autossey/prxmpt"
"extends": "@autossey/prxmpt/tsconfig.json"
}
```

> NOTE: Bun doesn't seem to detect Prxmpt correctly when using the "extends" method.
Alternatively, you can simply add the following fields to your `tsconfig.json`:

```json
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "@autossey/prxmpt"
"jsxImportSource": "@autossey/prxmpt",
"module": "NodeNext"
}
}
```
Expand Down
16 changes: 4 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,10 @@
"main": ".auto/build/index.js",
"types": ".auto/build/index.d.ts",
"exports": {
".": {
"types": "./.auto/build/index.d.ts",
"import": "./.auto/build/index.js"
},
"./jsx-runtime": {
"types": "./.auto/build/jsx-runtime.d.ts",
"import": "./.auto/build/jsx-runtime.js"
},
"./jsx-dev-runtime": {
"types": "./.auto/build/jsx-runtime.d.ts",
"import": "./.auto/build/jsx-runtime.js"
}
".": "./.auto/build/index.js",
"./tsconfig.json": "./tsconfig.json",
"./jsx-runtime": "./.auto/build/jsx-runtime.js",
"./jsx-dev-runtime": "./.auto/build/jsx-runtime.js"
},
"files": [
".auto/build/**/!(tsconfig.tsbuildinfo|tsconfig.json)",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "@autossey/prxmpt"
"jsxImportSource": "@autossey/prxmpt",
"module": "NodeNext"
}
}

0 comments on commit af92b38

Please sign in to comment.