File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,22 @@ func (Inspector) InspectProject(ctx context.Context) error {
4444 module .ModuleName = fmt .Sprintf ("<pnpm-module>/%s" , tree .Name )
4545 module .ModulePath = filepath .Join (dir , tree .Name , "<pnpm-module>" )
4646 }
47+ // hotfix for empty string
48+ replaceEmptyString (module .Dependencies )
4749 inspectionTask .AddModule (module )
4850 }
49-
5051 return nil
5152}
5253
54+ func replaceEmptyString (input []model.DependencyItem ) {
55+ for i := range input {
56+ if input [i ].CompName == "" {
57+ input [i ].CompName = "_"
58+ }
59+ replaceEmptyString (input [i ].Dependencies )
60+ }
61+ }
62+
5363func (Inspector ) SupportFeature (feature model.InspectorFeature ) bool {
5464 return model .InspectorFeatureAllowNested & feature > 0
5565}
You can’t perform that action at this time.
0 commit comments