From 345aac9101f01fa6e004f1fc48dd62caa19fcbcd Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Fri, 12 Oct 2018 15:03:03 -0700 Subject: [PATCH] Change tilde to caret --- .scripts/dependencies.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.scripts/dependencies.ts b/.scripts/dependencies.ts index cf4417f..e29e3e6 100644 --- a/.scripts/dependencies.ts +++ b/.scripts/dependencies.ts @@ -311,7 +311,7 @@ export function getLocalDependencyVersion(dependencyName: string): string { } export function getPreviewDependencyVersion(dependencyName: string): string | undefined { - let version: string | undefined = addTildePrefix(getNpmPackageVersion(dependencyName, "preview")); + let version: string | undefined = addCaretPrefix(getNpmPackageVersion(dependencyName, "preview")); if (!version) { version = getLatestDependencyVersion(dependencyName); } @@ -319,9 +319,9 @@ export function getPreviewDependencyVersion(dependencyName: string): string | un } export function getLatestDependencyVersion(dependencyName: string): string | undefined { - return addTildePrefix(getNpmPackageVersion(dependencyName, "latest")); + return addCaretPrefix(getNpmPackageVersion(dependencyName, "latest")); } -function addTildePrefix(version: string | undefined): string | undefined { - return version ? `~${version}` : version; +function addCaretPrefix(version: string | undefined): string | undefined { + return version ? `^${version}` : version; } \ No newline at end of file