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: refactor get package name #3331

Merged
merged 1 commit into from
May 28, 2021
Merged

fix: refactor get package name #3331

merged 1 commit into from
May 28, 2021

Conversation

wraithgar
Copy link
Member

renames read-local-package to read-package-name

The global check needed to be moved outside this function, because it
was handled differently (and will be even moreso when we implement diff
workspaces) in each function. This allowed us to now pass in the prefix
itself instead of the npm object, so we can reuse this function to look
up package names when we refactor npm diff for workspaces.

@wraithgar wraithgar requested a review from a team as a code owner May 28, 2021 18:07
renames read-local-package to read-package-name

The global check needed to be moved outside this function, because it
was handled differently (and will be even moreso when we implement diff
workspaces) in each function.  This allowed us to now pass in the prefix
itself instead of the npm object, so we can reuse this function to look
up package names when we refactor npm diff for workspaces.

PR-URL: #3331
Credit: @wraithgar
Close: #3331
Reviewed-by: @ruyadorno
@ruyadorno ruyadorno merged commit 09f9d2e into release-next May 28, 2021
ruyadorno pushed a commit that referenced this pull request May 28, 2021
renames read-local-package to read-package-name

The global check needed to be moved outside this function, because it
was handled differently (and will be even moreso when we implement diff
workspaces) in each function.  This allowed us to now pass in the prefix
itself instead of the npm object, so we can reuse this function to look
up package names when we refactor npm diff for workspaces.

PR-URL: #3331
Credit: @wraithgar
Close: #3331
Reviewed-by: @ruyadorno
ruyadorno pushed a commit that referenced this pull request May 31, 2021
renames read-local-package to read-package-name

The global check needed to be moved outside this function, because it
was handled differently (and will be even moreso when we implement diff
workspaces) in each function.  This allowed us to now pass in the prefix
itself instead of the npm object, so we can reuse this function to look
up package names when we refactor npm diff for workspaces.

PR-URL: #3331
Credit: @wraithgar
Close: #3331
Reviewed-by: @ruyadorno
ruyadorno pushed a commit that referenced this pull request May 31, 2021
renames read-local-package to read-package-name

The global check needed to be moved outside this function, because it
was handled differently (and will be even moreso when we implement diff
workspaces) in each function.  This allowed us to now pass in the prefix
itself instead of the npm object, so we can reuse this function to look
up package names when we refactor npm diff for workspaces.

PR-URL: #3331
Credit: @wraithgar
Close: #3331
Reviewed-by: @ruyadorno
@wraithgar wraithgar deleted the gar/diff-workspaces branch November 2, 2021 20:01
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.

2 participants