Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(extract): ignore entries in 'workspaces' arrays that aren't strin…
…gs (instead of throwing) (#955) ## Description - ignore entries in 'workspaces' arrays that aren't strings, instead of throwing an exception Yarn workspaces is an array of strings according to [its documentation](https://yarnpkg.com/configuration/manifest#workspaces). Apparently is possible (and accepted?) to have other types than strings as well. Not sure whether that is _valid_, but at least it's happening in the field, witnessing #947, so we deal with it. ## Motivation and Context Addresses the error mentioned in #947 (and likely fixes it) ## How Has This Been Tested? - [x] green ci - [x] additional automated non-regression tests ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [ ] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist - [x] 📖 - My change doesn't require a documentation update, or ... - it _does_ and I have updated it - [x] ⚖️ - The contribution will be subject to [The MIT license](https://github.com/sverweij/dependency-cruiser/blob/main/LICENSE), and I'm OK with that. - The contribution is my own original work. - I am ok with the stuff in [**CONTRIBUTING.md**](https://github.com/sverweij/dependency-cruiser/blob/main/.github/CONTRIBUTING.md).
- Loading branch information