relative-time-element icon indicating copy to clipboard operation
relative-time-element copied to clipboard

feat: export duration module

Open jselig-rigetti opened this issue 1 month ago • 0 comments

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 avatar Dec 05 '25 03:12 jselig-rigetti