diff --git a/lib/uv.js b/lib/uv.js index 6e8d5ca8..26be948b 100644 --- a/lib/uv.js +++ b/lib/uv.js @@ -63,16 +63,12 @@ async function uvToRequirements() { } let res; - + try { await getUvVersion(); - res = await spawn( - 'uv', - ['export', '--no-dev', '--frozen', '--no-hashes'], - { - cwd: this.servicePath, - } - ); + res = await spawn('uv', ['export', '--no-dev', '--frozen', '--no-hashes'], { + cwd: this.servicePath, + }); fse.ensureDirSync(path.join(this.servicePath, '.serverless')); fse.writeFileSync(