mercredi 3 juin 2020

Reuse types definitions from an in-repo addon via ember-cli-typescript

I am using ember-cli-typescript in both the main app and the in-repo addon that are located in one yarn workspace. In the addon I declared types for ember-concurrency which I also need in the main app. However, I don't want to copy-paste the file, I'd like to reuse it instead.

If no actions are performed the build of the main app fails yielding complaints on unknown module 'ember-concurrency' pointing on the files from the addon.

Is there a simple solution for this problem?




Aucun commentaire:

Enregistrer un commentaire