Skip to content

Commit

Permalink
fix: 类型构建错误
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Sep 19, 2024
1 parent 6b87265 commit 2e98a84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vite.config.build.taro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default defineConfig({
fse.remove('./dist/types/packages/nutui.taro.react.build.d.ts')
fse.outputFile(
'./dist/types/index.d.ts',
`${data.replace(/\.\.\//g, './')}`
`${data.replace(/\.\//g, './packages/')}`
)
})
},
Expand Down
4 changes: 2 additions & 2 deletions vite.config.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export default defineConfig({
fse
.readFile('./dist/types/packages/nutui.react.build.d.ts', 'utf-8')
.then((data: string) => {
fse.remove('./dist/types/packages/nutui.react.build.d.ts')
// fse.remove('./dist/types/packages/nutui.react.build.d.ts')
fse.outputFile(
'./dist/types/index.d.ts',
`${data.replace(/\.\.\//g, './')}`
`${data.replace(/\.\//g, './packages/')}`
)
})
},
Expand Down

0 comments on commit 2e98a84

Please sign in to comment.