-
Notifications
You must be signed in to change notification settings - Fork 38
Description
I'm using monorepo (no lerana, with our own scripts, doesn't matter) with 9 TypeScript projects at work.
So, I'm super excited to see "references" feature.
I was playing around with this test learn-a project, and finally was able to make it working.
Here is an developer experience issue I found:
-
Just after
git cloneandnpm install, I see:

Somehow typescript depends on/packages/pkg2/node_modules/@ryancavanaugh/pkg1even if/packages/pkg1exists. It is somehow counterintuitive, at least errorCannot find module '@ryancavanaugh/pkg1'can be more descriptive. -
Just after
npm installinside each /package/pkg1, /package/pkg2, /package/pkg3, I see:

It is a bit surprising, because now I have bothpkg1andpkg2inside/packages/pkg3/node_modules/@ryancavanaugh:

After digging I found thatpkg2@3.0.2on npm has wrong "main" property in the package.json:
{
"main": "index.js",
}Should be:
{
"main": "lib/index.js",
}Again, error tells nothing about 'main' property of package.json.