Skip to content

fix: add exports map and include all assets in dist#43

Merged
arbrandes merged 2 commits into
openedx:masterfrom
arbrandes:arbrandes/change-typography-take-3
Apr 14, 2026
Merged

fix: add exports map and include all assets in dist#43
arbrandes merged 2 commits into
openedx:masterfrom
arbrandes:arbrandes/change-typography-take-3

Conversation

@arbrandes
Copy link
Copy Markdown
Contributor

Description

The published npm package was missing both the dist/ and paragon/build/ directories because .gitignore excludes them and there was no .npmignore or files field to override that behavior. This meant consumers weren't getting the built CSS or design token output.

This adds a files field set to ["dist"] and an exports map (./* -> ./dist/*) so that all built assets are included in the package while preserving existing import paths like @edx/brand/logo.svg and @edx/brand/paragon/images/card-imagecap-fallback.png.

The Makefile build target now also copies logos, favicon, and the paragon/ source tree into dist/, and a new clean target removes dist/ and paragon/build/.

LLM usage notice

Built with assistance from Claude.

arbrandes and others added 2 commits April 14, 2026 13:50
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

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

Things considered:

  • Will imports work as expected?
    • Yes, exports is configured properly.
  • Does anything need the scss that isn't being published anymore?
    • Only things that haven't been updated to use Paragon 23/design tokens. This is 2.x, they can stay on 1.x

LGTM!

@arbrandes arbrandes merged commit 72822eb into openedx:master Apr 14, 2026
2 checks passed
@arbrandes arbrandes deleted the arbrandes/change-typography-take-3 branch April 14, 2026 17:25
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.

2 participants