Skip to content

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.

ci: exclude `@crawlee/fs-storage-native` from canary/pin version rewrite (#3844)

Martin Adámek6c50d37e98ba
diff --git a/scripts/copy.ts b/scripts/copy.ts
index e1e564feb..adebcd65d 100644
--- a/scripts/copy.ts
+++ b/scripts/copy.ts
@@ -110,7 +110,7 @@ if (options.canary) {
pkgJson.version = nextVersion;
for (const dep of Object.keys(pkgJson.dependencies)) {
- if (dep.startsWith('@crawlee/') || dep === 'crawlee') {
+ if ((dep.startsWith('@crawlee/') && dep !== '@crawlee/fs-storage-native') || dep === 'crawlee') {
const prefix = pkgJson.dependencies[dep].startsWith('^') ? '^' : '';
pkgJson.dependencies[dep] = prefix + nextVersion;
}
@@ -126,7 +126,7 @@ if (options['pin-versions']) {
const version = getRootVersion(false);
for (const dep of Object.keys(pkgJson.dependencies ?? {})) {
- if (dep.startsWith('@crawlee/') || dep === 'crawlee') {
+ if ((dep.startsWith('@crawlee/') && dep !== '@crawlee/fs-storage-native') || dep === 'crawlee') {
pkgJson.dependencies[dep] = version;
}
}