Skip to content

Commit

Permalink
fix: package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Feb 16, 2024
1 parent 29290e3 commit bf1812a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/dull-buckets-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tszhong0411/utils": patch
"@tszhong0411/ui": patch
---

fix package.json
11 changes: 10 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"bugs": {
"url": "https://github.com/tszhong0411/honghong.me/issues"
},
"main": "src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist"
],
Expand All @@ -26,6 +27,7 @@
"lint:fix": "eslint --fix .",
"type-check": "tsc --noEmit"
},
"types": "./dist/index.d.ts",
"dependencies": {
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-aspect-ratio": "^1.0.3",
Expand Down Expand Up @@ -66,6 +68,13 @@
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"lint-staged": {
"*.{js,jsx,cjs,mjs,ts,tsx}": [
"eslint"
Expand Down
11 changes: 10 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"bugs": {
"url": "https://github.com/tszhong0411/honghong.me/issues"
},
"main": "src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"files": [
"dist"
],
Expand All @@ -26,6 +27,7 @@
"lint:fix": "eslint --fix .",
"type-check": "tsc --noEmit"
},
"types": "./dist/index.d.ts",
"dependencies": {
"clsx": "^2.1.0",
"dayjs": "^1.11.10",
Expand All @@ -41,6 +43,13 @@
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"lint-staged": {
"*.{js,jsx,cjs,mjs,ts,tsx}": [
"eslint"
Expand Down

0 comments on commit bf1812a

Please sign in to comment.