I needed to futz with these to get local builds working, and in the
process it looks like we can refine things. In particular:
- We should be able to avoid defining `baseUrl`, `rootDir`, and `paths`
in most cases.
- I've added TypeScript "project references" (`"references"` section)
because that appears to be what you're supposed to do in a monorepo
setup. However, since we're not driving builds with a top-level `tsc`
command, I'm not sure if this is actually buying us anything.
- I've significantly changed the `research-app-messages` config file
to have the same structure as the other projects. It was quite
different, I think just because it was imported later from my
research-app pilot work.
- However, in `engine-pinia` I need to set the TS "rootDir" to `..` to
prevent build errors relating to input file paths. I think that this
might be related to the use of `vue-cli-service` for the build? I
was hoping that the use of the project references would make this
go away, but no such luck.
- And in `research-app-messages` I need to set the TS "rootDir" to `src`
because otherwise the `research-app` build will fail with a complaint
that the module cannot be found. I cannot figure out what's causing
this, or why it's not a problem for other packages such as `astro`.
- In `tests`, we need to keep the `baseUrl` setting because there are
some relative imports that don't use the `./` prefix syntax. It would
be pretty easy to fix this, I believe.