[build-utils] Improve no lockfile detection logic (#11706)

Two minor improvements missed from the review of https://github.com/vercel/vercel/pull/11697:

- [Include supported package manager names in error message](https://github.com/vercel/vercel/pull/11697#discussion_r1628382867)
- [Avoid `as` to improve type safety](https://github.com/vercel/vercel/pull/11697#discussion_r1628384789)
This commit is contained in:
Austin Merrick
2024-06-06 16:20:23 -07:00
committed by GitHub
parent fa9789a93e
commit 21444a38e5
2 changed files with 8 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
'@vercel/build-utils': patch
---
Improve error message and refactor