I was looking at the nextjs branch, specifically at the tsconfig.json file in packages/nextjs:
|
"paths": { |
|
"foo": ["foo/src"], |
|
"components": ["components/src"] |
|
}, |
And I'm trying to understand why you have remapped foo to foo/src, and components to components/src. Shouldn't these packages be built and loaded from dist? Or did you have to do this because Next.js doesn't support TypeScript project references?
I also don't understand how the external dependencies of foo and components are resolved when building the Next.js app. Does this rely upon node_modules being hoisted at the root?
Side note: would you like to enable GitHub Discussions in this repository? I would have created a discussion instead of a repo.
I was looking at the
nextjsbranch, specifically at thetsconfig.jsonfile inpackages/nextjs:ts-monorepo/packages/nextjs/tsconfig.json
Lines 11 to 14 in 0ad8608
And I'm trying to understand why you have remapped
footofoo/src, andcomponentstocomponents/src. Shouldn't these packages be built and loaded fromdist? Or did you have to do this because Next.js doesn't support TypeScript project references?I also don't understand how the external dependencies of
fooandcomponentsare resolved when building the Next.js app. Does this rely uponnode_modulesbeing hoisted at the root?Side note: would you like to enable GitHub Discussions in this repository? I would have created a discussion instead of a repo.