testdriverai 4.0.9 → 4.0.10
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/lib/init.js +9 -4
- package/package.json +1 -1
package/lib/init.js
CHANGED
|
@@ -35,11 +35,16 @@ async function getLatestRelease(owner, repo) {
|
|
|
35
35
|
const dest = fs.createWriteStream(path2);
|
|
36
36
|
downloadResponse.data.pipe(dest);
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
return new Promise((resolve, reject) => {
|
|
39
|
+
dest.on('finish', () => {
|
|
40
|
+
resolve(path2);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
dest.on('error', (error) => {
|
|
44
|
+
reject(error);
|
|
45
|
+
});
|
|
39
46
|
});
|
|
40
47
|
|
|
41
|
-
return path2;
|
|
42
|
-
|
|
43
48
|
} else {
|
|
44
49
|
console.log('No valid release found.');
|
|
45
50
|
return false;
|
|
@@ -96,7 +101,7 @@ module.exports = async () => {
|
|
|
96
101
|
]);
|
|
97
102
|
|
|
98
103
|
console.log('');
|
|
99
|
-
console.log(chalk.dim(`Writing
|
|
104
|
+
console.log(chalk.dim(`Writing ${response.APPEND}...`));
|
|
100
105
|
console.log('');
|
|
101
106
|
console.log(`Downloading latest workflow files...`);
|
|
102
107
|
console.log('');
|