Skip to content

Commit

Permalink
Fix rollup files & rollup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed May 13, 2024
1 parent 8a2c86e commit 9f83636
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ember-can/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@
"version": 2,
"type": "addon",
"main": "addon-main.cjs",
"app-js": {}
"app-js": {
"./services/abilities.js": "./dist/_app_/services/abilities.js",
"./services/can.js": "./dist/_app_/services/can.js",
"./utils/normalize.js": "./dist/_app_/utils/normalize.js"
}
},
"peerDependencies": {
"@ember/string": "^3.1.1",
Expand Down
2 changes: 2 additions & 0 deletions ember-can/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export default {
'computed.js',
'computed.js',
'ability.ts',
'services/**/*.js',
'utils/**/*.js',
]),

// These are the modules that should get reexported into the traditional
Expand Down
2 changes: 1 addition & 1 deletion ember-can/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Ability from 'ember-can/ability';
import Ability from './ability.ts';

export { Ability };
2 changes: 1 addition & 1 deletion ember-can/src/services/abilities.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Service from '@ember/service';
import Ability, { type Model } from 'ember-can/ability';
import Ability, { type Model } from '../ability.ts';
import { assert } from '@ember/debug';
import { getOwner } from '@ember/application';
import normalizeAbilityString from '../utils/normalize.ts';
Expand Down

0 comments on commit 9f83636

Please sign in to comment.