Skip to content

Commit c4443b7

Browse files
Post merge fixups for #10575 (#10576)
1 parent 8ae9323 commit c4443b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/create-cloudflare/src/helpers/packages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export const installPackages = async (
6969
);
7070

7171
if (npm === "npm") {
72-
// Npm install will update the package.json with a hat-range rather than the exact version/range we asked for.
72+
// Npm install will update the package.json with a caret-range rather than the exact version/range we asked for.
73+
// We can't use `npm install --save-exact` because that always pins to an exact version, and we want to allow ranges too.
7374
// So let's just fix that up now by rewriting the package.json.
7475
const pkgJsonPath = path.join(process.cwd(), "package.json");
7576
const pkgJson = readJSON(pkgJsonPath) as PackageJson;

0 commit comments

Comments
 (0)