Skip to content

Commit

Permalink
fix(info): do not copy info in ci or without tty
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 10, 2025
1 parent 554fa1b commit cf33224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { detectPackageManager } from 'nypm'
import { resolve } from 'pathe'
import { readPackageJSON } from 'pkg-types'
import { splitByCase } from 'scule'
import { isMinimal } from 'std-env'

import { version as nuxiVersion } from '../../package.json' assert { type: 'json' }

Expand Down Expand Up @@ -120,7 +121,7 @@ export default defineCommand({
}\n`
}

const copied = await clipboardy
const copied = !isMinimal && await clipboardy
.write(infoStr)
.then(() => true)
.catch(() => false)
Expand Down

0 comments on commit cf33224

Please sign in to comment.