@percy/cli-exec 1.28.1-beta.0 → 1.28.1-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.
Files changed (2) hide show
  1. package/dist/exec.js +5 -0
  2. package/package.json +3 -3
package/dist/exec.js CHANGED
@@ -3,6 +3,7 @@ import start from './start.js';
3
3
  import stop from './stop.js';
4
4
  import ping from './ping.js';
5
5
  import { getPackageJSON } from '@percy/cli-command/utils';
6
+ import { waitForTimeout } from '@percy/client/utils';
6
7
  const pkg = getPackageJSON(import.meta.url);
7
8
  export const exec = command('exec', {
8
9
  description: 'Start and stop Percy around a supplied command',
@@ -98,6 +99,10 @@ export const exec = command('exec', {
98
99
 
99
100
  // forward any returned status code
100
101
  if (status) exit(status, error);
102
+
103
+ // force exit post timeout
104
+ await waitForTimeout(10000);
105
+ process.exit(status);
101
106
  });
102
107
 
103
108
  // Spawn a command with cross-spawn and return an array containing the resulting status code along
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-exec",
3
- "version": "1.28.1-beta.0",
3
+ "version": "1.28.1-beta.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,9 +33,9 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@percy/cli-command": "1.28.1-beta.0",
36
+ "@percy/cli-command": "1.28.1-beta.1",
37
37
  "cross-spawn": "^7.0.3",
38
38
  "which": "^2.0.2"
39
39
  },
40
- "gitHead": "648f81742ebf8c6f29ccdfdff77df124e4e1668d"
40
+ "gitHead": "d423bf3f6b26eaba752470121cafb2ad03317b4d"
41
41
  }