supportedTypes.types.forEach(function (type) {
            if (supportedTypes.typesRegex[type].test(thatMainPath)) {
              mainFiles[type] = thatMainPath;
            }
          });