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 `@crawlee/core` + `lerna.json` package for the version inference

Martin Adámek20d574b1f317
diff --git a/scripts/copy.ts b/scripts/copy.ts
index 191a6340a..496e7356a 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/core/package.json')).version.replace(/^(\d+\.\d+\.\d+)-?.*$/, '$1');
+ rootVersion = require(resolve(root, './lerna.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 core versions --json`, { encoding: 'utf8', stdio: 'pipe' });
+ const versionString = execSync(`npm show @crawlee/core versions --json`, { encoding: 'utf8', stdio: 'pipe' });
const parsed = JSON.parse(versionString) as string[];
versions.push(...parsed);
} catch {