Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
fix: Don't add dot folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Oct 17, 2019
1 parent 195bb63 commit a54453e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BuildService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class BuildService {

this.logger.info(`Adding file "${resolvedPath}" to ZIP file ...`);

await this.jszip.file(zipPath, fileData, {
this.jszip.file(zipPath, fileData, {
createFolders: true,
date: fileStat.mtime,
//dosPermissions: fileStat.mode,
Expand Down Expand Up @@ -210,7 +210,7 @@ class BuildService {
this.logger.info(`Walking directory ${entry.resolvedPath} ...`);
const dirEntries = await fs.readdir(entry.resolvedPath);
for (const dirEntry of dirEntries) {
const newZipPath = `${entry.zipPath}/${dirEntry}`;
const newZipPath = entry.zipPath === '.' ? dirEntry : `${entry.zipPath}/${dirEntry}`;
const newResolvedPath = path.join(entry.resolvedPath, dirEntry);
await this.checkEntry({
resolvedPath: newResolvedPath,
Expand Down

0 comments on commit a54453e

Please sign in to comment.