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.

chore: use `core` package for the version inference

Martin Adámek585a8782c197
diff --git a/scripts/copy.ts b/scripts/copy.ts
index 3f76246b5..191a6340a 100644
--- a/scripts/copy.ts
+++ b/scripts/copy.ts
@@ -31,7 +31,7 @@ function getRootVersion(): string {
}
// eslint-disable-next-line @typescript-eslint/no-var-requires,import/no-dynamic-require,global-require
- rootVersion = require(resolve(root, './packages/crawlee/package.json')).version.replace(/^(\d+\.\d+\.\d+)-?.*$/, '$1');
+ rootVersion = require(resolve(root, './packages/core/package.json')).version.replace(/^(\d+\.\d+\.\d+)-?.*$/, '$1');
const parts = rootVersion.split('.');
parts[2] = `${+parts[2] + 1}`;
@@ -48,7 +48,7 @@ function getNextVersion() {
const versions: string[] = [];
try {
- const versionString = execSync(`npm show crawlee versions --json`, { encoding: 'utf8', stdio: 'pipe' });
+ const versionString = execSync(`npm show core versions --json`, { encoding: 'utf8', stdio: 'pipe' });
const parsed = JSON.parse(versionString) as string[];
versions.push(...parsed);
} catch {