Skip to content
This repository has been archived by the owner on Jan 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #23 from rwjblue/addon-entry-point
Browse files Browse the repository at this point in the history
Use addon/index.js as "main" entry point.
  • Loading branch information
rwjblue authored Jan 10, 2019
2 parents 158e6e5 + 8bda535 commit f4fe6ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@ module.exports = {
{
files: [
'ember-cli-build.js',
'index.js',
'ember-addon-main.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'tests/dummy/config/**/*.js'
],
excludedFiles: [
'addon/**',
'addon-test-support/**',
'app/**',
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
Expand Down
2 changes: 1 addition & 1 deletion addon/component-managers/sparkles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { set } from '@ember/object';
import { getOwner, setOwner } from '@ember/application';
import ApplicationInstance from '@ember/application/instance';
import { capabilities } from '@ember/component';
import SparklesComponent from 'sparkles-component';
import SparklesComponent from '../';

export interface ComponentManagerArgs {
named: object;
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
},
"ember-addon": {
"configPath": "tests/dummy/config",
"defaultBlueprint": "install-sparkles"
}
"defaultBlueprint": "install-sparkles",
"main": "ember-addon-main.js"
},
"main": "addon/index.js"
}

0 comments on commit f4fe6ec

Please sign in to comment.