Skip to content

Commit

Permalink
run tests against [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmenPopoviciu committed Jan 17, 2025
1 parent 16a9460 commit 3059047
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/create-cloudflare/src/helpers/packages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { existsSync } from "fs";
import path from "path";
import { log } from "@cloudflare/cli";
import { brandColor, dim } from "@cloudflare/cli/colors";
import { fetch } from "undici";
import { runCommand } from "./command";
Expand Down Expand Up @@ -88,9 +89,11 @@ export async function getLatestPackageVersion(packageSpecifier: string) {
*/
export const installWrangler = async () => {
const { npm } = detectPackageManager();
const version = process.env.CI ? "3.103.0" : "latest";
log(`Using wrangler@${version}`);

// Even if Wrangler is already installed, make sure we install the latest version, as some framework CLIs are pinned to an older version
await installPackages([`wrangler@latest`], {
await installPackages([`wrangler@${version}`], {
dev: true,
startText: `Installing wrangler ${dim(
"A command line tool for building Cloudflare Workers",
Expand Down

0 comments on commit 3059047

Please sign in to comment.