Skip to content

fix: drop broken i18n export from the package index - #231

Merged
arbrandes merged 2 commits into
openedx:masterfrom
arbrandes:arbrandes/fix-i18n-export
Sep 20, 2026
Merged

arbrandes merged 2 commits into
openedx:masterfrom
arbrandes:arbrandes/fix-i18n-export

Conversation

@arbrandes

Copy link
Copy Markdown
Contributor

Description

src/index.ts re-exported ./i18n, which in turn re-exports the atlas-generated src/i18n/messages module. That module is gitignored and not generated during prepack, so the published tarball's dist/i18n/index.js points at a file that doesn't exist. Webpack then fails to resolve ./messages in any site that depends on the package, even if it only imports adminConsoleApp.

Sites get translations via their own translations:pull (atlas) step, not from package exports, so the export is unnecessary. Dropping it matches frontend-app-learner-dashboard.

LLM usage notice

Built with assistance from Claude.

arbrandes and others added 2 commits September 20, 2026 07:13
The atlas-generated messages module is not published to npm, so
re-exporting it broke webpack builds in consuming sites.

Co-Authored-By: Claude <noreply@anthropic.com>
The test raced a 5000ms auto-dismiss against a 5050ms waitFor timeout,
which flaked on slow CI runners.

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.53%. Comparing base (20e6337) to head (e179251).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #231   +/-   ##
=======================================
  Coverage   98.53%   98.53%           
=======================================
  Files          73       73           
  Lines        1294     1294           
  Branches      423      423           
=======================================
  Hits         1275     1275           
  Misses         19       19           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arbrandes
arbrandes merged commit fd7a9b7 into openedx:master Sep 20, 2026
6 checks passed
@arbrandes
arbrandes deleted the arbrandes/fix-i18n-export branch September 20, 2026 10:24
@openedx-semantic-release-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.0.0-alpha.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants