qmhc/vite-plugin-dts

大神,我生成的类型文件是源文件的结构,这种模式下导入组件的时候 package.json 中 types 该如何指定

Closed this issue · 1 comments

Description

image
生成了源文件结构,打包发布的时候 package.json 这样写:
image
别的项目导入这个包的时候,并没有ts提示

Suggested solution

Alternative

No response

Additional context

No response

Validations

  • Read the FAQ.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
qmhc commented

指定入口文件的 dts(通常是 index)即可