Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to package exports #841

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Switch to package exports #841

merged 1 commit into from
Apr 3, 2023

Conversation

connor-baer
Copy link
Member

Purpose

When switching to changesets for release automation (#752), I forgot that Foundry is released from inside the /dist folder. This was done to keep the import paths for configs clean (e.g. import createConfig from '@sumup/foundry/eslint';).

The new exports field offers a better way to define package entry points.

Approach and changes

  • Replace main with exports in package.json (supported in Node 11+)

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests

@connor-baer connor-baer requested a review from a team as a code owner April 3, 2023 11:17
@connor-baer connor-baer requested review from pdrmdrs and removed request for a team April 3, 2023 11:17
@changeset-bot
Copy link

changeset-bot bot commented Apr 3, 2023

🦋 Changeset detected

Latest commit: 87ba83d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sumup/foundry Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@connor-baer connor-baer merged commit 286d98d into next Apr 3, 2023
@connor-baer connor-baer deleted the bugfix/exports branch April 3, 2023 11:17
@connor-baer connor-baer mentioned this pull request Apr 16, 2023
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