-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(notifications): cleanup notification subpath exports (#4650)
## Explanation This cleans up the notification team packages subpath exports (`@metamask/profile-sync-controller` & `@metamask/notification-services-controller`). Packages will now only export: - Main/root (where there is a barrel file containing all files) - `/mocks` for accessing mock data (also available as a named export in root) - `/ui` for some UI/framework files for specific platforms (web vs mobile). This is subject to change (we may have a clearer distinction for platforms, such as a React folder vs ReactNative folder). We also fix a `jest-haste-map` silent error that was introduced due to subpath modules. - Fix removes the internal subpath package.json names as these are internal only files. <details><summary>**jest haste map silent error**</summary> This was a silent error (CI still passes)  </details> ## References ## Changelog <!-- If you're making any consumer-facing changes, list those changes here as if you were updating a changelog, using the template below as a guide. (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or FIXED. For security-related issues, follow the Security Advisory process.) Please take care to name the exact pieces of the API you've added or changed (e.g. types, interfaces, functions, or methods). If there are any breaking changes, make sure to offer a solution for consumers to follow once they upgrade to the changes. Finally, if you're only making changes to development scripts or tests, you may replace the template below with "None". --> ### `@metamask/profile-sync-controller` - **CHANGED**: Updated subpath package.json files to be internal only to resolve the `jest-haste-map` errors. ### `@metamask/notification-services-controller` - **CHANGED**: Updated subpath package.json files to be internal only to resolve the `jest-haste-map` errors. - **REMOVED/BREAKING**: Removed `/types`, `/processors`, `/constants` subpath exports. These are still accessible through root export. ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
- Loading branch information
1 parent
60fb9b4
commit b4d5f3e
Showing
18 changed files
with
16 additions
and
81 deletions.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
packages/notification-services-controller/notification-services/constants/package.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/notification-services-controller/notification-services/mocks/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/notification-services-controller/notification-services/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/notification-services-controller/notification-services/processors/package.json
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/notification-services-controller/notification-services/types/package.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/notification-services-controller/notification-services/ui/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/notification-services-controller/push-services/mocks/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/notification-services-controller/push-services/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/notification-services-controller/push-services/types/package.json
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/notification-services-controller/push-services/utils/package.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/profile-sync-controller/user-storage/mocks/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters