Skip to content

Instantly share code, notes, and snippets.

View dvins's full-sized avatar
🚀
Ad Astra!

David Vins dvins

🚀
Ad Astra!
View GitHub Profile
@dvins
dvins / codecov-testresult-monorepo-fix.md
Created May 3, 2025 20:35
Workaround For Monorepos And Buggy Sentry Codecov Test Results GitHub Action

Workaround For Monorepos And Buggy Sentry Codecov Test Results GitHub Action

This explains how to workaround bugs in the Sentry Codecov Test Results GitHub Action when using a monorepo and a folder containing consolidated test result files.

Background

As of the time of this writing there is a bug in the Sentry Codecov Test Results Action for GitHub Workflows. It does not properly use the directory attribute nor do globs presently work for the file or files attribute.

@dvins
dvins / pnpm-peerdependency-override.md
Last active February 24, 2025 00:53
Overriding A Peer Dependency With PNPM

Overriding A Peer Dependency With PNPM

This guide explains how to override peer dependencies in a PNPM monorepo by using a custom hook. It provides a step-by-step solution to ensure consistent versioning across packages that rely on different versions of the same dependency.

Background

When working with a monorepo a challenges arises if you need to use multiple versions of the same package.

Nominally, this can be solved through package aliases and overides. However, a particularly sticky situation is when downstream packages rely peer dependencies of uptstream packages you need two or more versions of.