@percy/cli-exec 1.28.1-beta.0 → 1.28.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 +5 -0
- package/package.json +4 -4
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
|
|
3
|
+
"version": "1.28.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": "
|
|
12
|
+
"tag": "latest"
|
|
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.28.1
|
|
36
|
+
"@percy/cli-command": "1.28.1",
|
|
37
37
|
"cross-spawn": "^7.0.3",
|
|
38
38
|
"which": "^2.0.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f3b0fad3c511fe9eea44eef939195a9d0310216b"
|
|
41
41
|
}
|