diff --git a/ts/smartnpm.classes.npmpackage.ts b/ts/smartnpm.classes.npmpackage.ts index 6541fae..886e25e 100644 --- a/ts/smartnpm.classes.npmpackage.ts +++ b/ts/smartnpm.classes.npmpackage.ts @@ -116,7 +116,7 @@ export class NpmPackage { targetVersion = new plugins.smartversion.SmartVersion(targetDistTag.targetVersion); } } else { - const smartversion = plugins.smartversion.SmartVersion.fromFuzzyString(optionsArg.version); + targetVersion = plugins.smartversion.SmartVersion.fromFuzzyString(optionsArg.version); } // lets find the best matching release