@percy/cli-exec 1.28.9-beta.0 → 1.28.9
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 +4 -4
- package/package.json +5 -5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/cli-exec",
|
|
3
|
-
"version": "1.28.9
|
|
3
|
+
"version": "1.28.9",
|
|
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,10 +33,10 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@percy/cli-command": "1.28.9
|
|
37
|
-
"@percy/logger": "1.28.9
|
|
36
|
+
"@percy/cli-command": "1.28.9",
|
|
37
|
+
"@percy/logger": "1.28.9",
|
|
38
38
|
"cross-spawn": "^7.0.3",
|
|
39
39
|
"which": "^2.0.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "03253ef16a5125469773797b4ff126649371d133"
|
|
42
42
|
}
|