antongolub / yarn-audit-fix

The missing `yarn audit fix`
MIT License
181 stars 9 forks source link

yarn-audit-fix isMonorepo #319

Closed rexizam closed 11 months ago

rexizam commented 11 months ago

Hi, I'm using yarn-audit-fix in an NX monorepo. When I run the script the output says the following:

isMonorepo false bins yarn yarn npm npm

versions node v18.13.0 npm 9.8.1 yarn 1.22.19 yaf 10.0.1 yafLatest 10.0.7

I was just wondering why isMonorepo is set to false and if it has something to do with package/directory level dependencies. I couldn't find anything about that in the documentation so that's why I'm asking here.

antongolub commented 11 months ago

@rexizam,

yaf monorepo detection is based on workplaces field of package.json. nx just traverses the <cwd>/packages folder, right? If so, we could follow this scheme too.

rexizam commented 11 months ago

Great, thank you for the information. I wasn't aware of that part in the source code.