"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
const getPluginIndexByPackageName = (plugins, packageName) => {
  for (let i = 0; i < plugins.length; i++) {
    if (plugins[i].packageName === packageName) {
      return i;
    }
  }
  return -1;
};

exports.getPluginIndexByPackageName = getPluginIndexByPackageName;