Skip to content

feat: export duration module#340

Merged
francinelucca merged 2 commits intogithub:mainfrom
jselig-rigetti:patch-1
Apr 10, 2026
Merged

feat: export duration module#340
francinelucca merged 2 commits intogithub:mainfrom
jselig-rigetti:patch-1

Conversation

@jselig-rigetti
Copy link
Copy Markdown
Contributor

@jselig-rigetti jselig-rigetti commented Dec 5, 2025

Export the duration module, allowing the utility to be used without the HTML element.

My current workaround is to have this in a package.json postinstall script

TARGET=node_modules/@github/relative-time-element/package.json
cat <<< "$(jq '.exports["./duration"] = "./dist/duration.js"' $TARGET)" > $TARGET

@jselig-rigetti jselig-rigetti requested a review from a team as a code owner December 5, 2025 03:51
Export the duration module, allowing the utility to be used without the HTML element
@francinelucca francinelucca merged commit 8442907 into github:main Apr 10, 2026
1 check 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