diff --git a/README.md b/README.md index 02f5684..e543ef9 100644 --- a/README.md +++ b/README.md @@ -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" } } ``` diff --git a/package.json b/package.json index ebc0751..fbc7480 100644 --- a/package.json +++ b/package.json @@ -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)", diff --git a/tsconfig.json b/tsconfig.json index 4eb51ed..51d7ae4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "jsx": "react-jsx", - "jsxImportSource": "@autossey/prxmpt" + "jsxImportSource": "@autossey/prxmpt", + "module": "NodeNext" } }