Skip to content

Commit

Permalink
fix: remove duplicate zip code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayushman Chhabra committed Jun 29, 2023
1 parent 3dbbe9c commit d77e959
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## Added

- Compress `outDir` to `zip`, `tar` and `tgz` formats.

## [4.2.8] - 2023-06-29

### Changed
Expand Down
5 changes: 0 additions & 5 deletions src/bld/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,4 @@ export const build = async (

await rm(outDir, { recursive: true, force: true });
}

if (zip === true || zip === "zip") {
await compressing.zip.compressDir(outDir, `${outDir}.zip`);
await rm(outDir, { recursive: true, force: true });
}
};

0 comments on commit d77e959

Please sign in to comment.