Skip to content

feat!: compile to JS before publishing#117

Merged
diana-villalvazo-wgu merged 1 commit intoopenedx:mainfrom
arbrandes:compile-before-publishing
Feb 12, 2026
Merged

feat!: compile to JS before publishing#117
diana-villalvazo-wgu merged 1 commit intoopenedx:mainfrom
arbrandes:compile-before-publishing

Conversation

@arbrandes
Copy link
Contributor

@arbrandes arbrandes commented Feb 6, 2026

Description

Configure the package to compile TypeScript and copy SCSS files to dist/ before publishing, rather than publishing raw source files. This allows us to use tsc-alias for @src imports. (frontend-base takes care of build config so that this also works for Webpack.)

Positive side effect: we can now run build checks in CI, again!

Also use more a modern export map to decouple the internal file structure from the package's API.

BREAKING CHANGE

Consuming projects may need to update their imports or SASS @use lines.

Depends on

openedx/frontend-base#164

LLM Usage Notice

Built with assistance from Claude Opus 4.6.

@arbrandes arbrandes force-pushed the compile-before-publishing branch 3 times, most recently from f6110d3 to 910da1f Compare February 6, 2026 14:04
@arbrandes arbrandes changed the title build: Compile before publishing feat!: compile to JS before publishing Feb 6, 2026
@arbrandes arbrandes force-pushed the compile-before-publishing branch from 910da1f to cb06316 Compare February 6, 2026 14:36
@arbrandes arbrandes force-pushed the compile-before-publishing branch 2 times, most recently from 716b7e0 to 920e23c Compare February 6, 2026 16:56
@arbrandes arbrandes force-pushed the compile-before-publishing branch 9 times, most recently from ff0e58c to a386ad4 Compare February 11, 2026 15:15
Configure the package to compile TypeScript and copy SCSS files to dist/
before publishing, rather than publishing raw source files.  This allows
us to use tsc-alias for `@src` imports.  (frontend-base takes care of
build config so that this also works for Webpack.)

Positive side effect: we can now run build checks in CI, again!

Also use more a modern export map to decouple the internal file
structure from the package's API.

In doing this, rename `main.scss` to `app.scss` to conform to the
standard API for frontend apps.

BREAKING CHANGE: Consuming projects may need to update their imports or
SASS `@use` lines.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@arbrandes arbrandes force-pushed the compile-before-publishing branch from a386ad4 to ba98c20 Compare February 11, 2026 15:17
@arbrandes arbrandes marked this pull request as ready for review February 11, 2026 15:17
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.08%. Comparing base (5b0d465) to head (ba98c20).
⚠️ Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##            main     #117       +/-   ##
==========================================
+ Coverage   0.00%   69.08%   +69.08%     
==========================================
  Files          5       50       +45     
  Lines          7      579      +572     
  Branches       0      106      +106     
==========================================
+ Hits           0      400      +400     
- Misses         7      176      +169     
- Partials       0        3        +3     

☔ View full report in Codecov by Sentry.
📢 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.

@diana-villalvazo-wgu diana-villalvazo-wgu merged commit eb3f6ff into openedx:main Feb 12, 2026
6 checks passed
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.

3 participants