fix(core): update
This commit is contained in:
parent
5ebce389d3
commit
6745115db7
@ -92,7 +92,7 @@ export class NpmRegistry {
|
|||||||
}): Promise<plugins.smartfile.Smartfile[]> {
|
}): Promise<plugins.smartfile.Smartfile[]> {
|
||||||
const npmPackage = await this.getPackageInfo(packageNameArg);
|
const npmPackage = await this.getPackageInfo(packageNameArg);
|
||||||
if (!optionsArg?.version && !optionsArg?.distTag) {
|
if (!optionsArg?.version && !optionsArg?.distTag) {
|
||||||
const latestAvailable = npmPackage.allDistTags.find(packageArg => packageArg.name === 'latest');
|
const latestAvailable = npmPackage.allDistTags.find(packageDistTagArg => packageDistTagArg.name === 'latest');
|
||||||
if (!latestAvailable) {
|
if (!latestAvailable) {
|
||||||
optionsArg = {
|
optionsArg = {
|
||||||
version: npmPackage.getBestMatchingVersion('*')
|
version: npmPackage.getBestMatchingVersion('*')
|
||||||
|
Loading…
Reference in New Issue
Block a user