Skip to content

Commit 85308e8

Browse files
Merge pull request #17 from technote-space/fix/#16
fix: rimraf
2 parents 6c1c755 + 6e864c2 commit 85308e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/command.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export const deploy = async (branch: string, context: Context) => {
1212
const pushDir = path.resolve(workDir, 'push');
1313
signale.info(`Deploying branch %s to %s`, branch, getRepository(context));
1414

15-
rimraf(workDir);
15+
rimraf(workDir, () => {
16+
});
1617
fs.mkdirSync(pushDir, {recursive: true});
1718
await prepareFiles(buildDir, pushDir, context);
1819
await cloneForBranch(pushDir, branch, context);

0 commit comments

Comments
 (0)