Open miekassu opened 2 years ago
This package indeed hard-codes src
as the dir where the source code lives. Because this is what is, I think, is also hard-coded in the projen TypeScript project type. But if you know of a way to get this value from the projen TypeScript type, we don't have to hard-code.
So your project does not put source files into the src/*
dir, is that it?
yes, source files lives under src/*
,
but build files are in different folder, for example in lib
. This is defined in sub-project tsconfig.
I tested, defining lib
path works:
"paths": {
"@nordft/core-prismic": [
"../../packages/core-prismic/lib"
],
"@nordft/core-ui": [
"../../packages/core-ui/lib"
]
}
so in this case, during build, parent project is looking for the sub-project build files, instead of source files. why this, I'm not sure?
to specify, libraries are imported correctly, when I'm running project (nextjs) locally and dependencies are resolved in runtime. it only fails when I build.
Could you please create a small repro project with a breakage?
You can use this demo to get started from to make it easier: https://github.com/moltar/projen-turborepo-test
here you go https://github.com/miekassu/projen-turborepo-test
I don't think that fixed the issue :/
when projen generates paths to project tsconfig.ts it based speficied package dependencies, it always points path to src
like:
this throws an error:
instead of, this works:
l ooks like projen generated
../src
directory in path, no matter what would have been configured in dependency packagetsconfig.ts
, likeoutDit
orrootDir
.any ideas?