fix: prepublish & record rejudge

This commit is contained in:
undefined committed 2020-08-28 22:51:18 +08:00
1 parent 4939b62b51
commit 7651b0a697
6 files changed
+13 -5

No files matched your search

+2
View File
@@ -1,3 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import path from 'path';
import globby from 'globby';
import spawn from 'cross-spawn';
@@ -38,5 +39,6 @@ export function spawnAsync(command: string) {
const child = spawn(args[0], args.slice(1), { stdio: 'inherit' });
return new Promise((resolve, reject) => {
child.on('close', resolve);
child.on('error', reject);
});
}