diff --git a/.scripts/dependencies.ts b/.scripts/dependencies.ts index dd03053..18e9754 100644 --- a/.scripts/dependencies.ts +++ b/.scripts/dependencies.ts @@ -202,7 +202,7 @@ function updateGeneratedPackageDependencyVersion(codeFilePath: string, dependenc codeFilePath, codeFileContents, dependencyName, - new RegExp(`\\\\"${dependencyName}\\\\": \\\\"(.*)\\\\"`), + new RegExp(`\\\\"${dependencyName}\\\\": \\\\"(.*?)\\\\"`), `\\"${dependencyName}\\": \\"${newDependencyVersion}\\"`, newDependencyVersion); @@ -210,7 +210,7 @@ function updateGeneratedPackageDependencyVersion(codeFilePath: string, dependenc codeFilePath, codeFileContents, dependencyName, - new RegExp(`"${dependencyName}": "(.*)"`), + new RegExp(`"${dependencyName}": "(.*?)"`), `"${dependencyName}": "${newDependencyVersion}"`, newDependencyVersion);