What is the proper way to export types from turborepo apps/packages for others to use?
Unanswered
British Shorthair posted this in #help-forum
British ShorthairOP
So I'm running a turborepo, including apps (api, web), packages (db)
api is a cloudflare worker, web is nextjs
both db and api have
I export types from apps/packages
when i start
it feels like importing types from these apps/packages is including more than just types?
api is a cloudflare worker, web is nextjs
both db and api have
@libsql/client as a dep (turso)I export types from apps/packages
when i start
web all those imported types from apps/packages that have libsql as a dep, start giving me this error Module parse failed: Unexpected character ' ' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> # `@libsql/darwin-arm64`
|
| Prebuilt binary package for `libsql` on `darwin-arm6it feels like importing types from these apps/packages is including more than just types?