fix: Ignore semver range when upgrading comunity packages (#8863)

This commit is contained in:
Danny Martini
2024-03-11 18:12:20 +01:00
committed by GitHub
parent e10fa379d3
commit 11173a0114
2 changed files with 63 additions and 1 deletions

View File

@@ -320,7 +320,7 @@ export class CommunityPackagesService {
) {
const isUpdate = 'installedPackage' in options;
const command = isUpdate
? `npm update ${packageName}`
? `npm install ${packageName}@latest`
: `npm install ${packageName}${options.version ? `@${options.version}` : ''}`;
try {