Open villander opened 2 years ago
You need something that will build your package from TS to JS. Two choices would be:
tsc
directly in the package so the package will contain .js files that will be consumed by ember-auto-import. You can run tsc
from a prepare script so it happens automatically after npm/yarn install, and then only in cases when you're actively developing the package would you need to run tsc --watch
manually.autoImport.webpack
in ember-cli-build.js.
I've just created a simple package to share types across my monorepo and I'm getting an crazy error from ember-auto-import regarding the webpack. I'm using
"ember-auto-import": "^2.2.3"
My simple package, have these two files:
And after I install this package on my Ember app I'm getting this error. and import it inside one component: