Skip to content

Conversation

@yzx9
Copy link

@yzx9 yzx9 commented Jun 15, 2021

By default with our config, typescript will generate a .tsbuildinfo file in the parent directory of the outDir. However, the parent of ./lib/esm is ./lib which is the publish dir, we have to explicitly specify path of .tsbuildinfo.

This will avoid publish .tsbuildinfo file, which has a size of 32kb, the lib folder will shrink from 65.1kb to 32.0kb.

@Mister-Hope
Copy link
Member

That's a nice catch!

@meteorlxy meteorlxy changed the title chore(shared): avoid publish tsbuildinfo build(shared): avoid publishing tsbuildinfo Jun 15, 2021
@meteorlxy meteorlxy merged commit c4d009c into vuepress:main Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants