зеркало из https://github.com/microsoft/just.git
updated resolve logic for outdated package.json version check
This commit is contained in:
Родитель
41c885afd9
Коммит
726d070b6f
|
@ -66,7 +66,7 @@ function getUpdateVersions(versionSpec: VersionSpec, versionInfo: VersionInfo) {
|
|||
|
||||
let packageJsonVersion = '';
|
||||
|
||||
const resolved = resolveCwd(`${name}/package.json`);
|
||||
const resolved = resolve(`${name}/package.json`);
|
||||
if (resolved) {
|
||||
packageJsonVersion = JSON.parse(fs.readFileSync(resolved).toString()).version;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче