Skip to content

Commit

Permalink
chore: 빌드 시 exports type 필드 경로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdtjgus76 committed May 24, 2024
1 parent 09aa783 commit a3e72b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/wow-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"exports": {
"./styles.css": "./dist/styles.css",
"./Box": {
"types": "./dist/Box/index.d.ts",
"types": "./dist/components/Box/index.d.ts",
"require": "./dist/Box.cjs",
"import": "./dist/Box.js"
},
"./Button": {
"types": "./dist/Button/index.d.ts",
"types": "./dist/components/Button/index.d.ts",
"require": "./dist/Button.cjs",
"import": "./dist/Button.js"
},
"./Toggle": {
"types": "./dist/Toggle/index.d.ts",
"types": "./dist/components/Toggle/index.d.ts",
"require": "./dist/Toggle.cjs",
"import": "./dist/Toggle.js"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/wow-ui/src/scripts/generateBuildConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ const generateExports = (files: string[]) => {
for (const file of files) {
const filePath = `./${file}`;
const distPath = `./dist/${file}`;
const typePath = `./dist/components/${file}`;
exportsObj[filePath] = {
types: `${distPath}/index.d.ts`,
types: `${typePath}/index.d.ts`,
require: `${distPath}.cjs`,
import: `${distPath}.js`,
};
Expand Down

0 comments on commit a3e72b8

Please sign in to comment.