@toptal/davinci-cli-shared 2.3.7-alpha-test-transform-imports-c6cf3d4f.3 → 2.3.7

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,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2164](https://github.com/toptal/davinci/pull/2164) [`0e449097`](https://github.com/toptal/davinci/commit/0e44909716410e4bda7a1693c4f2a771b27e5c53) Thanks [@dmaklygin](https://github.com/dmaklygin)!
8
+ - do not send telemetry when running in CI
9
+
3
10
  ## 2.3.6
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-cli-shared",
3
- "version": "2.3.7-alpha-test-transform-imports-c6cf3d4f.3+c6cf3d4f",
3
+ "version": "2.3.7",
4
4
  "description": "Shared CLI code and CLI engine for davinci",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,21 +23,20 @@
23
23
  "dependencies": {
24
24
  "analytics-node": "^6.2.0",
25
25
  "chalk": "^4.1.2",
26
- "commander": "^11.0.0",
27
26
  "execa": "^5.1.1",
28
27
  "find-yarn-workspace-root": "^2.0.0",
29
- "gradient-string": "^2.0.0",
30
28
  "inquirer": "^8.2.4",
31
29
  "isomorphic-git": "^1.24.5",
32
30
  "js-yaml": "^4.1.0",
33
31
  "lodash": "^4.17.21",
34
- "ora": "^5.4.1",
35
32
  "proper-lockfile": "^4.1.2",
36
33
  "read-pkg-up": "7.0.1",
37
- "semver": "^7.5.3"
34
+ "semver": "^7.5.3",
35
+ "commander": "^11.0.0",
36
+ "gradient-string": "^2.0.0",
37
+ "ora": "^5.4.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@jest/globals": "^29.4.2"
41
- },
42
- "gitHead": "c6cf3d4f159dfc2ae6eb694ac0a67710d0737cf8"
41
+ }
43
42
  }
@@ -1,6 +1,8 @@
1
1
  import { Command } from 'commander'
2
2
 
3
3
  import { createMetricsSidecar } from '../utils/metrics/sidecar.js'
4
+ // eslint-disable-next-line no-restricted-syntax
5
+ import { isCi } from '../utils/ci.js'
4
6
 
5
7
  /**
6
8
  * A higher-order function that wraps the provided `action` function and adds telemetry to it.
@@ -65,7 +67,12 @@ class DavinciCommand extends Command {
65
67
  }
66
68
 
67
69
  action(fn) {
68
- super.action(withTelemetry(fn))
70
+ // Don't send telemetry when running in CI
71
+ if (isCi()) {
72
+ super.action(fn)
73
+ } else {
74
+ super.action(withTelemetry(fn))
75
+ }
69
76
 
70
77
  return this
71
78
  }