Skip to content

Commit

Permalink
fix: module export entry
Browse files Browse the repository at this point in the history
  • Loading branch information
chinhld12 committed Dec 27, 2023
1 parent a9ca4f2 commit 6adc04b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/lovely-berries-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@dwarvesf/react-hooks': patch
'@dwarvesf/react-utils': patch
---

Fix module exports
6 changes: 5 additions & 1 deletion .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup Node.js 16
uses: actions/setup-node@v4
with:
node-version: 16
- uses: pnpm/action-setup@v2
with:
version: 8.5.1
run_install: false
- uses: actions/checkout@v3
- uses: preactjs/compressed-size-action@v2
- uses: preactjs/compressed-size-action@2.5.0
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
build-script: 'build:packages'
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16
2 changes: 1 addition & 1 deletion packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "tsdx lint"
},
"main": "dist/index.js",
"module": "dist/react.esm.js",
"module": "dist/index.mjs",
"typings": "dist/index.d.ts",
"files": [
"README.md",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "tsdx lint"
},
"main": "dist/index.js",
"module": "dist/utils.esm.js",
"module": "dist/index.mjs",
"typings": "dist/index.d.ts",
"files": [
"README.md",
Expand Down
2 changes: 1 addition & 1 deletion tsdx.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
config.output = {
...config.output,
dir: 'dist/',
entryFileNames: '[name].esm.js',
entryFileNames: '[name].mjs',
}
delete config.output.file
}
Expand Down

0 comments on commit 6adc04b

Please sign in to comment.