apify-cli 0.19.2-beta.2 → 0.19.2-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-cli",
3
- "version": "0.19.2-beta.2",
3
+ "version": "0.19.2-beta.4",
4
4
  "description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -70,7 +70,7 @@ class CreateCommand extends ApifyCommand {
70
70
  try {
71
71
  fs.mkdirSync(actFolderDir);
72
72
  } catch (err) {
73
- if (err.code && err.code === 'EEXIST') {
73
+ if (err?.code === 'EEXIST') {
74
74
  outputs.error(`Cannot create new actor, directory '${actorName}' already exists. `
75
75
  + 'You can use "apify init" to create a local actor environment inside an existing directory.');
76
76
  return;
@@ -162,6 +162,7 @@ class CreateCommand extends ApifyCommand {
162
162
 
163
163
  if (dependenciesInstalled) {
164
164
  outputs.success(`Actor '${actorName}' was created. To run it, run "cd ${actorName}" and "apify run".`);
165
+ outputs.success('To run your code in the cloud, run "apify push" and deploy your code to Apify Console.');
165
166
  if (messages?.postCreate) {
166
167
  outputs.info(messages?.postCreate);
167
168
  }