Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.d.ts source files don't through the beforeWriteFile hook #43

Closed
JobinJia opened this issue Nov 10, 2021 · 2 comments
Closed

.d.ts source files don't through the beforeWriteFile hook #43

JobinJia opened this issue Nov 10, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@JobinJia
Copy link

image

我想去掉一层= =

@qmhc
Copy link
Owner

qmhc commented Nov 11, 2021

你的意思是去掉整个 packages 文件夹的内容,还是想要将 packages/**/* 变成 **/*types 往上走一层)?

@JobinJia
Copy link
Author

你的意思是去掉整个 packages 文件夹的内容,还是想要将 packages/**/* 变成 **/*types 往上走一层)?

不好意思,太忙了昨儿,忘了回复
是你说的第二种
想要将 packages/**/* 变成 **/*(types 往上走一层)?
因为我在beforWritFile钩子里面看了,全局类型的文件不在这个钩子中出来=。=(还有生产的类型入口文件也是)
比如,我替换了packages的路径。那么生成的类型入口文件 里的 内容 还会是export * from './packages/xxx/xxx' (然而实际上packages这一层在beforWirtFile中已被替换掉了= =)

@qmhc qmhc added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Nov 19, 2021
@qmhc qmhc closed this as completed in 3265412 Nov 21, 2021
@qmhc qmhc changed the title 升级0.9.4之后,可以打包全局的 .d.ts文件,但是路径要怎么修改呢? .d.ts source files don't through the beforeWriteFile hook Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants