We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a90356 commit 82d4672Copy full SHA for 82d4672
1 file changed
module/pnpm/pnpm.go
@@ -44,12 +44,22 @@ func (Inspector) InspectProject(ctx context.Context) error {
44
module.ModuleName = fmt.Sprintf("<pnpm-module>/%s", tree.Name)
45
module.ModulePath = filepath.Join(dir, tree.Name, "<pnpm-module>")
46
}
47
+ // hotfix for empty string
48
+ replaceEmptyString(module.Dependencies)
49
inspectionTask.AddModule(module)
50
-
51
return nil
52
53
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
+
63
func (Inspector) SupportFeature(feature model.InspectorFeature) bool {
64
return model.InspectorFeatureAllowNested&feature > 0
65
0 commit comments