Closed williaster closed 4 years ago
@williaster So the order in which packages get "typed" is done by TypeScript, not Beemo. It's built into the project references layer itself.
Do you know which change caused these failures to start?
I tried to trace it down to the exact commit and was able to figure out that it was a rebase issue after publishing.
so the package I was working on referenced an old version in the monorepo, and it didn't have the type exports I was attempting to import. sorry for the back and forth, learned a lot about typescript references tho! 🙏
@williaster Awesome, glad you figured it out!
We're using
nimbus
, built onbeemo
, for our monorepovx
project. We've recently started seeing CI failures due totypescript
errors when e.g.,package-b
depends on types frompackage-a
, and but during compilation the types frompackage-a
are not defined:From my understanding, monorepo typescript build order is specified by
references
intsconfig.json
files, and withbeemo
the--reference-workspaces
flag constructs these dependencies from the dependency tree. Locally thesereference
dependencies look correct (e.g,.xychart
referencesscale
andaxis
, andaxis
referencesscale
) and locally I don't see thetypescript
errors that we see in CI if I first remove alltsconfig.json
andtsconfig.tsbuildinfo
files in all monorepo package directories. I'm wondering if there's any way that in CI / a git workflow env these files might be cached or behave differently.Thanks for the great library and for any thoughts! 🙌