Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
benibenj committed Dec 10, 2024
1 parent b400da1 commit c367404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 505,7 @@ export class ManifestProcessor extends BaseProcessor {
if (!minEngineVersion) {
throw new Error('Failed to get minVersion of engines.vscode')
}

if (target) {
if (engineSemver.version !== 'latest' && !semver.satisfies(minEngineVersion, '>=1.61', { includePrerelease: true })) {
throw new Error(
Expand Down Expand Up @@ -1796,7 1796,7 @@ export function collect(manifest: ManifestPackage, options: IPackageOptions = {}
});
}

export function writeVsix(files: IFile[], packagePath: string): Promise<void> {
function writeVsix(files: IFile[], packagePath: string): Promise<void> {
return fs.promises
.unlink(packagePath)
.catch(err => (err.code !== 'ENOENT' ? Promise.reject(err) : Promise.resolve(null)))
Expand Down

0 comments on commit c367404

Please sign in to comment.