Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmenPopoviciu committed Jan 23, 2025
1 parent 573796e commit 859220b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/create-cloudflare/e2e-tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,13 @@ export function kill(proc: ChildProcess) {

export function packWrangler(): string {
const pathToWrangler = path.resolve(__dirname, "../../wrangler");
execSync("pnpm pack --pack-destination ./.pack", { cwd: pathToWrangler });
execSync("pnpm pack --pack-destination ./pack", { cwd: pathToWrangler });

const versions = execSync("ls -1 .pack", {
const versions = execSync("ls -1 pack", {
encoding: "utf-8",
cwd: pathToWrangler,
});
const wranglerVersion = versions.trim().split("\n").at(-1); // get last wrangler version
assert(wranglerVersion);
return path.join(pathToWrangler, ".pack", wranglerVersion);
return path.join(pathToWrangler, "pack", wranglerVersion);
}

0 comments on commit 859220b

Please sign in to comment.