Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions tasks/zip-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function createZip(chunk, index, ctx) {
const zipFileParts = parse(ctx.args.dirPath);
const zipName = `${zipFileParts.name}_${index}.zip`;

fsUtils.zip.write(ctx.fileCache.zipDir, chunk, zipName);
await fsUtils.zip.write(ctx.fileCache.zipDir, chunk, zipName);
}

const initialise = (options) => {
Expand Down Expand Up @@ -157,8 +157,6 @@ const getFullTaskList = (options) => {
try {
let chunkDirs = globSync(`${ctx.fileCache.zipDir}/chunks/*`);

// This does not work properly, and is still trying to create the zip file when the tmp dir has been deleted
// When resolved, re-enable the 'Cleaning up' task
await Promise.all(chunkDirs.map((dir, index) => {
return createZip(dir, index, ctx);
}));
Expand Down Expand Up @@ -190,7 +188,6 @@ const getFullTaskList = (options) => {
},
{
title: 'Cleaning up',
skip: () => true,
task: async (ctx) => {
// 7. Remove the cached data
try {
Expand Down