Skip to content

Commit

Permalink
Attempt to fix the deploy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonYeMSFT committed Dec 8, 2023
1 parent a08e258 commit a25fcfc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions appservice/src/deploy/runWithZipStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,8 @@ export async function runWithZipStream(context: IActionContext, options: {
ext.outputChannel.appendLog(vscode.l10n.t('Creating zip package...'), { resourceName: site.fullName });
const zipFile: yazl.ZipFile = new yazl.ZipFile();
let filesToZip: string[] = [];
let sizeOfZipFile: number = 0;

zipFile.outputStream.on('data', (chunk) => {
if (typeof chunk === 'string' || Buffer.isBuffer(chunk)) {
sizeOfZipFile += chunk.length;
}
});

zipFile.outputStream.on('finish', () => onFileSize(sizeOfZipFile));
zipFile.outputStream.on('finish', () => onFileSize((zipFile as any).outputStreamCursor));

Check failure on line 47 in appservice/src/deploy/runWithZipStream.ts

View workflow job for this annotation

GitHub Actions / Build (appservice) / Build

Unsafe argument of type `any` assigned to a parameter of type `number`

Check failure on line 47 in appservice/src/deploy/runWithZipStream.ts

View workflow job for this annotation

GitHub Actions / Build (appservice) / Build

Unsafe member access .outputStreamCursor on an `any` value

Check warning on line 47 in appservice/src/deploy/runWithZipStream.ts

View workflow job for this annotation

GitHub Actions / Build (appservice) / Build

Unexpected any. Specify a different type

if ((await fse.lstat(fsPath)).isDirectory()) {
if (!fsPath.endsWith(path.sep)) {
Expand Down

0 comments on commit a25fcfc

Please sign in to comment.