From 76cfb3259b9821fe776cd941be8dd0ee730a15a8 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Wed, 17 Jul 2024 14:15:33 +0200 Subject: [PATCH] opa-react: include sources in NPM package (#151) Fixes #133. Removes the remnants of my previous attempt #135. --- .changeset/rich-moons-lie.md | 5 +++++ packages/opa-react/package.json | 7 ++----- packages/opa-react/tsconfig.json | 5 +---- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .changeset/rich-moons-lie.md diff --git a/.changeset/rich-moons-lie.md b/.changeset/rich-moons-lie.md new file mode 100644 index 00000000..ecc2b410 --- /dev/null +++ b/.changeset/rich-moons-lie.md @@ -0,0 +1,5 @@ +--- +"@styra/opa-react": patch +--- + +include sources in npm package diff --git a/packages/opa-react/package.json b/packages/opa-react/package.json index a7713af9..c3847f1b 100644 --- a/packages/opa-react/package.json +++ b/packages/opa-react/package.json @@ -16,7 +16,8 @@ "docs": "typedoc --out docs" }, "files": [ - "dist" + "dist", + "src" ], "author": "Styra Inc.", "license": "Apache-2.0", @@ -58,9 +59,6 @@ ], "type": "module", "tshy": { - "sourceDialects": [ - "@styra/opa-react/source" - ], "exports": { "./package.json": "./package.json", ".": "./src/index.ts" @@ -70,7 +68,6 @@ "./package.json": "./package.json", ".": { "import": { - "@styra/opa-react/source": "./src/index.ts", "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, diff --git a/packages/opa-react/tsconfig.json b/packages/opa-react/tsconfig.json index f395e16f..609ce827 100644 --- a/packages/opa-react/tsconfig.json +++ b/packages/opa-react/tsconfig.json @@ -5,9 +5,6 @@ "jsx": "react-jsx", "declaration": true, "declarationMap": true, - "sourceMap": true, - "module": "NodeNext", - "moduleResolution": "NodeNext", - "customConditions": ["@styra/opa-react/source"] + "sourceMap": true } }