Skip to content

Commit

Permalink
opa,opa-react: tweak packages, adjust workflow
Browse files Browse the repository at this point in the history
Remove test files according to publint suggestion.

Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus committed Jul 5, 2024
1 parent 96016fe commit 5bf10a5
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .changeset/tasty-eels-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@styra/opa-react": patch
---

tweak package (publint)

1. remove test files from package
2. package.json: move "browser" field to "exports"
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
run: npx -w ${{ matrix.pkg }} --if-present typedoc
- name: are the types wrong?
run: npx -w ${{ matrix.pkg }} attw --pack
- name: publint
run: npx -w ${{ matrix.pkg }} publint run --strict
- name: jsr publish dry-run
run: npx -w ${{ matrix.pkg }} jsr publish --dry-run
if: matrix.pkg == 'packages/opa'
Expand Down
150 changes: 148 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"docs": "typedoc"
},
"private": true,
"workspaces": ["./packages/opa", "./packages/opa-react"],
"workspaces": [
"./packages/opa",
"./packages/opa-react"
],
"type": "module",
"engineStrict": true,
"engines": {
Expand All @@ -16,6 +19,7 @@
"@arethetypeswrong/cli": "^0.15.3",
"@changesets/cli": "^2.27.7",
"jsr": "^0.12.4",
"publint": "^0.2.8",
"typedoc": "^0.25.13",
"typedoc-plugin-extras": "^3.0.0",
"typedoc-plugin-replace-text": "^3.3.0"
Expand Down
5 changes: 3 additions & 2 deletions packages/opa-react/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
!/**/*.ts
!/**/*.js
!/**/*.ts*
!/**/*.js*
!/**/*.map
/tests/**/*.ts*
4 changes: 2 additions & 2 deletions packages/opa-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"license": "Apache-2.0",
"type": "module",
"sideEffects": false,
"browser": "./dist/cjs/index.js",
"main": "./dist/cjs/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
"require": "./dist/cjs/index.js",
"browser": "./dist/cjs/index.js"
}
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/opa/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
!/**/*.ts
!/**/*.js
!/**/*.map
/tests/**/*.ts

/.eslintrc.js
/cjs
Expand Down

0 comments on commit 5bf10a5

Please sign in to comment.