Repository: JoshuaKGoldberg/create-typescript-app (ts)

Issue:
🐛 Bug: blockPackageJson unable to update lockfile in transition mode CI
### Bug Report Checklist

- [x] I have tried restarting my IDE and the issue persists.
- [x] I have pulled the latest `main` branch of the repository.
- [x] I have [searched for related issues](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aissue) and found none that matched my issue.

### Expected

Running `pnpx create-typescript-app` as transition mode in CI should update the `pnpm-lock.yaml` file.

### Actual

It's not currently, because [`--no-frozen-lockfile`](https://pnpm.io/cli/install#--frozen-lockfile) is not set.

### Additional Info

🎁 

Pull request:
fix: run pnpm install with --no-frozen-lockfile
## PR Checklist

- [x] Addresses an existing open issue: fixes #2010
- [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken

## Overview

🎁 

Patch:
diff --git a/src/blocks/blockPackageJson.ts b/src/blocks/blockPackageJson.ts
index afb6d01..c003a5f 100644
--- a/src/blocks/blockPackageJson.ts
+++ b/src/blocks/blockPackageJson.ts
@@ -93,7 +93,7 @@ export const blockPackageJson = base.createBlock({
 			scripts: [
 				{
 					commands: [
-						offline ? "pnpm install --offline" : "pnpm install",
+						`pnpm install ${offline ? "--offline " : ""}--no-frozen-lockfile`,
 						...addons.cleanupCommands,
 					],
 					phase: CommandPhase.Install,


Test patch:
diff --git a/src/blocks/blockPackageJson.test.ts b/src/blocks/blockPackageJson.test.ts
index 4458cd9..d2a5816 100644
--- a/src/blocks/blockPackageJson.test.ts
+++ b/src/blocks/blockPackageJson.test.ts
@@ -22,7 +22,7 @@ describe("blockPackageJson", () => {
 			  "scripts": [
 			    {
 			      "commands": [
-			        "pnpm install",
+			        "pnpm install --no-frozen-lockfile",
 			      ],
 			      "phase": 1,
 			    },
@@ -55,7 +55,7 @@ describe("blockPackageJson", () => {
 			  "scripts": [
 			    {
 			      "commands": [
-			        "pnpm install",
+			        "pnpm install --no-frozen-lockfile",
 			      ],
 			      "phase": 1,
 			    },
@@ -86,7 +86,7 @@ describe("blockPackageJson", () => {
 			  "scripts": [
 			    {
 			      "commands": [
-			        "pnpm install",
+			        "pnpm install --no-frozen-lockfile",
 			        "pnpm dedupe",
 			      ],
 			      "phase": 1,
@@ -121,7 +121,7 @@ describe("blockPackageJson", () => {
 			  "scripts": [
 			    {
 			      "commands": [
-			        "pnpm install",
+			        "pnpm install --no-frozen-lockfile",
 			        "pnpm dedupe",
 			      ],
 			      "phase": 1,
@@ -147,7 +147,7 @@ describe("blockPackageJson", () => {
 			  "scripts": [
 			    {
 			      "commands": [
-			        "pnpm install",
+			        "pnpm install --no-frozen-lockfile",
 			      ],
 			      "phase": 1,
 			    },
@@ -175,7 +175,7 @@ describe("blockPackageJson", () => {
 			  "scripts": [
 			    {
 			      "commands": [
-			        "pnpm install",
+			        "pnpm install --no-frozen-lockfile",
 			      ],
 			      "phase": 1,
 			    },
@@ -198,7 +198,7 @@ describe("blockPackageJson", () => {
 			  "scripts": [
 			    {
 			      "commands": [
-			        "pnpm install --offline",
+			        "pnpm install --offline --no-frozen-lockfile",
 			      ],
 			      "phase": 1,
 			    },