Open allista opened 1 year ago
This definitely is missing from tsconfig-paths. We have a slightly different use case where base tsconfigs are not in the monorepo root but in a package called tsconfig, so extends looks like this in a workspace's tsconfig:
{
"extends": "@my-internal-scope/tsconfig/nodejs.json",
"ts-node": {
"files": true,
"require": ["tsconfig-paths/register"],
"transpileOnly": true
}
}
In above example we extend from a preset called "nodejs" which in turn extends from a base, where all path mappings internal to the monorepo reside. I wish tsconfig-paths resolved those too.
Hi, we have a monorepo with a lot of packages, and some things, including our base
tsconfig.json
that we extend in all other packages, are installed in the rootnode_modules
.Currently
tsconfig-paths
is only searching for the "extends" file in thenode_modules
next to the originaltsconfig.file
.I don't have capacity right now for a proper PR, but I made a
pnpm patch
that solves the issue for us.I hope it'll be useful for someone in the meantime: