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

chore: remove non-envelope code paths and tests #6603

Merged
merged 14 commits into from
May 16, 2024
Merged

Conversation

mrstork
Copy link
Contributor

@mrstork mrstork commented May 14, 2024

Summary

Replaces #5660
Fixes CT-1151


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code πŸ§‘β€πŸ’». This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire πŸ”₯ (e.g. incident related), you can skip this step.
  • Read the contribution guidelines πŸ“–. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) πŸ§ͺ
  • Update or add documentation (if features were changed or added) πŸ“
  • Make sure the status checks below are successful βœ…

@mrstork mrstork requested a review from jasonbarry May 14, 2024 19:26
@mrstork mrstork requested a review from a team as a code owner May 14, 2024 19:26
@mrstork mrstork marked this pull request as draft May 14, 2024 19:28
Copy link

github-actions bot commented May 14, 2024

πŸ“Š Benchmark results

Comparing with 34d600d

  • Dependency count: 1,342 (no change)
  • Package size: 313 MB (no change)
  • Number of ts-expect-error directives: 985 ⬇️ 0.71% decrease vs. 34d600d

@mrstork mrstork marked this pull request as ready for review May 15, 2024 17:19
jasonbarry
jasonbarry previously approved these changes May 15, 2024
Copy link
Member

@jasonbarry jasonbarry left a comment

Choose a reason for hiding this comment

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

Looking good @mrstork! πŸ™Œ Left one non-blocking comment

Comment on lines 12 to 13
env = await getEnvelopeEnv({ api, context: options.context, env, siteInfo })
env = await getDotEnvVariables({ devConfig: { ...config.dev }, env, site })
Copy link
Member

Choose a reason for hiding this comment

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

The readability here was a bit confusing for me, considering that the consecutive lines re-assign to env. Maybe we can use new variable names, and const instead of let, now that there's no conditional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 1e6343f

Copy link
Member

@jasonbarry jasonbarry left a comment

Choose a reason for hiding this comment

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

Amazing, thank you so much @mrstork!! 🌟

@mrstork mrstork merged commit ea71bf4 into main May 16, 2024
48 checks passed
@mrstork mrstork deleted the remove-envelope-checks branch May 16, 2024 18:14
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

2 participants