-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix getPackageVersion and use it to discern use of dlx (#264)
* fix getPackageVersion and use it to discern use of dlx fix the getPackageVersion (currently not correctly parsing packages using pnpm) and use it in the getVercelBuildChildProcess to decide if for yarn and pnpm we should include the dlx option resolves #250 resolves #262
- Loading branch information
1 parent
81bfcdb
commit 97c8739
Showing
4 changed files
with
91 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@cloudflare/next-on-pages': patch | ||
--- | ||
|
||
fix getPackageVersion and use it to discern use of dlx | ||
|
||
fix the `getPackageVersion` function so that it doesn't wrongly produce `N/A` (thus | ||
improving the `-i|--info` results) | ||
|
||
the when running `vercel build`, use the function to discern if `dlx` should be added | ||
(for `yarn (berry)` and `pnpm` commands), ensuring that the vercel package is not | ||
unnecessarily re-fetched/installed | ||
|
||
> **Note** | ||
> Currently the aforementioned check (and build command) runs `next-on-pages-vercel-cli` | ||
> anyways that's a temporary solution, the changes here will also apply when we switch | ||
> back to the proper vercel cli package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters