Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function apiExtractor(docPackage) {
const result = Extractor.loadConfigAndInvoke(path.resolve(docPackage, "api-extractor.json"), {
localBuild: true,
});
if (!result.succeeded) {
throw new Error(`api-extractor failed for ${docPackage}`);
}
}
exports.apiExtractor = apiExtractor;