Skip to content

Commit

Permalink
refactor: add multiple file exports for notification-services-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Prithpal-Sooriya committed Aug 13, 2024
1 parent 3a9b2e8 commit 8a035a4
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 8 deletions.
50 changes: 50 additions & 0 deletions packages/notification-services-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,56 @@
"require": "./dist/index.js",
"types": "./dist/types/index.d.ts"
},
"./notification-services": {
"import": "./dist/NotificationServicesController/index.mjs",
"require": "./dist/NotificationServicesController/index.js",
"types": "./dist/types/NotificationServicesController/index.d.ts"
},
"./notification-services/types": {
"import": "./dist/NotificationServicesController/types/index.mjs",
"require": "./dist/NotificationServicesController/types/index.js",
"types": "./dist/types/NotificationServicesController/types/index.d.ts"
},
"./notification-services/processors": {
"import": "./dist/NotificationServicesController/processors/index.mjs",
"require": "./dist/NotificationServicesController/processors/index.js",
"types": "./dist/types/NotificationServicesController/processors/index.d.ts"
},
"./notification-services/constants": {
"import": "./dist/NotificationServicesController/constants/index.mjs",
"require": "./dist/NotificationServicesController/constants/index.js",
"types": "./dist/types/NotificationServicesController/constants/index.d.ts"
},
"./notification-services/ui": {
"import": "./dist/NotificationServicesController/ui/index.mjs",
"require": "./dist/NotificationServicesController/ui/index.js",
"types": "./dist/types/NotificationServicesController/ui/index.d.ts"
},
"./notification-services/__mocks__": {
"import": "./dist/NotificationServicesController/__fixtures__/index.mjs",
"require": "./dist/NotificationServicesController/__fixtures__/index.js",
"types": "./dist/types/NotificationServicesController/__fixtures__/index.d.ts"
},
"./push-services": {
"import": "./dist/NotificationServicesPushController/index.mjs",
"require": "./dist/NotificationServicesPushController/index.js",
"types": "./dist/types/NotificationServicesPushController/index.d.ts"
},
"./push-services/types": {
"import": "./dist/NotificationServicesPushController/types/index.mjs",
"require": "./dist/NotificationServicesPushController/types/index.js",
"types": "./dist/types/NotificationServicesPushController/types/index.d.ts"
},
"./push-services/utils": {
"import": "./dist/NotificationServicesPushController/utils/index.mjs",
"require": "./dist/NotificationServicesPushController/utils/index.js",
"types": "./dist/types/NotificationServicesPushController/utils/index.d.ts"
},
"./push-services/__mocks__": {
"import": "./dist/NotificationServicesPushController/__fixtures__/index.mjs",
"require": "./dist/NotificationServicesPushController/__fixtures__/index.js",
"types": "./dist/types/NotificationServicesPushController/__fixtures__/index.d.ts"
},
"./package.json": "./package.json"
},
"main": "./dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import Controller from './NotificationServicesController';

const NotificationServicesController = Controller;
export { Controller };
export default NotificationServicesController;
export * from './NotificationServicesController';
export * as Types from './types';
export * as Mocks from './__fixtures__';
export * as Processors from './processors';
export * as Constants from './constants';
export * as UI from './ui';
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Controller from './NotificationServicesPushController';

const NotificationServicesPushController = Controller;
export { Controller };
export default NotificationServicesPushController;
export * from './NotificationServicesPushController';
export * as Types from './types';
export * as Utils from './utils';
export * as Mocks from './__fixtures__';
12 changes: 6 additions & 6 deletions packages/profile-sync-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"require": "./dist/controllers/authentication/index.js",
"types": "./dist/types/controllers/authentication/index.d.ts"
},
"./auth/__mocks__": {
"import": "./dist/controllers/authentication/__fixtures__/index.mjs",
"require": "./dist/controllers/authentication/__fixtures__/index.js",
"types": "./dist/types/controllers/authentication/__fixtures__/index.d.ts"
},
"./user-storage": {
"import": "./dist/controllers/user-storage/index.mjs",
"require": "./dist/controllers/user-storage/index.js",
"types": "./dist/types/controllers/user-storage/index.d.ts"
},
"./dist/mocks/auth": {
"import": "./dist/controllers/authentication/__fixtures__/index.mjs",
"require": "./dist/controllers/authentication/__fixtures__/index.js",
"types": "./dist/types/controllers/authentication/__fixtures__/index.d.ts"
},
"./dist/mocks/user-storage": {
"./user-storage/__mocks__": {
"import": "./dist/controllers/user-storage/__fixtures__/index.mjs",
"require": "./dist/controllers/user-storage/__fixtures__/index.js",
"types": "./dist/types/controllers/user-storage/__fixtures__/index.d.ts"
Expand Down

0 comments on commit 8a035a4

Please sign in to comment.