Skip to content

Release new version - #24

Merged
korsvanloon merged 1 commit into
mainfrom
changeset-release/main
Aug 11, 2026
Merged

Release new version#24
korsvanloon merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@labdigital/intl-extractor@2.5.0

Minor Changes

  • 3ad1490: Expose the extractor as a library, not just a CLI.

    • Declare an exports map, so @labdigital/intl-extractor can be imported. dist/index.js was already built and shipped; nothing referenced it.
    • Add buildLabels({ input, source, fallback, onFile }), which returns the label tree without touching the output file. processFiles becomes the read-merge-write wrapper around it.
    • Add a fallback option for labels with no value in the source. It receives the full key path and defaults to the label name, so existing behaviour is unchanged.

    Two fixes while in there: processFiles did not await its write, and its "no existing source file" branch was unreachable because the read threw first.

@korsvanloon
korsvanloon merged commit 72e015d into main Aug 11, 2026
4 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.

1 participant