From a3e72b8f61eebd0a7ad701d4ec9782d4ed8f1c8b Mon Sep 17 00:00:00 2001 From: ghdtjgus76 Date: Fri, 24 May 2024 14:07:19 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B9=8C=EB=93=9C=20=EC=8B=9C=20expor?= =?UTF-8?q?ts=20type=20=ED=95=84=EB=93=9C=20=EA=B2=BD=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wow-ui/package.json | 6 +++--- packages/wow-ui/src/scripts/generateBuildConfig.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/wow-ui/package.json b/packages/wow-ui/package.json index f26e3817..3eae9bd3 100644 --- a/packages/wow-ui/package.json +++ b/packages/wow-ui/package.json @@ -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" } diff --git a/packages/wow-ui/src/scripts/generateBuildConfig.ts b/packages/wow-ui/src/scripts/generateBuildConfig.ts index f5524741..99a5e852 100644 --- a/packages/wow-ui/src/scripts/generateBuildConfig.ts +++ b/packages/wow-ui/src/scripts/generateBuildConfig.ts @@ -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`, };