@percy/cli-exec 1.27.0-alpha.0 → 1.27.0-beta.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/dist/exec.js CHANGED
@@ -65,8 +65,14 @@ export const exec = command('exec', {
65
65
  log.warn('Percy is disabled');
66
66
  } else {
67
67
  try {
68
- percy.projectType = percy.client.tokenType();
69
- percy.skipDiscovery = percy.shouldSkipAssetDiscovery(percy.projectType);
68
+ // Skip this for app because they are triggered as app:exec
69
+ // Remove this once they move to exec command as well
70
+ if (percy.projectType !== 'app') {
71
+ percy.projectType = percy.client.tokenType();
72
+ percy.skipDiscovery = percy.shouldSkipAssetDiscovery(percy.projectType);
73
+ } else {
74
+ log.debug('Skipping percy project attribute calculation');
75
+ }
70
76
  yield* percy.yield.start();
71
77
  } catch (error) {
72
78
  if (error.name === 'AbortError') throw error;
package/dist/start.js CHANGED
@@ -8,12 +8,21 @@ export const start = command('start', {
8
8
  }
9
9
  }, async function* ({
10
10
  percy,
11
+ log,
11
12
  exit
12
13
  }) {
13
14
  if (!percy) exit(0, 'Percy is disabled');
14
15
  let {
15
16
  yieldFor
16
17
  } = await import('@percy/cli-command/utils');
18
+ // Skip this for app because they are triggered as app:exec
19
+ // Remove this once they move to exec command as well
20
+ if (percy.projectType !== 'app') {
21
+ percy.projectType = percy.client.tokenType();
22
+ percy.skipDiscovery = percy.shouldSkipAssetDiscovery(percy.projectType);
23
+ } else {
24
+ log.debug('Skipping percy project attribute calculation');
25
+ }
17
26
 
18
27
  // start percy
19
28
  yield* percy.yield.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-exec",
3
- "version": "1.27.0-alpha.0",
3
+ "version": "1.27.0-beta.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public",
12
- "tag": "alpha"
12
+ "tag": "beta"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -33,9 +33,9 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@percy/cli-command": "1.27.0-alpha.0",
36
+ "@percy/cli-command": "1.27.0-beta.1",
37
37
  "cross-spawn": "^7.0.3",
38
38
  "which": "^2.0.2"
39
39
  },
40
- "gitHead": "16f2c87641d844c6af6c3e198f6aff1c08ee0ec1"
40
+ "gitHead": "40cdf9c38613ccaf5e3707cd2cd2d2778ffbd5dd"
41
41
  }