Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
fix: add ts-ignore comments to imports of optional peer dependencies (#1152)
Martin Adámekbb9ad87471f3
diff --git a/tools/typescript_fixes.js b/tools/typescript_fixes.jsindex 297aec1d4..030763ba0 100644--- a/tools/typescript_fixes.js+++ b/tools/typescript_fixes.js@@ -269,6 +269,11 @@ const fixTypesReferences = async () => {debug('fixTypesReferences', 'fixing "node/" from file', filepath);output.push(`${match[1]} "${match[2]}`);changed = true;+ } else if (match = line.match(/^([^"]+)"puppeteer"/)) {+ debug('fixTypesReferences', 'fixing "puppeteer" from file', filepath);+ output.push('// @ts-ignore optional peer dependency');+ output.push(line);+ changed = true;} else {output.push(line);}