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 ba8a9b0
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 3 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
5 changes: 5 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ 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
Expand All @@ -16,3 +20,4 @@ jobs:
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
build-script: 'build:packages'
clean-script: "clean"
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint:fix": "eslint --fix .",
"build": "turbo run build",
"build:packages": "turbo build --filter=./packages/**/*",
"clean": "rimraf node_modules packages/**/node_modules **/node_modules",
"prepare": "pnpm run build",
"start:app": "pnpm run build && pnpm -C ./example start",
"changeset": "changeset",
Expand Down Expand Up @@ -87,6 +88,7 @@
"devDependencies": {
"@testing-library/react": "^12.1.0",
"@types/graceful-fs": "4.1.5",
"rimraf": "^5.0.5",
"turbo": "1.8.8"
},
"packageManager": "[email protected]",
Expand Down
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
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

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

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 ba8a9b0

Please sign in to comment.