Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add heuristic to skip candidate migrations inside `emit(…)` ([#18330](https://github.com/tailwindlabs/tailwindcss/pull/18330))
- Extract candidates with variants in Clojure/ClojureScript keywords ([#18338](https://github.com/tailwindlabs/tailwindcss/pull/18338))
- Document `--watch=always` in the CLI's usage ([#18337](https://github.com/tailwindlabs/tailwindcss/pull/18337))

## [4.1.10] - 2025-06-11

Expand Down
4 changes: 3 additions & 1 deletion packages/@tailwindcss-cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ export function options() {
},
'--watch': {
type: 'boolean | string',
description: 'Watch for changes and rebuild as needed',
description:
'Watch for changes and rebuild as needed, and use `always` to keep watching when stdin is closed',
alias: '-w',
values: ['always'],
},
'--minify': {
type: 'boolean',
Expand Down
6 changes: 5 additions & 1 deletion packages/@tailwindcss-cli/src/commands/help/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ export function help({
// `alias` followed by `, ` and followed by the `flag`.
let maxOptionLength = 0

for (let [flag, { alias }] of Object.entries(options)) {
for (let [flag, { alias, values }] of Object.entries(options)) {
if (values?.length) {
flag += `[=${values.join(', ')}]`
}

// The option string, which is the combination of the alias and the flag
// but already properly indented based on the other aliases to ensure
// everything is aligned properly.
Expand Down
1 change: 1 addition & 0 deletions packages/@tailwindcss-cli/src/utils/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type Arg = {
description: string
alias?: `-${string}`
default?: Types[keyof Types]
values?: string[]
}
}

Expand Down