Skip to content

Commit

Permalink
opa-react: include sources in NPM package (#151)
Browse files Browse the repository at this point in the history
Fixes #133.
Removes the remnants of my previous attempt #135.
  • Loading branch information
srenatus authored Jul 17, 2024
1 parent 3fac435 commit 76cfb32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-moons-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@styra/opa-react": patch
---

include sources in npm package
7 changes: 2 additions & 5 deletions packages/opa-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"docs": "typedoc --out docs"
},
"files": [
"dist"
"dist",
"src"
],
"author": "Styra Inc.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -58,9 +59,6 @@
],
"type": "module",
"tshy": {
"sourceDialects": [
"@styra/opa-react/source"
],
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
Expand All @@ -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"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/opa-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"jsx": "react-jsx",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"customConditions": ["@styra/opa-react/source"]
"sourceMap": true
}
}

0 comments on commit 76cfb32

Please sign in to comment.