@terrazzo/cli 0.3.3 → 0.3.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @terrazzo/cli
2
2
 
3
+ ## 0.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#414](https://github.com/terrazzoapp/terrazzo/pull/414) [`fd8fb6b`](https://github.com/terrazzoapp/terrazzo/commit/fd8fb6bf18b9353d8ea7482b23bd80f35a05af9a) Thanks [@drwpow](https://github.com/drwpow)! - Enable debugging in CLI
8
+
9
+ - Updated dependencies [[`fd8fb6b`](https://github.com/terrazzoapp/terrazzo/commit/fd8fb6bf18b9353d8ea7482b23bd80f35a05af9a)]:
10
+ - @terrazzo/parser@0.3.5
11
+ - @terrazzo/token-tools@0.3.5
12
+
13
+ ## 0.3.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [#408](https://github.com/terrazzoapp/terrazzo/pull/408) [`6f97566`](https://github.com/terrazzoapp/terrazzo/commit/6f97566ea83b7bcb42befd36aa618d52ec6e758f) Thanks [@drwpow](https://github.com/drwpow)! - Fix bug where setTransform() would not properly deduplicate token values
18
+
19
+ - Updated dependencies [[`6f97566`](https://github.com/terrazzoapp/terrazzo/commit/6f97566ea83b7bcb42befd36aa618d52ec6e758f)]:
20
+ - @terrazzo/token-tools@0.3.4
21
+ - @terrazzo/parser@0.3.4
22
+
3
23
  ## 0.3.3
4
24
 
5
25
  ### Patch Changes
package/bin/cli.js CHANGED
@@ -66,9 +66,15 @@ const { values: flags, positionals } = parseArgs({
66
66
  // likely to see multiple at once. We want to remove stacktraces just for the
67
67
  // CLI context. So we wrap this logger with our own formatter that simply prints
68
68
  // the raw message.
69
+ let logLevel = undefined;
70
+ if (flags.silent || flags.quiet) {
71
+ logLevel = 'error';
72
+ } else if (process.env.DEBUG) {
73
+ logLevel = 'debug';
74
+ }
69
75
  const logger = new Logger({
70
76
  // set correct level of debugging
71
- level: flags.silent || flags.quiet ? 'error' : undefined,
77
+ level: logLevel,
72
78
  // add debug messages, if requested
73
79
  debugScope: process.env.DEBUG,
74
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrazzo/cli",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "CLI for managing design tokens using the Design Tokens Community Group (DTCG) standard and generating code for any platform via plugins.",
5
5
  "type": "module",
6
6
  "author": {
@@ -28,7 +28,7 @@
28
28
  "./README.md": "./README.md",
29
29
  "./package.json": "./package.json"
30
30
  },
31
- "homepage": "https://terrazzoapp.com/docs/cli",
31
+ "homepage": "https://terrazzo.app/docs/cli",
32
32
  "repository": {
33
33
  "type": "git",
34
34
  "url": "https://github.com/terrazzoapp/terrazzo.git",
@@ -40,19 +40,19 @@
40
40
  "terrazzo": "bin/cli.js"
41
41
  },
42
42
  "dependencies": {
43
- "@clack/prompts": "^0.9.0",
44
- "@humanwhocodes/momoa": "^3.3.5",
43
+ "@clack/prompts": "^0.9.1",
44
+ "@humanwhocodes/momoa": "^3.3.6",
45
45
  "@types/escodegen": "^0.0.10",
46
46
  "chokidar": "^3.6.0",
47
47
  "detect-package-manager": "^3.0.2",
48
- "dotenv": "^16.4.5",
48
+ "dotenv": "^16.4.7",
49
49
  "escodegen": "^2.1.0",
50
50
  "merge-anything": "^5.1.7",
51
- "meriyah": "^6.0.3",
51
+ "meriyah": "^6.0.5",
52
52
  "picocolors": "^1.1.1",
53
53
  "yaml-to-momoa": "^0.0.3",
54
- "@terrazzo/parser": "^0.3.3",
55
- "@terrazzo/token-tools": "^0.3.3"
54
+ "@terrazzo/parser": "^0.3.5",
55
+ "@terrazzo/token-tools": "^0.3.5"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsc -p tsconfig.build.json",