swr
swr copied to clipboard
chore: refactor version bump script for improved readability and maintainability
This commit refactors the version bump script to enhance its readability and maintainability. The following changes have been made:
- Consolidated environment variable extraction for cleaner code.
- Simplified the
bumpVersionfunction to use a more concise approach for logging or executing the command. - Streamlined the
updateVersionfunction with improved logic and readability.
These improvements aim to make the script easier to understand and modify in the future.
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
You don't need semicolons in JS/TS code anymore, why?
Won't the destructuring of ,process.env, be a problem for those that use DefinePlugin from webpack? Typically the process.env.FOO is inlined as is.