@percy/cli-exec 1.28.8-beta.2 → 1.28.8-beta.4
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 -2
- package/package.json +4 -3
package/dist/exec.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import command from '@percy/cli-command';
|
|
2
|
+
import logger from '@percy/logger';
|
|
2
3
|
import start from './start.js';
|
|
3
4
|
import stop from './stop.js';
|
|
4
5
|
import ping from './ping.js';
|
|
@@ -110,6 +111,7 @@ async function* spawn(cmd, args, percy) {
|
|
|
110
111
|
default: crossSpawn
|
|
111
112
|
} = await import('cross-spawn');
|
|
112
113
|
let proc, closed, error;
|
|
114
|
+
const cilog = logger('ci');
|
|
113
115
|
try {
|
|
114
116
|
proc = crossSpawn(cmd, args, {
|
|
115
117
|
stdio: 'pipe'
|
|
@@ -124,14 +126,14 @@ async function* spawn(cmd, args, percy) {
|
|
|
124
126
|
process.stdin.pipe(proc.stdin);
|
|
125
127
|
if (proc.stderr) {
|
|
126
128
|
proc.stderr.on('data', data => {
|
|
127
|
-
var _percy$log;
|
|
128
129
|
const message = data.toString();
|
|
129
130
|
let entry = {
|
|
130
131
|
message,
|
|
131
132
|
timestamp: Date.now(),
|
|
132
133
|
type: 'ci'
|
|
133
134
|
};
|
|
134
|
-
|
|
135
|
+
// only collect logs if percy was enabled
|
|
136
|
+
if (percy) cilog.error(entry);
|
|
135
137
|
process.stderr.write(`${data}`);
|
|
136
138
|
});
|
|
137
139
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/cli-exec",
|
|
3
|
-
"version": "1.28.8-beta.
|
|
3
|
+
"version": "1.28.8-beta.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@percy/cli-command": "1.28.8-beta.
|
|
36
|
+
"@percy/cli-command": "1.28.8-beta.4",
|
|
37
|
+
"@percy/logger": "1.28.8-beta.4",
|
|
37
38
|
"cross-spawn": "^7.0.3",
|
|
38
39
|
"which": "^2.0.2"
|
|
39
40
|
},
|
|
40
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "0ea30a56b97b5a5dab6ddc1282f71f1ecf07df2d"
|
|
41
42
|
}
|