"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDescriptorParser = void 0;
const PackageVersion_1 = require("./PackageVersion");
const PluginDescriptorParser_1 = require("./PluginDescriptorParser");
const ImlDescriptorParser_1 = require("./ImlDescriptorParser");
function getDescriptorParser(pluginDir, pluginName, excludeTestDependencies) {
    if (PackageVersion_1.PackageVersion.get().major < 3) {
        return new ImlDescriptorParser_1.ImlDescriptorParser(pluginDir, pluginName, excludeTestDependencies);
    }
    else {
        return new PluginDescriptorParser_1.PluginDescriptorParser(pluginDir);
    }
}
exports.getDescriptorParser = getDescriptorParser;
//# sourceMappingURL=DescriptorParser.js.map