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

feat(src): size report #4

Merged
merged 5 commits into from
Dec 29, 2024
Merged

feat(src): size report #4

merged 5 commits into from
Dec 29, 2024

Conversation

chiefmikey
Copy link
Owner

  • implements size report output
  • refactors messages handling for better maintainability

This pull request includes several changes to the src/index.ts file, focusing on centralizing message strings and adding a new helper function to fetch package size from the npm registry. The most important changes include the introduction of a MESSAGES object for centralized message management and the addition of an async function to fetch package sizes.

Centralization of message strings:

  • Added a MESSAGES object to centralize message strings used throughout the code (src/index.ts).
  • Updated various console log statements to use the centralized MESSAGES object instead of hardcoded strings (src/index.ts). [1] [2] [3] [4] [5] [6] [7]

New helper function:

  • Added a new helper function getPackageSizeFromNpm to fetch the package size from the npm registry (src/index.ts).

@chiefmikey chiefmikey merged commit 4e18d66 into main Dec 29, 2024
3 checks passed
@chiefmikey chiefmikey deleted the feat_src_size-report branch December 29, 2024 03:30
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.

1 participant