File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
packages/@tailwindcss-cli/src Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
- Add heuristic to skip candidate migrations inside ` emit(…) ` ([ #18330 ] ( https://github.com/tailwindlabs/tailwindcss/pull/18330 ) )
11
11
- Extract candidates with variants in Clojure/ClojureScript keywords ([ #18338 ] ( https://github.com/tailwindlabs/tailwindcss/pull/18338 ) )
12
+ - Document ` --watch=always ` in the CLI's usage ([ #18337 ] ( https://github.com/tailwindlabs/tailwindcss/pull/18337 ) )
12
13
13
14
## [ 4.1.10] - 2025-06-11
14
15
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ export function options() {
42
42
} ,
43
43
'--watch' : {
44
44
type : 'boolean | string' ,
45
- description : 'Watch for changes and rebuild as needed' ,
45
+ description :
46
+ 'Watch for changes and rebuild as needed, and use `always` to keep watching when stdin is closed' ,
46
47
alias : '-w' ,
48
+ values : [ 'always' ] ,
47
49
} ,
48
50
'--minify' : {
49
51
type : 'boolean' ,
Original file line number Diff line number Diff line change @@ -112,7 +112,11 @@ export function help({
112
112
// `alias` followed by `, ` and followed by the `flag`.
113
113
let maxOptionLength = 0
114
114
115
- for ( let [ flag , { alias } ] of Object . entries ( options ) ) {
115
+ for ( let [ flag , { alias, values } ] of Object . entries ( options ) ) {
116
+ if ( values ?. length ) {
117
+ flag += `[=${ values . join ( ', ' ) } ]`
118
+ }
119
+
116
120
// The option string, which is the combination of the alias and the flag
117
121
// but already properly indented based on the other aliases to ensure
118
122
// everything is aligned properly.
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export type Arg = {
7
7
description : string
8
8
alias ?: `-${string } `
9
9
default ?: Types [ keyof Types ]
10
+ values ?: string [ ]
10
11
}
11
12
}
12
13
You can’t perform that action at this time.
0 commit comments