Skip to content

Commit

Permalink
fix(react): package.json 및 build utils 변경 (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 authored Jan 14, 2025
1 parent 8a7dad5 commit 5add6d9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-weeks-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-kit/react': patch
---

fix(react): package.json 및 build utils 변경 - @ssi02014
2 changes: 1 addition & 1 deletion packages/react/build.utils.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const getEntryFileNames = (name, format, path) => {
const cleanName = name.replace(`${path}-`, '');
return `${path}/${cleanName}/${cleanName}.${format}`;
return `${path}/${cleanName}/index.${format}`;
};

export const getFormatEntryFileNames = (chunkInfo, format) => {
Expand Down
26 changes: 13 additions & 13 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,30 +78,30 @@
"require": "./dist/components/index.js",
"import": "./dist/components/index.mjs"
},
"./components/*": {
"types": "./dist/components/*/index.d.ts",
"require": "./dist/components/*/index.js",
"import": "./dist/components/*/index.mjs"
},
"./hooks": {
"types": "./dist/hooks/index.d.ts",
"require": "./dist/hooks/index.js",
"import": "./dist/hooks/index.mjs"
},
"./hooks/*": {
"types": "./dist/hooks/*/index.d.ts",
"require": "./dist/hooks/*/index.js",
"import": "./dist/hooks/*/index.mjs"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"require": "./dist/utils/index.js",
"import": "./dist/utils/index.mjs"
},
"./components/*": {
"types": "./dist/components/[name]/[name].d.ts",
"require": "./dist/components/[name]/[name].js",
"import": "./dist/components/[name]/[name].mjs"
},
"./hooks/*": {
"types": "./dist/hooks/[name]/[name].d.ts",
"require": "./dist/hooks/[name]/[name].js",
"import": "./dist/hooks/[name]/[name].mjs"
},
"./utils/*": {
"types": "./dist/utils/[name]/[name].d.ts",
"require": "./dist/utils/[name]/[name].js",
"import": "./dist/utils/[name]/[name].mjs"
"types": "./dist/utils/*/index.d.ts",
"require": "./dist/utils/*/index.js",
"import": "./dist/utils/*/index.mjs"
},
"./package.json": "./package.json"
},
Expand Down

0 comments on commit 5add6d9

Please sign in to comment.