"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.buildPlugin = void 0; const parser_1 = require("@codemod/parser"); function buildPlugin(sourceType) { return function () { return { manipulateOptions(opts, parserOpts) { const options = (0, parser_1.buildOptions)(Object.assign(Object.assign({}, parserOpts), { sourceType, plugins: parserOpts.plugins })); for (const key of Object.keys(options)) { // eslint-disable-next-line @typescript-eslint/no-explicit-any ; parserOpts[key] = options[key]; } }, }; }; } exports.buildPlugin = buildPlugin; //# sourceMappingURL=AllSyntaxPlugin.js.map