Skip to content
This repository was archived by the owner on Sep 17, 2020. It is now read-only.

Commit 79245ea

Browse files
committed
ci-work: fix build-frontend to actually install then build!
1 parent 88240bd commit 79245ea

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

build-frontend.js

+8-12
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ const path = require('path');
33

44
const options = {cwd: path.join('webrecorder', 'frontend'), stdio: 'inherit', shell: true};
55

6-
spawn('yarn install', [], options, (err, stdout, stderr) => {
7-
if (err) {
8-
console.error(err);
9-
return;
10-
}
6+
spawn('yarn install', [], options).on('exit', (code) => {
7+
if (code != 0) {
8+
return process.exit(code);
9+
}
1110

12-
spawn('yarn run build-player', [], options, (err, stdout, stderr) => {
13-
if (err) {
14-
console.error(err);
15-
return;
16-
}
17-
console.log(stdout);
18-
});
11+
spawn('yarn run build-player', [], options).on('exit', (code2) => {
12+
return process.exit(code2);
13+
});
1914
});
15+

0 commit comments

Comments
 (0)