How to generate d.ts files in the same directory as the compiled js files instead of generating them separately in a separate folder #550
-
大部分组件库的d.ts文件和最终的js文件在同级目录中(如下图antd),rslib中默认生成到了独立的文件夹中,尝试配置 复现仓库 : https://github.com/NexxLuo/rslib-demo.git 现象如下:
|
Beta Was this translation helpful? Give feedback.
Answered by
Timeless0911
Dec 12, 2024
Replies: 1 comment 4 replies
-
Please provide a minimal reproduction to help us address the issue, we cannot assist with troubleshooting based on the information currently provided. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should add
compilerOptions.rootDir
andinclude
field totsconfig.json
. It is equivalent tonpx tsc --outDir lib --declarati on
.