-
I have an open source package, published in NPM. In this package, I used the same package, So as your can see, the package name is In my package, I export some TypeScript types in "exports": {
".": {
"types": "./dist/config.d.ts",
"require": "./dist/index.cjs"
}
}, However, when I have a TypeScript file, https://github.com/tal-rofe/cz-vinyl/blob/main/czvinyl.config.ts, where I do: import type { CzVinylConfig } from 'cz-vinyl'; I get an error: From cz-vinyl:
specifier: 2.5.0
version: 'link:' And when I look at So, why does it even happen? And how can I make PNPM to use the NPM distributed code instead of linking directly to the source code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I don't understand how you got that. If I remove the lockfile and node_modules and run You would get the package linked in a workspace, but your is not using the workspace feature. In a workspace you'd be able to disable this behaviour by setting the |
Beta Was this translation helpful? Give feedback.
This probably happens because renovate runs
pnpm install -r
. Try to add.npmrc
to the root of your repo with this setting:link-workspace-packages=false
.