Skip to content

Commit

Permalink
feat(ember-simple-auth): remove app re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Dec 29, 2024
1 parent 48c1ebb commit 4a9d067
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
7 changes: 1 addition & 6 deletions packages/ember-simple-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@
"type": "addon",
"main": "addon-main.cjs",
"app-js": {
"./initializers/ember-simple-auth.js": "./dist/_app_/initializers/ember-simple-auth.js",
"./services/session.js": "./dist/_app_/services/session.js",
"./session-stores/application.js": "./dist/_app_/session-stores/application.js",
"./utils/is-fastboot.js": "./dist/_app_/utils/is-fastboot.js",
"./utils/location.js": "./dist/_app_/utils/location.js",
"./utils/objects-are-equal.js": "./dist/_app_/utils/objects-are-equal.js"
"./initializers/ember-simple-auth.js": "./dist/_app_/initializers/ember-simple-auth.js"
}
},
"exports": {
Expand Down
7 changes: 1 addition & 6 deletions packages/ember-simple-auth/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ export default {
// These are the modules that should get reexported into the traditional
// "app" tree. Things in here should also be in publicEntrypoints above, but
// not everything in publicEntrypoints necessarily needs to go here.
addon.appReexports([
'services/session.js',
'utils/**/*.js',
'session-stores/application.js',
'initializers/ember-simple-auth.js',
]),
addon.appReexports(['initializers/ember-simple-auth.js']),

// Follow the V2 Addon rules about dependencies. Your code can import from
// `dependencies` and `peerDependencies` as well as standard Ember-provided
Expand Down
3 changes: 3 additions & 0 deletions packages/test-esa/app/services/session.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Service from 'ember-simple-auth/services/session';

export default class SessionService extends Service {}
3 changes: 3 additions & 0 deletions packages/test-esa/app/session-stores/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Adaptive from 'ember-simple-auth/session-stores/adaptive';

export default class AdaptiveStore extends Adaptive {}

0 comments on commit 4a9d067

Please sign in to comment.