@percy/cli-exec 1.6.3 → 1.7.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/start.js +5 -4
- package/package.json +3 -3
package/dist/start.js
CHANGED
|
@@ -11,15 +11,16 @@ export const start = command('start', {
|
|
|
11
11
|
percy,
|
|
12
12
|
exit
|
|
13
13
|
}) {
|
|
14
|
-
if (!percy) exit(0, 'Percy is disabled');
|
|
14
|
+
if (!percy) exit(0, 'Percy is disabled');
|
|
15
|
+
let {
|
|
16
|
+
yieldFor
|
|
17
|
+
} = await import('@percy/cli-command/utils'); // start percy
|
|
15
18
|
|
|
16
19
|
yield* percy.yield.start();
|
|
17
20
|
|
|
18
21
|
try {
|
|
19
22
|
// run until stopped or terminated
|
|
20
|
-
|
|
21
|
-
yield new Promise(r => setImmediate(r));
|
|
22
|
-
}
|
|
23
|
+
yield* yieldFor(() => percy.readyState >= 3);
|
|
23
24
|
} catch (error) {
|
|
24
25
|
await percy.stop(true);
|
|
25
26
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/cli-exec",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@percy/cli-command": "1.
|
|
35
|
+
"@percy/cli-command": "1.7.1",
|
|
36
36
|
"cross-spawn": "^7.0.3",
|
|
37
37
|
"which": "^2.0.2"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "012892cdaf7a07aa1b5aa355017639cee0e8a19e"
|
|
40
40
|
}
|