Generating components for in-repo addon uses partially incorrect path
When running ember g component --ir shared test-component the following files are generated:
installing component
identical ../shared/addon/pods/components/test-component/component.js
identical ../shared/addon/pods/components/test-component/template.hbs
[...]
installing component-addon
identical lib/shared/app/pods/components/test-component/component.js
component is using the correct path as specified in package.json
"ember-addon": {
"paths": [
"../shared"
]
}
however component-addon is using a hardcoded path in component-addon/index.js for the __root__ key.
__root__: function(options) {
if (options.inRepoAddon) {
return path.join('lib', options.inRepoAddon, 'app');
}
return 'app';
},
Removing the __root__ key from the template results in ../shared/addon/[...] so not quite correct either.
If someone could point me in the right direction how to get to the correct path I'd be happy to create a PR.
@dguettler did you ask in the discord #dev-ember-js or perhaps in #dev-ember-cli (generators used to live in ember-cli) chat already? https://emberjs.com/community/
If someone could point me in the right direction how to get to the correct path I'd be happy to create a PR.
@pixelhandler I brought it up originally in #general (1/9/2019 - is there no way to link to messages in Discord?) channel and had a brief discussion with @Turbo87 but he didn't have time at this point to look further into it.