Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: refactor version bump script for improved readability and maintainability #3021

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

Open
Ayoub-Mabrouk wants to merge 1 commit into vercel:main
base: main
Choose a base branch
Loading
from Ayoub-Mabrouk:chore/refactor-version-bump-script

Conversation

@Ayoub-Mabrouk
Copy link

@Ayoub-Mabrouk Ayoub-Mabrouk commented Sep 15, 2024

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 bumpVersion function to use a more concise approach for logging or executing the command.
  • Streamlined the updateVersion function with improved logic and readability.

These improvements aim to make the script easier to understand and modify in the future.

Copy link

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.

Copy link

You don't need semicolons in JS/TS code anymore, why?

icyJoseph reacted with thumbs up emoji

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shuding shuding Awaiting requested review from shuding shuding is a code owner

@huozhi huozhi Awaiting requested review from huozhi huozhi is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /