@dittowords/cli 2.2.0 → 2.3.0

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
@@ -103,9 +103,9 @@ If you run the CLI in a directory that does not contain a `ditto/` folder, the f
103
103
 
104
104
  ##### `projects`
105
105
 
106
- A list of project names and ids to pull text from. R
106
+ A list of project names and ids to pull text from.
107
107
 
108
- equired if `components: true` is not specified.
108
+ Required if `components: true` is not specified.
109
109
 
110
110
  **Note**: the `name` property is used for display purposes when referencing a project in the CLI, but does not have to be an
111
111
  exact match with the project name in Ditto.
package/lib/consts.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const homedir = require("os").homedir();
2
-
3
2
  const path = require("path");
4
3
 
4
+ const TEXT_DIR = process.env.DITTO_TEXT_DIR || "ditto"
5
+
5
6
  module.exports.API_HOST =
6
7
  process.env.DITTO_API_HOST || "https://api.dittowords.com";
7
8
  module.exports.CONFIG_FILE =
@@ -9,5 +10,5 @@ module.exports.CONFIG_FILE =
9
10
  module.exports.PROJECT_CONFIG_FILE = path.normalize(
10
11
  path.join("ditto", "config.yml")
11
12
  );
12
- module.exports.TEXT_FILE = path.normalize(path.join("ditto", "text.json"));
13
- module.exports.TEXT_DIR = path.normalize("ditto");
13
+ module.exports.TEXT_DIR = TEXT_DIR
14
+ module.exports.TEXT_FILE = path.normalize(path.join(TEXT_DIR, "text.json"));
@@ -78,6 +78,7 @@ async function collectProject(token, initialize) {
78
78
 
79
79
  if (!(projects && projects.length)) {
80
80
  console.log("You're currently syncing all projects in your workspace.");
81
+ console.log(output.warnText("Not seeing a project that you were expecting? Verify that developer mode is enabled on that project. More info: https://www.dittowords.com/docs/ditto-developer-mode"));
81
82
  return null;
82
83
  }
83
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dittowords/cli",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Command Line Interface for Ditto (dittowords.com).",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {