Pulled ALL skills from 15 source repositories: - anthropics/skills: 16 (docs, design, MCP, testing) - obra/superpowers: 14 (TDD, debugging, agents, planning) - coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth) - better-auth/skills: 5 (auth patterns) - vercel-labs/agent-skills: 5 (React, design, Vercel) - antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo) - Plus 13 individual skills from various repos Mosaic Stack is not limited to coding — the Orchestrator and subagents serve coding, business, design, marketing, writing, logistics, analysis, and more. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
92 lines
1.8 KiB
Markdown
92 lines
1.8 KiB
Markdown
# Log Level
|
|
|
|
Control the verbosity of build output.
|
|
|
|
## Overview
|
|
|
|
The `logLevel` option controls how much information tsdown displays during the build process.
|
|
|
|
## Type
|
|
|
|
```ts
|
|
logLevel?: 'silent' | 'error' | 'warn' | 'info'
|
|
```
|
|
|
|
**Default:** `'info'`
|
|
|
|
## Basic Usage
|
|
|
|
### CLI
|
|
|
|
```bash
|
|
# Suppress all output
|
|
tsdown --log-level silent
|
|
|
|
# Only show errors
|
|
tsdown --log-level error
|
|
|
|
# Show warnings and errors
|
|
tsdown --log-level warn
|
|
|
|
# Show all info (default)
|
|
tsdown --log-level info
|
|
```
|
|
|
|
### Config File
|
|
|
|
```ts
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
logLevel: 'error',
|
|
})
|
|
```
|
|
|
|
## Available Levels
|
|
|
|
| Level | Shows | Use Case |
|
|
|-------|-------|----------|
|
|
| `silent` | Nothing | CI/CD pipelines, scripting |
|
|
| `error` | Errors only | Minimal output |
|
|
| `warn` | Warnings + errors | Standard CI/CD |
|
|
| `info` | All messages | Development (default) |
|
|
|
|
## Common Patterns
|
|
|
|
### CI/CD Pipeline
|
|
|
|
```ts
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
logLevel: 'error', // Only show errors in CI
|
|
})
|
|
```
|
|
|
|
### Scripting
|
|
|
|
```ts
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
logLevel: 'silent', // No output for automation
|
|
})
|
|
```
|
|
|
|
## Fail on Warnings
|
|
|
|
The `failOnWarn` option controls whether warnings cause the build to exit with a non-zero code. Defaults to `'ci-only'` — warnings fail the build in CI but not locally.
|
|
|
|
```ts
|
|
export default defineConfig({
|
|
failOnWarn: 'ci-only', // Default: fail on warnings only in CI
|
|
// failOnWarn: true, // Always fail on warnings
|
|
// failOnWarn: false, // Never fail on warnings
|
|
})
|
|
```
|
|
|
|
See [CI Environment](advanced-ci.md) for more about CI-aware options.
|
|
|
|
## Related Options
|
|
|
|
- [CI Environment](advanced-ci.md) - CI-aware option details
|
|
- [CLI Reference](reference-cli.md) - All CLI options
|
|
- [Config File](option-config-file.md) - Configuration setup
|