Skip to content

Commit

Permalink
Merge pull request mainmatter#2890 from mainmatter/exports
Browse files Browse the repository at this point in the history
chore(ember-simple-auth): specify addon exports
  • Loading branch information
BobrImperator authored Dec 28, 2024
2 parents c674313 + e85898f commit 1c5d435
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
42 changes: 35 additions & 7 deletions packages/ember-simple-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,45 @@
}
},
"exports": {
".": "./dist/index.js",
"./*": "./dist/*.js",
"./authenticators/oauth2-password-grant": "./dist/authenticators/oauth2-password-grant.js",
".": {
"default": "./dist/index.js",
"types": "./declarations/index.d.ts"
},
"./*": {
"default": "./dist/*.js",
"types": "./declarations/*.d.ts"
},
"./addon-main.js": "./addon-main.cjs",
"./authenticators/*": {
"default": "./dist/authenticators/*.js",
"types": "./declarations/authenticators/*.d.ts"
},
"./initializers/*": {
"default": "./dist/initializers/*.js",
"types": "./declarations/initializers/*.d.ts"
},
"./services/session": {
"default": "./dist/services/session.js",
"types": "./declarations/services/session.d.ts"
},
"./session-stores/*": {
"default": "./dist/session-stores/*.js",
"types": "./declarations/session-stores/*.d.ts"
},
"./test-support": {
"types": "./declarations/test-support/*.d.ts",
"default": "./dist/test-support/index.js"
"default": "./dist/test-support/index.js",
"types": "./declarations/test-support/*.d.ts"
},
"./utils/*": {
"types": "./dist/utils/*.d.ts",
"default": "./dist/utils/*.js"
"default": "./dist/utils/*.js",
"types": "./declarations/utils/*.d.ts"
}
},
"typesVersions": {
"*": {
"*": [
"./declarations/*.d.ts"
]
}
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/ember-simple-auth/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default {
addon.publicEntrypoints([
'services/**/*.js',
'session-stores/**/*.js',
'utils/is-fastboot.js',
'utils/**/*.js',
'authenticators/**/*.js',
'test-support/**/*.js',
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-simple-auth/src/services/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type InternalSessionMock = {
@extends Service
@public
*/
export default class EmberSimpleAuthSessionService extends Service {
export default class SessionService extends Service {
session: InternalSessionMock;

constructor(owner: any) {
Expand Down

0 comments on commit 1c5d435

Please sign in to comment.