text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const NpmShrinkwrapFile_1 = require("./npm/NpmShrinkwrapFile");
  const PnpmShrinkwrapFile_1 = require("./pnpm/PnpmShrinkwrapFile");
  const YarnShrinkwrapFile_1 = require("./yarn/YarnShrinkwrapFile");
  class ShrinkwrapFileFactory {
      static getShrinkwrapFile(packageManager, shrinkwrapFilename) {
          switch (packageManager) {
              case 'npm':
                  return NpmShrinkwrapFile_1.NpmShrinkwrapFile.loadFromFile(shrinkwrapFilename);
              case 'pnpm':
                  return PnpmShrinkwrapFile_1.PnpmShrinkwrapFile.loadFromFile(shrinkwrapFilename);
              case 'yarn':
                  return YarnShrinkwrapFile_1.YarnShrinkwrapFile.loadFromFile(shrinkwrapFilename);
          }
          throw new Error(`Invalid package manager: ${packageManager}`);
      }
  }
  exports.ShrinkwrapFileFactory = ShrinkwrapFileFactory;
  //# sourceMappingURL=ShrinkwrapFileFactory.js.map