Skip to content

Commit cb898c9

Browse files
fix: run pnpm install with --no-frozen-lockfile (#2011)
## 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 🎁
1 parent 985e661 commit cb898c9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/blocks/blockPackageJson.test.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe("blockPackageJson", () => {
2222
"scripts": [
2323
{
2424
"commands": [
25-
"pnpm install",
25+
"pnpm install --no-frozen-lockfile",
2626
],
2727
"phase": 1,
2828
},
@@ -55,7 +55,7 @@ describe("blockPackageJson", () => {
5555
"scripts": [
5656
{
5757
"commands": [
58-
"pnpm install",
58+
"pnpm install --no-frozen-lockfile",
5959
],
6060
"phase": 1,
6161
},
@@ -86,7 +86,7 @@ describe("blockPackageJson", () => {
8686
"scripts": [
8787
{
8888
"commands": [
89-
"pnpm install",
89+
"pnpm install --no-frozen-lockfile",
9090
"pnpm dedupe",
9191
],
9292
"phase": 1,
@@ -121,7 +121,7 @@ describe("blockPackageJson", () => {
121121
"scripts": [
122122
{
123123
"commands": [
124-
"pnpm install",
124+
"pnpm install --no-frozen-lockfile",
125125
"pnpm dedupe",
126126
],
127127
"phase": 1,
@@ -147,7 +147,7 @@ describe("blockPackageJson", () => {
147147
"scripts": [
148148
{
149149
"commands": [
150-
"pnpm install",
150+
"pnpm install --no-frozen-lockfile",
151151
],
152152
"phase": 1,
153153
},
@@ -175,7 +175,7 @@ describe("blockPackageJson", () => {
175175
"scripts": [
176176
{
177177
"commands": [
178-
"pnpm install",
178+
"pnpm install --no-frozen-lockfile",
179179
],
180180
"phase": 1,
181181
},
@@ -198,7 +198,7 @@ describe("blockPackageJson", () => {
198198
"scripts": [
199199
{
200200
"commands": [
201-
"pnpm install --offline",
201+
"pnpm install --offline --no-frozen-lockfile",
202202
],
203203
"phase": 1,
204204
},

src/blocks/blockPackageJson.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const blockPackageJson = base.createBlock({
9393
scripts: [
9494
{
9595
commands: [
96-
offline ? "pnpm install --offline" : "pnpm install",
96+
`pnpm install ${offline ? "--offline " : ""}--no-frozen-lockfile`,
9797
...addons.cleanupCommands,
9898
],
9999
phase: CommandPhase.Install,

0 commit comments

Comments
 (0)