azz / get-monorepo-packages

Get a list of packages from a monorepo
MIT License
19 stars 7 forks source link

Ignore packages inside node_modules folder #7

Open joshuajaco opened 4 years ago

joshuajaco commented 4 years ago

Alternative to https://github.com/azz/get-monorepo-packages/pull/6

chris-smith-zocdoc commented 2 years ago

Any chance this can be merged?

The monorepo/no-relative-import rule is breaking in our environment because of an intentionally malformed package inside node_modules .../node_modules/resolve/test/resolver/malformed_package_json/package.json and I believe this pr would fix it

joshuajaco commented 2 years ago

@chris-smith-zocdoc I have published my fork, since this doesn't seem to be getting merged any time soon. https://www.npmjs.com/package/@joshuajaco/get-monorepo-packages

MKruschke commented 1 year ago

hey @azz, would it be possible to get this behaviour fixed, because we getting a bunch of lint errors every-time when we have some external packages not hoisted on the workspace root level.

Btw. I had a look on globby too and there you can respect the gitignore file see here