Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
benibenj committed Nov 4, 2024
1 parent 13d8466 commit b015095
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,11 +984,7 @@ export class ReadmeProcessor extends MarkdownProcessor {
}

override async processFile(file: IFile): Promise<IFile> {
if (isInMemoryFile(file)) {
util.log.warn(`The provided readme file is in memory and will not be included in the VSIX.`);
return file;
}
file = { ...file, originalPath: file.localPath, path: 'extension/readme.md' };
file = { ...file, originalPath: !isInMemoryFile(file) ? file.localPath : undefined, path: 'extension/readme.md' };
return await super.processFile(file, file.path);
}

Expand Down Expand Up @@ -1016,7 +1012,7 @@ export class ChangelogProcessor extends MarkdownProcessor {
util.log.warn(`The provided changelog file is in memory and will not be included in the VSIX.`);
return file;
}
file = { ...file, originalPath: file.localPath, path: 'extension/changelog.md' };
file = { ...file, originalPath: !isInMemoryFile(file) ? file.localPath : undefined, path: 'extension/changelog.md' };
return await super.processFile(file, file.path);
}

Expand Down

0 comments on commit b015095

Please sign in to comment.