@percy/cli-exec 1.28.8 → 1.28.9-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
@@ -49,7 +49,7 @@ export const exec = command('exec', {
49
49
  log.error("You must supply a command to run after '--'");
50
50
  log.info('Example:');
51
51
  log.info(' $ percy exec -- npm test');
52
- exit(1);
52
+ exit(1, '', false);
53
53
  }
54
54
 
55
55
  // verify the provided command exists
@@ -59,7 +59,7 @@ export const exec = command('exec', {
59
59
  if (!which.sync(command, {
60
60
  nothrow: true
61
61
  })) {
62
- exit(127, `Command not found "${command}"`);
62
+ exit(127, `Command not found "${command}"`, false);
63
63
  }
64
64
 
65
65
  // attempt to start percy if enabled
@@ -95,9 +95,9 @@ export const exec = command('exec', {
95
95
 
96
96
  // stop percy if running (force stop if there is an error);
97
97
  await (percy === null || percy === void 0 ? void 0 : percy.stop(!!error));
98
-
98
+ log.info(`Command "${[command, ...args].join(' ')}" exited with status: ${status}`);
99
99
  // forward any returned status code
100
- if (status) exit(status, error);
100
+ if (status) exit(status, error, false);
101
101
 
102
102
  // force exit post timeout
103
103
  await waitForTimeout(10000);
package/dist/start.js CHANGED
@@ -23,10 +23,10 @@ export const start = command('start', {
23
23
  } else {
24
24
  log.debug('Skipping percy project attribute calculation');
25
25
  }
26
-
27
- // start percy
28
- yield* percy.yield.start();
29
26
  try {
27
+ // start percy
28
+ yield* percy.yield.start();
29
+
30
30
  // run until stopped or terminated
31
31
  yield* yieldFor(() => percy.readyState >= 3);
32
32
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-exec",
3
- "version": "1.28.8",
3
+ "version": "1.28.9-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": "latest"
12
+ "tag": "beta"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -33,10 +33,10 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@percy/cli-command": "1.28.8",
37
- "@percy/logger": "1.28.8",
36
+ "@percy/cli-command": "1.28.9-beta.1",
37
+ "@percy/logger": "1.28.9-beta.1",
38
38
  "cross-spawn": "^7.0.3",
39
39
  "which": "^2.0.2"
40
40
  },
41
- "gitHead": "1b93761a01b608afadf8d4efccacc11f925396bd"
41
+ "gitHead": "bc0085f5c8ad4e86ac643618579d541c3bbcaf0b"
42
42
  }