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

fix: split tsconfig to reduce package size #85

Merged
merged 3 commits into from
Mar 29, 2022
Merged

fix: split tsconfig to reduce package size #85

merged 3 commits into from
Mar 29, 2022

Conversation

zzmp
Copy link
Contributor

@zzmp zzmp commented Mar 29, 2022

Reduces the exported package size from 3.7M to 1.4M

  • Imports types explicitly to allow for tree-shaking, instead of from barrel files
    • Reduces package size from 3.7M to 1.5M
  • Splits the cli tsconfig to avoid including those files in the exported package (cli is now dev-only)
    • Updates the cli file to always use ts-node
    • Reduces package size from 1.5M to 1.4M

@zzmp zzmp requested a review from willpote March 29, 2022 16:54
@zzmp zzmp merged commit 3ebf637 into main Mar 29, 2022
@zzmp zzmp deleted the tsconfig-split branch March 29, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants