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

Upgrade #7805

Open
wants to merge 14 commits into
base: v8
Choose a base branch
from
Open

Upgrade #7805

wants to merge 14 commits into from

Conversation

JustFly1984
Copy link

Work in progress. Upgrading typescript@5.4.2, uodating dependencies, improving types, improving eslint

Copy link

welcome bot commented Mar 17, 2024

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@zkochan
Copy link
Member

zkochan commented Mar 17, 2024

Don't reformat the code.

@zkochan
Copy link
Member

zkochan commented Mar 20, 2024

We won't merge any refactoring to the v8 branch. That's for sure. Also, don't create a PR with so many changes. Formatting changes won't be merged. Other improvements that are not related to formatting changes can be discussed but in smaller PRs.

…om every package into @pnpm/types, to reduce posibility of circular dependencies, improving types, getting rid of types-only packages.
@JustFly1984
Copy link
Author

@zkochan What is your main working branch?
Sorry for reformatting, I'm mostly refactoring it for myself, bulletproofing it. and learning pnpm on the way.
I've tried to do the same with yarn and npm-cli itself, but their codebase in much worse condition.
I'm not considering you to merge it at this point, I just want to be able to diff v8 against your current working branch, to see changes later.
I want to reduce an amount of packages to just one.

@zkochan
Copy link
Member

zkochan commented Mar 23, 2024

"main" is the main working branch.

@moekhalil
Copy link

In reply to @JustFly1984 :

@zkochan What is your main working branch? Sorry for reformatting, I'm mostly refactoring it for myself, bulletproofing it. and learning pnpm on the way. I've tried to do the same with yarn and npm-cli itself, but their codebase in much worse condition. I'm not considering you to merge it at this point, I just want to be able to diff v8 against your current working branch, to see changes later. I want to reduce an amount of packages to just one.

FYI, if your interested in understanding more about pull requests, and how to make them more readable for others, you can start here , or here. For best practices check this out and this as well

Some suggestions:

  1. You can create pull requests in your own fork if you wish to for testing or visibility. This link does just that and compares your main to pnpm/v8, as well as keeps the pull request only on your copy/fork of the repo.

  2. You can view the differences across branches without a pull request. 😄 If you clone the branch locally (using git clone https://github.com/pnpm/pnpm.git), you can go into folder and just use git diff remotes/origin/main remotes/origin/v8 to compare the branches, or if you git pull origin/v8 after the clone, you can just do git diff main v8 to clone the local copies of the branches, You can also export that diff to a file git diff remotes/origin/main remotes/origin/v8 > main-vs-v8.diff and open it with a text-editor/diff-viewer. No need for a pull request.

  3. Lastly, regarding the "upgrade" to typescript (besides having a more specific title and description), if you were to create a pull request similar to it, you should only commit code changes required for the upgrade, or relating to pull request. That way reviewers can easily follow along and review the changes, and ensure when the pull request is merged, it only effects related areas. That way if something goes wrong, it's easier to figure out what pull request was likely the cause.

Side note: Large format changes should be avoided. Code is formatted using linters/tools before they are committed and if a team ever decides they wish to change the rules and reformat, a big manual PR is probably not the best way. In my opinion, it would be best to update the lint/rules, and create a GitHub action that applies the formatting to the code and creates a pull request for all to review. That way, since the large diff is coming from the GitHub Action, team members can be certain no code changes unrelated to the formatting was "snuck in".

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.

None yet

3 participants