whitesource / unified-agent-distribution

51 stars 48 forks source link

UA issue when pnpm is used alongside with Lerna #51

Open dwiyatci opened 8 months ago

dwiyatci commented 8 months ago

Hi, here's my setup:

According to https://docs.mend.io/bundle/unified_agent/page/unified_agent_configuration_parameters.html#JavaScript:

If a Lerna.json file is identified, then Lerna’s npmClient will determine if to run npm or yarn resolution.

The pnpm-lock.yaml file will be resolved if it is the only lock file identified next to the package.json file.

When the scan runs, though, the UA seems to prioritise lerna.json over pnpm-lock.yaml. Thing is, the UA doesn't seem to support pnpm as Lerna's npmClient because it keeps complaining that package-lock.json file is not there when resolving the dependencies. My expectation is either:

Thoughts? Thank you.