@crawlee/cli 4.0.0-beta.99 → 4.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -34,7 +34,7 @@ Crawlee is available as the [`crawlee`](https://www.npmjs.com/package/crawlee) N
34
34
 
35
35
  We recommend visiting the [Introduction tutorial](https://crawlee.dev/js/docs/introduction) in Crawlee documentation for more information.
36
36
 
37
- > Crawlee requires **Node.js 16 or higher**.
37
+ > Crawlee requires **Node.js 22.13 or higher**.
38
38
 
39
39
  ### With Crawlee CLI
40
40
 
@@ -1,13 +1,12 @@
1
1
  import { execSync } from 'node:child_process';
2
2
  import { mkdirSync } from 'node:fs';
3
- import { readFile, writeFile } from 'node:fs/promises';
3
+ import { mkdir, readFile, writeFile } from 'node:fs/promises';
4
4
  import { get } from 'node:https';
5
5
  import { dirname, join, resolve } from 'node:path';
6
6
  import { setTimeout } from 'node:timers/promises';
7
7
  import { fetchManifest } from '@crawlee/templates';
8
8
  import { input, select } from '@inquirer/prompts';
9
9
  import colors from 'ansi-colors';
10
- import { ensureDir } from 'fs-extra/esm';
11
10
  function validateProjectName(name) {
12
11
  if (name.length === 0) {
13
12
  throw new Error('The project name cannot be empty string.');
@@ -49,7 +48,7 @@ async function downloadTemplateFilesToDisk(template, destinationDirectory) {
49
48
  // Make sure the folder for the file exists
50
49
  const fileDirName = dirname(file.path);
51
50
  const fileFolder = resolve(destinationDirectory, fileDirName);
52
- await ensureDir(fileFolder);
51
+ await mkdir(fileFolder, { recursive: true });
53
52
  // Write the actual file
54
53
  await writeFile(resolve(destinationDirectory, file.path), buffer);
55
54
  });
@@ -122,7 +121,7 @@ export class CreateProjectCommand {
122
121
  if (!template) {
123
122
  template = await select({
124
123
  message: 'Please select the template for your new Crawlee project',
125
- default: choices[0],
124
+ default: choices[0]?.value,
126
125
  choices,
127
126
  });
128
127
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@crawlee/cli",
3
- "version": "4.0.0-beta.99",
3
+ "version": "4.0.0-rc.1",
4
4
  "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
5
  "engines": {
6
- "node": ">=22.0.0"
6
+ "node": ">=22.13.0"
7
7
  },
8
8
  "bin": {
9
9
  "crawlee": "./index.js"
@@ -45,10 +45,9 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@crawlee/templates": "4.0.0-beta.99",
49
- "@inquirer/prompts": "^7.5.0",
48
+ "@crawlee/templates": "4.0.0-rc.1",
49
+ "@inquirer/prompts": "^8.0.0",
50
50
  "ansi-colors": "^4.1.3",
51
- "fs-extra": "^11.3.0",
52
51
  "tslib": "^2.8.1",
53
52
  "yargs": "^18.0.0"
54
53
  },
@@ -59,5 +58,5 @@
59
58
  }
60
59
  }
61
60
  },
62
- "gitHead": "ad2748380941842bb10cff100f4b4caad92049e3"
61
+ "gitHead": "f354ca5e943bed1a5c657a1fce1974c053f9fff0"
63
62
  }