Skip to content

Commit 4ae4f2e

Browse files
committed
Align workspaceName in optimize command with fix command
1 parent a38e8ce commit 4ae4f2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/optimize/add-overrides.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export async function addOverrides(
7474
const isWorkspace = workspacePkgJsonPaths.length > 0
7575
const isWorkspaceRoot = pkgPath === rootPath
7676
const isLockScanned = isWorkspaceRoot && !prod
77-
const workspaceName = isWorkspaceRoot ? 'root' : path.relative(rootPath, pkgPath)
77+
const workspaceName = isWorkspaceRoot
78+
? 'root'
79+
: path.relative(rootPath, pkgPath)
7880
if (
7981
isWorkspace &&
8082
agent === PNPM &&
@@ -101,9 +103,7 @@ export async function addOverrides(
101103
)
102104
}
103105

104-
spinner?.setText(
105-
`Adding overrides to ${workspaceName}...`
106-
)
106+
spinner?.setText(`Adding overrides to ${workspaceName}...`)
107107

108108
const depAliasMap = new Map<string, string>()
109109
const depEntries = getDependencyEntries(pkgEnvDetails)

0 commit comments

Comments
 (0)