Currently, importing a template (i.e., in an addon's component) includes a
lib/my-addon/addon/components/x-foo.ts
// @ts-ignore: Ignore import of compiled template
import layout from '../templates/components/x-foo';
to get around the issue of typescript being unable to resolve the module. Since we're already maintaining a lot of bookkeeping for addons (in particular, tsconfig.json paths/includes for in-repo addons/engines), have we considered
lib/my-addon/addon/components/x-foo.ts
import layout from 'my-addon/templates/components/x-foo';
Currently, importing a template (i.e., in an addon's component) includes a
lib/my-addon/addon/components/x-foo.ts
to get around the issue of typescript being unable to resolve the module. Since we're already maintaining a lot of bookkeeping for addons (in particular,
tsconfig.json
paths/includes for in-repo addons/engines), have we consideredlib/my-addon/addon/components/x-foo.ts
along with
(A) types/my-addon.d.ts
or
(B) types/my-addon.d.ts
or
(C) types/my-addon.d.ts