Skip to content

devops: externalize peer dependencies#18

Merged
aslushnikov merged 1 commit into
mainfrom
fix-build
Mar 22, 2026
Merged

devops: externalize peer dependencies#18
aslushnikov merged 1 commit into
mainfrom
fix-build

Conversation

@aslushnikov

Copy link
Copy Markdown
Contributor

These should NOT be bundled.

These should NOT be bundled.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58571377f9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread build.mts
// Bundle, but keep un-bundled all public dependencies.
external: Object.keys({
...pkg.dependencies,
...pkg.peerDependencies,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Don't make flakiness-report a new runtime dependency

For consumers that currently install only @flakiness/sdk (or receive it transitively), this line turns @flakiness/flakiness-report into a new runtime requirement. src/reportUtils.ts:3-4 pulls normalizeReport and validateReport into the published entry bundles, and those modules use runtime symbols from the peer package (src/normalizeReport.ts:72, src/validateReport.ts:11), so lib/index.js/lib/browser.js will now ship bare @flakiness/flakiness-report imports instead of bundled code. Updating to this release would therefore start failing with module-resolution errors unless the host explicitly adds the peer, which is a breaking change rather than an internal build tweak.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, this works as expected

@aslushnikov aslushnikov merged commit 2f0c2ec into main Mar 22, 2026
5 checks passed
@aslushnikov aslushnikov deleted the fix-build branch March 22, 2026 20:06
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.

1 participant