Closed cylewaitforit closed 3 weeks ago
:rocket: This issue has been resolved in v5.34.4. See Release 5.34.4 for release notes.
Using Knip in a commercial project? Please consider becoming a sponsor.
Btw I don't think this was actually a regression, right? Doesn't matter, needed a fix either way.
Prerequisites
Reproduction url
https://github.com/cylewaitforit/nx-knip
Reproduction access
Good version
5.33.3
Bad version
5.34.0
Description of the regression
The cspell config schema defines that import can be either a string path like in apps/app/.cspell.json or an array of string paths like in the root .cspell.json config file ( see cspell schema defintion https://github.com/streetsidesoftware/cspell/blob/5f974b2d4d61e2582aba5a1c87fcbc127f5f06bb/cspell.schema.json#L1884). Currently as of version 5.34.0 knip throws an error when using the single string path.
The work around at the moment is to update .cspell.json files to turn all the strings into arrays containing a single path.