Skip to content

Commit

Permalink
fix: fix: update notification-services-controller subpath exports
Browse files Browse the repository at this point in the history
We have changes our ts bundler to ts-bridge, which exports new type definition files
  • Loading branch information
Prithpal-Sooriya committed Sep 16, 2024
1 parent 3963395 commit f9f11cb
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesController/__fixtures__/index.js",
"types": "../../dist/types/NotificationServicesController/__fixtures__/index.d.ts"
"main": "../../dist/NotificationServicesController/__fixtures__/index.cjs",
"types": "../../dist/NotificationServicesController/__fixtures__/index.d.cts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../dist/NotificationServicesController/index.js",
"types": "../dist/types/NotificationServicesController/index.d.ts"
"main": "../dist/NotificationServicesController/index.cjs",
"types": "../dist/NotificationServicesController/index.d.cts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesController/ui/index.js",
"types": "../../dist/types/NotificationServicesController/ui/index.d.ts"
"main": "../../dist/NotificationServicesController/ui/index.cjs",
"types": "../../dist/NotificationServicesController/ui/index.d.cts"
}
55 changes: 40 additions & 15 deletions packages/notification-services-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,54 @@
}
},
"./notification-services": {
"import": "./dist/NotificationServicesController/index.mjs",
"require": "./dist/NotificationServicesController/index.js",
"types": "./dist/types/NotificationServicesController/index.d.ts"
"import": {
"types": "./dist/NotificationServicesController/index.d.mts",
"default": "./dist/NotificationServicesController/index.mjs"
},
"require": {
"types": "./dist/NotificationServicesController/index.d.cts",
"default": "./dist/NotificationServicesController/index.cjs"
}
},
"./notification-services/ui": {
"import": "./dist/NotificationServicesController/ui/index.mjs",
"require": "./dist/NotificationServicesController/ui/index.js",
"types": "./dist/types/NotificationServicesController/ui/index.d.ts"
"import": {
"types": "./dist/NotificationServicesController/ui/index.d.mts",
"default": "./dist/NotificationServicesController/ui/index.mjs"
},
"require": {
"types": "./dist/NotificationServicesController/ui/index.d.cts",
"default": "./dist/NotificationServicesController/ui/index.cjs"
}
},
"./notification-services/mocks": {
"import": "./dist/NotificationServicesController/__fixtures__/index.mjs",
"require": "./dist/NotificationServicesController/__fixtures__/index.js",
"types": "./dist/types/NotificationServicesController/__fixtures__/index.d.ts"
"import": {
"types": "./dist/NotificationServicesController/__fixtures__/index.d.mts",
"default": "./dist/NotificationServicesController/__fixtures__/index.mjs"
},
"require": {
"types": "./dist/NotificationServicesController/__fixtures__/index.d.cts",
"default": "./dist/NotificationServicesController/__fixtures__/index.cjs"
}
},
"./push-services": {
"import": "./dist/NotificationServicesPushController/index.mjs",
"require": "./dist/NotificationServicesPushController/index.js",
"types": "./dist/types/NotificationServicesPushController/index.d.ts"
"import": {
"types": "./dist/NotificationServicesPushController/index.d.mts",
"default": "./dist/NotificationServicesPushController/index.mjs"
},
"require": {
"types": "./dist/NotificationServicesPushController/index.d.cts",
"default": "./dist/NotificationServicesPushController/index.cjs"
}
},
"./push-services/mocks": {
"import": "./dist/NotificationServicesPushController/__fixtures__/index.mjs",
"require": "./dist/NotificationServicesPushController/__fixtures__/index.js",
"types": "./dist/types/NotificationServicesPushController/__fixtures__/index.d.ts"
"import": {
"types": "./dist/NotificationServicesPushController/__fixtures__/index.d.mts",
"default": "./dist/NotificationServicesPushController/__fixtures__/index.mjs"
},
"require": {
"types": "./dist/NotificationServicesPushController/__fixtures__/index.d.cts",
"default": "./dist/NotificationServicesPushController/__fixtures__/index.cjs"
}
},
"./package.json": "./package.json"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../../dist/NotificationServicesPushController/__fixtures__/index.js",
"types": "../../dist/types/NotificationServicesPushController/__fixtures__/index.d.ts"
"main": "../../dist/NotificationServicesPushController/__fixtures__/index.cjs",
"types": "../../dist/NotificationServicesPushController/__fixtures__/index.d.cts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "",
"license": "MIT",
"sideEffects": false,
"main": "../dist/NotificationServicesPushController/index.js",
"types": "../dist/types/NotificationServicesPushController/index.d.ts"
"main": "../dist/NotificationServicesPushController/index.cjs",
"types": "../dist/NotificationServicesPushController/index.d.cts"
}

0 comments on commit f9f11cb

Please sign in to comment.