Skip to content

Commit

Permalink
fix: correct --offline ternary in blockPackageJson (#1893)
Browse files Browse the repository at this point in the history
## PR Checklist

- [x] Addresses an existing open issue: fixes #1890
- [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

_sigh_

💖
  • Loading branch information
JoshuaKGoldberg authored Jan 16, 2025
1 parent 024e347 commit b172b31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/next/blocks/blockPackageJson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("blockPackageJson", () => {
"scripts": [
{
"commands": [
"pnpm install --offline",
"pnpm install",
],
"phase": 1,
},
Expand All @@ -44,7 +44,7 @@ describe("blockPackageJson", () => {
"scripts": [
{
"commands": [
"pnpm install --offline",
"pnpm install",
],
"phase": 1,
},
Expand Down Expand Up @@ -82,7 +82,7 @@ describe("blockPackageJson", () => {
"scripts": [
{
"commands": [
"pnpm install --offline",
"pnpm install",
"pnpm dedupe",
],
"phase": 1,
Expand Down Expand Up @@ -117,7 +117,7 @@ describe("blockPackageJson", () => {
"scripts": [
{
"commands": [
"pnpm install --offline",
"pnpm install",
"pnpm dedupe",
],
"phase": 1,
Expand Down
2 changes: 1 addition & 1 deletion src/next/blocks/blockPackageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const blockPackageJson = base.createBlock({
scripts: [
{
commands: [
offline ? "pnpm install" : "pnpm install --offline",
offline ? "pnpm install --offline" : "pnpm install",
...addons.cleanupCommands,
],
phase: CommandPhase.Install,
Expand Down

0 comments on commit b172b31

Please sign in to comment.