Skip to content

Commit

Permalink
fix: Prevent non-zero exit code in most cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaninvents committed Feb 14, 2019
1 parent 4b6133d commit 45ec06d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import gulp from 'gulp';
import gulpZip from 'gulp-zip';
import del from 'del';
import { join } from 'path';
import { promiseFromObjectStream } from './p-stream.js';
import fs from 'fs-extra';
Expand Down Expand Up @@ -38,4 +39,11 @@ export async function build ({ cwd, out, manifest, reporter, options }) {
);

reporter.created(join(out, ZIP_FILENAME), `zip:dependencies`);

try {
await del([join(tempWorkingDir, '*')]);
} catch (er) {
// If this fails, it's not a big deal. We'll likely get a non-zero
// exit code though
}
}

0 comments on commit 45ec06d

Please sign in to comment.