relative-time-element
relative-time-element copied to clipboard
feat: export duration module
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