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
99
1010- Add heuristic to skip candidate migrations inside ` emit(…) ` ([ #18330 ] ( https://github.com/tailwindlabs/tailwindcss/pull/18330 ) )
1111- 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 ) )
1213
1314## [ 4.1.10] - 2025-06-11
1415
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ export function options() {
4242 } ,
4343 '--watch' : {
4444 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' ,
4647 alias : '-w' ,
48+ values : [ 'always' ] ,
4749 } ,
4850 '--minify' : {
4951 type : 'boolean' ,
Original file line number Diff line number Diff line change @@ -112,7 +112,11 @@ export function help({
112112 // `alias` followed by `, ` and followed by the `flag`.
113113 let maxOptionLength = 0
114114
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+
116120 // The option string, which is the combination of the alias and the flag
117121 // but already properly indented based on the other aliases to ensure
118122 // everything is aligned properly.
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export type Arg = {
77 description : string
88 alias ?: `-${string } `
99 default ?: Types [ keyof Types ]
10+ values ?: string [ ]
1011 }
1112}
1213
You can’t perform that action at this time.
0 commit comments