Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Move @shopify/network to dependencies in react-performance #2819

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

brendo
Copy link
Contributor

@brendo brendo commented Aug 9, 2024

Description

The @shopify/network package is currently listed as a devDependency for the @shopify/react-performance package. I think this is incorrect as the package is referenced from from performanceReport file.

I have moved the package from devDependency to dependency to resolve.

That said, if we look at the usage of the package in the file, it's simply to reference two constants, so I wonder if we're more comfortable/pragmatic in simply inlining these definitions?

  • Header.ContentType

[Header.ContentType]: 'application/json',

  • Method.Post

@brendo brendo requested a review from a team as a code owner August 9, 2024 01:26
@brendo brendo requested a review from melnikov-s August 9, 2024 01:26
@brendo brendo force-pushed the chore_fix-react-performance-dep branch from ea7f7a4 to 5b2c18e Compare September 2, 2024 00:13
Copy link
Member

@BPScott BPScott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good for me, though I think you'll need to chase #help-admin-web-platform for a codeowner review to merge this

@brendo brendo merged commit d069170 into main Sep 4, 2024
5 checks passed
@brendo brendo deleted the chore_fix-react-performance-dep branch September 4, 2024 01:12
@jesstelford
Copy link
Contributor

+1 to inlining - the fewer dependencies the better 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants