Open jaylenchan opened 1 year ago
I think there is not a mechanisms can read the third-party as the base config. I install the tsconfig package as the server dependency, but it also got the error likes above. but if I change the bundle option to false, and do not use the bundle feature , just use the compile feature like tsc ,everything goes well
imagine there is a monorepo, the structure is below:
the server app uses the tsconfig.json file that will extends the local package named "tsconfig" inside packages folder. the code inside tsconfig.json file of server likes below:
the package.json of server :
and then, I use the logger package in the server app with
import logger from '@jeditor/logger'
, by now ,everything is Ok, but when I use tsup to bundle my server app, it got an error shows "could not resolve @jeditor/logger"。the base.json likes below:
the baseUrl will point to monorepo root.
the tsup.config.ts likes below:
question: can tsup resolve the tsconfig that is the local pkg inside the monorepo? if tsup can resolved it, can tsup recognize the paths alias in the tsconfig/base.json?
error pic:
Upvote & Fund