@tailwindcss/cli 0.0.0-insiders.bb2f170 → 0.0.0-insiders.bb3fe16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +22 -18
  2. package/package.json +6 -6
package/dist/index.mjs CHANGED
@@ -1,24 +1,28 @@
1
1
  #!/usr/bin/env node
2
- var he=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ge=e=>{throw TypeError(e)};var te=(e,t,n)=>{if(t!=null){typeof t!="object"&&typeof t!="function"&&ge("Object expected");var i,o;n&&(i=t[he("asyncDispose")]),i===void 0&&(i=t[he("dispose")],n&&(o=i)),typeof i!="function"&&ge("Object not disposable"),o&&(i=function(){try{o.call(this)}catch(r){return Promise.reject(r)}}),e.push([n,i,t])}else n&&e.push([n]);return t},ne=(e,t,n)=>{var i=typeof SuppressedError=="function"?SuppressedError:function(a,s,l,c){return c=Error(l),c.name="SuppressedError",c.error=a,c.suppressed=s,c},o=a=>t=n?new i(a,t,"An error was suppressed during disposal"):(n=!0,a),r=a=>{for(;a=e.pop();)try{var s=a[1]&&a[1].call(a[2]);if(a[0])return Promise.resolve(s).then(r,l=>(o(l),r()))}catch(l){o(l)}if(n)throw t};return r()};import De from"mri";function v(e,t=process.argv.slice(2)){for(let[o,r]of t.entries())r==="-"&&(t[o]="__IO_DEFAULT_VALUE__");let n=De(t);for(let o in n){let r=n[o];o!=="_"&&Array.isArray(r)&&(r=r[r.length-1]),r==="__IO_DEFAULT_VALUE__"&&(r="-"),n[o]=r}let i={_:n._};for(let[o,{type:r,alias:a,default:s=r==="boolean"?!1:null}]of Object.entries(e)){if(i[o]=s,a){let l=a.slice(1);n[l]!==void 0&&(i[o]=we(n[l],r))}{let l=o.slice(2);n[l]!==void 0&&(i[o]=we(n[l],r))}}return i}function we(e,t){switch(t){case"string":return z(e);case"boolean":return j(e);case"number":return U(e);case"boolean | string":return j(e)??z(e);case"number | string":return U(e)??z(e);case"boolean | number":return j(e)??U(e);case"boolean | number | string":return j(e)??U(e)??z(e);default:throw new Error(`Unhandled type: ${t}`)}}function j(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function U(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function z(e){return`${e}`}import Qe from"@parcel/watcher";import{compile as He,env as Ze,Instrumentation as xe,optimize as Xe,toSourceMap as Y}from"@tailwindcss/node";import{clearRequireCache as et}from"@tailwindcss/node/require-cache";import{Scanner as tt}from"@tailwindcss/oxide";import{existsSync as nt}from"fs";import ae from"fs/promises";import T from"path";var k=class{#e=new Set([]);queueMacrotask(t){let n=setTimeout(t,0);return this.add(()=>{clearTimeout(n)})}add(t){return this.#e.add(t),()=>{this.#e.delete(t),t()}}async dispose(){for(let t of this.#e)await t();this.#e.clear()}};import Ye from"fs";import Ce from"path";import{stripVTControlCharacters as Ve}from"util";import w from"picocolors";import be from"enhanced-resolve";import We from"fs";import{createRequire as Ge}from"module";var Ke=Ge(import.meta.url).resolve;function ye(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return Ke(e)}var $t=be.ResolverFactory.createResolver({fileSystem:new be.CachedInputFileSystem(We,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function Se(e){let t=typeof e=="number"?BigInt(e):e;return t<1000n?`${t}ns`:(t/=1000n,t<1000n?`${t}\xB5s`:(t/=1000n,t<1000n?`${t}ms`:(t/=1000n,t<60n?`${t}s`:(t/=60n,t<60n?`${t}m`:(t/=60n,t<24n?`${t}h`:(t/=24n,`${t}d`))))))}var I={indent:2};function M(){return`${w.italic(w.bold(w.blue("\u2248")))} tailwindcss ${w.blue(`v${qe()}`)}`}function A(e){return`${w.dim(w.blue("`"))}${w.blue(e)}${w.dim(w.blue("`"))}`}function D(e,t=process.cwd(),{preferAbsoluteIfShorter:n=!0}={}){let i=Ce.relative(t,e);return i.startsWith("..")||(i=`.${Ce.sep}${i}`),n&&i.length>e.length?e:i}function ie(e,t){let n=e.split(" "),i=[],o="",r=0;for(let a of n){let s=Ve(a).length;r+s+1>t&&(i.push(o),o="",r=0),o+=(r?" ":"")+a,r+=s+(r?1:0)}return r&&i.push(o),i}function W(e){let t=Se(e);return e<=50*1e6?w.green(t):e<=300*1e6?w.blue(t):e<=1e3*1e6?w.yellow(t):w.red(t)}function P(e,t=0){return`${" ".repeat(t+I.indent)}${e}`}function _(e=""){process.stderr.write(`${e}
3
- `)}function G(e=""){process.stdout.write(`${e}
4
- `)}function qe(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(Ye.readFileSync(ye("tailwindcss/package.json"),"utf-8"));return e}import K from"fs/promises";import Je from"path";function re(){return new Promise((e,t)=>{let n="";process.stdin.on("data",i=>{n+=i}),process.stdin.on("end",()=>e(n)),process.stdin.on("error",i=>t(i))})}async function se(e,t){if(!await K.stat(e).then(i=>i.isCharacterDevice()||i.isFIFO()).catch(()=>!1))try{if(await K.readFile(e,"utf8")===t)return}catch{}await K.mkdir(Je.dirname(e),{recursive:!0}),await K.writeFile(e,t,"utf8")}var _e=String.raw,u=Ze.DEBUG;function $(){return{"--input":{type:"string",description:"Input file",alias:"-i"},"--output":{type:"string",description:"Output file",alias:"-o",default:"-"},"--watch":{type:"boolean | string",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",description:"Optimize and minify the output",alias:"-m"},"--optimize":{type:"boolean",description:"Optimize the output without minifying"},"--cwd":{type:"string",description:"The current working directory",default:"."},"--map":{type:"boolean | string",description:"Generate a source map",default:!1}}}async function oe(e){try{return await e()}catch(t){t instanceof Error&&_(t.toString()),process.exit(1)}}async function le(e){var L=[];try{_(M());_();let t=te(L,new xe);u&&t.start("[@tailwindcss/cli] (initial build)");let n=T.resolve(e["--cwd"]);e["--output"]&&e["--output"]!=="-"&&(e["--output"]=T.resolve(n,e["--output"]));e["--input"]&&e["--input"]!=="-"&&(e["--input"]=T.resolve(n,e["--input"]),nt(e["--input"])||(_(`Specified input file ${A(D(e["--input"]))} does not exist.`),process.exit(1)));e["--input"]===e["--output"]&&e["--input"]!=="-"&&(_(`Specified input file ${A(D(e["--input"]))} and output file ${A(D(e["--output"]))} are identical.`),process.exit(1));e["--map"]==="-"&&(_("Use --map without a value to inline the source map"),process.exit(1));e["--map"]&&e["--map"]!==!0&&(e["--map"]=T.resolve(n,e["--map"]));let i=process.hrtime.bigint();let o=e["--input"]?e["--input"]==="-"?await re():await ae.readFile(e["--input"],"utf-8"):_e`
2
+ var ye=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Se=e=>{throw TypeError(e)};var J=(e,t,n)=>{if(t!=null){typeof t!="object"&&typeof t!="function"&&Se("Object expected");var i,r;n&&(i=t[ye("asyncDispose")]),i===void 0&&(i=t[ye("dispose")],n&&(r=i)),typeof i!="function"&&Se("Object not disposable"),r&&(i=function(){try{r.call(this)}catch(s){return Promise.reject(s)}}),e.push([n,i,t])}else n&&e.push([n]);return t},Q=(e,t,n)=>{var i=typeof SuppressedError=="function"?SuppressedError:function(o,a,l,c){return c=Error(l),c.name="SuppressedError",c.error=o,c.suppressed=a,c},r=o=>t=n?new i(o,t,"An error was suppressed during disposal"):(n=!0,o),s=o=>{for(;o=e.pop();)try{var a=o[1]&&o[1].call(o[2]);if(o[0])return Promise.resolve(a).then(s,l=>(r(l),s()))}catch(l){r(l)}if(n)throw t};return s()};import Je from"mri";function k(e,t=process.argv.slice(2)){for(let[r,s]of t.entries())s==="-"&&(t[r]="__IO_DEFAULT_VALUE__");let n=Je(t);for(let r in n){let s=n[r];r!=="_"&&Array.isArray(s)&&(s=s[s.length-1]),s==="__IO_DEFAULT_VALUE__"&&(s="-"),n[r]=s}let i={_:n._};for(let[r,{type:s,alias:o,default:a=s==="boolean"?!1:null}]of Object.entries(e)){if(i[r]=a,o){let l=o.slice(1);n[l]!==void 0&&(i[r]=Ce(n[l],s))}{let l=r.slice(2);n[l]!==void 0&&(i[r]=Ce(n[l],s))}}return i}function Ce(e,t){switch(t){case"string":return X(e);case"boolean":return H(e);case"number":return Z(e);case"boolean | string":return H(e)??X(e);case"number | string":return Z(e)??X(e);case"boolean | number":return H(e)??Z(e);case"boolean | number | string":return H(e)??Z(e)??X(e);default:throw new Error(`Unhandled type: ${t}`)}}function H(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Z(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function X(e){return`${e}`}import{compile as it,env as rt,Instrumentation as pe,optimize as st,toSourceMap as M}from"@tailwindcss/node";import{clearRequireCache as Ee}from"@tailwindcss/node/require-cache";import{Scanner as ot}from"@tailwindcss/oxide";import{existsSync as lt}from"fs";import j from"fs/promises";import C from"path";var I=class{#e=new Set([]);queueMacrotask(t){let n=setTimeout(t,0);return this.add(()=>{clearTimeout(n)})}add(t){return this.#e.add(t),()=>{this.#e.delete(t),t()}}async dispose(){for(let t of this.#e)await t();this.#e.clear()}};import Xe from"fs";import $e from"path";import{stripVTControlCharacters as et}from"util";import $ from"picocolors";import xe from"enhanced-resolve";import Qe from"fs";import{createRequire as He}from"module";var Ze=He(import.meta.url).resolve;function Te(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return Ze(e)}var Wt=xe.ResolverFactory.createResolver({fileSystem:new xe.CachedInputFileSystem(Qe,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function _e(e){let t=typeof e=="number"?BigInt(e):e;return t<1000n?`${t}ns`:(t/=1000n,t<1000n?`${t}\xB5s`:(t/=1000n,t<1000n?`${t}ms`:(t/=1000n,t<60n?`${t}s`:(t/=60n,t<60n?`${t}m`:(t/=60n,t<24n?`${t}h`:(t/=24n,`${t}d`))))))}var ee={indent:2};function te(){return`${$.italic($.bold($.blue("\u2248")))} tailwindcss ${$.blue(`v${tt()}`)}`}function F(e){return`${$.dim($.blue("`"))}${$.blue(e)}${$.dim($.blue("`"))}`}function ne(e,t=process.cwd(),{preferAbsoluteIfShorter:n=!0}={}){let i=$e.relative(t,e);return i.startsWith("..")||(i=`.${$e.sep}${i}`),n&&i.length>e.length?e:i}function z(e,t){let n=e.split(" "),i=[],r="",s=0;for(let o of n){let a=et(o).length;s>0&&s+a+1>t&&(i.push(r),r="",s=0),r+=(s?" ":"")+o,s+=a+(s?1:0)}return s&&i.push(r),i}function O(e){let t=_e(e);return e<=50*1e6?$.green(t):e<=300*1e6?$.blue(t):e<=1e3*1e6?$.yellow(t):$.red(t)}function W(e,t=0){return`${" ".repeat(t+ee.indent)}${e}`}function T(e=""){process.stderr.write(`${e}
3
+ `)}function ie(e=""){process.stdout.write(`${e}
4
+ `)}function tt(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(Xe.readFileSync(Te("tailwindcss/package.json"),"utf-8"));return e}import re from"fs/promises";import nt from"path";function se(){return new Promise((e,t)=>{let n="";process.stdin.on("data",i=>{n+=i}),process.stdin.on("end",()=>e(n)),process.stdin.on("error",i=>t(i))})}async function ce(e,t){if(!await re.stat(e).then(i=>i.isCharacterDevice()||i.isFIFO()).catch(()=>!1))try{if(await re.readFile(e,"utf8")===t)return}catch{}await re.mkdir(nt.dirname(e),{recursive:!0}),await re.writeFile(e,t,"utf8")}var de=String.raw,u=rt.DEBUG,at=250;function U(){return{"--input":{type:"string",description:"Input file",alias:"-i"},"--output":{type:"string",description:"Output file",alias:"-o",default:"-"},"--watch":{type:"boolean | string",description:"Watch for changes and rebuild as needed, and use `always` to keep watching when stdin is closed",alias:"-w",values:["always"]},"--poll":{type:"boolean | number",description:"Use polling instead of filesystem events when watching",default:!1,values:["ms"]},"--minify":{type:"boolean",description:"Optimize and minify the output",alias:"-m"},"--optimize":{type:"boolean",description:"Optimize the output without minifying"},"--cwd":{type:"string",description:"The current working directory",default:"."},"--map":{type:"boolean | string",description:"Generate a source map",default:!1},"--silent":{type:"boolean",description:"Suppress non-error output"}}}function fe(e){let t=new Set;function n(i,r){let s=" ".repeat(r),o=(process.stderr.columns??1/0)-2*(r+1),a=[`${s}${ct(r===0?"Error:":"Caused by:")}`,`${s}${G("\u250C")}`];for(let l of`${i}`.split(`
5
+ `)){let c=z(l,o);c.length===0&&(c=[""]);for(let m of c)a.push(`${s}${G("\u2502")} ${m}`)}return a.push(`${s}${G("\u2514")}`),typeof i=="object"&&i!==null&&"cause"in i&&i.cause!=null&&(t.add(i).has(i.cause)||a.push(...n(i.cause,r+1))),a}return n(e,0).join(`
6
+ `)}async function oe(e){try{return await e()}catch(t){T(fe(t)),process.exit(1)}}async function me(e){var be=[];try{e["--silent"]||T(te());e["--silent"]||T();let t=J(be,new pe);u&&t.start("[@tailwindcss/cli] (initial build)");let n=C.resolve(e["--cwd"]);e["--output"]&&e["--output"]!=="-"&&(e["--output"]=C.resolve(n,e["--output"]));e["--input"]&&e["--input"]!=="-"&&(e["--input"]=C.resolve(n,e["--input"]),lt(e["--input"])||(T(`Specified input file ${F(ne(e["--input"]))} does not exist.`),process.exit(1)));e["--input"]===e["--output"]&&e["--input"]!=="-"&&(T(`Specified input file ${F(ne(e["--input"]))} and output file ${F(ne(e["--output"]))} are identical.`),process.exit(1));e["--map"]==="-"&&(T("Use --map without a value to inline the source map."),process.exit(1));e["--poll"]===void 0&&(T("Use --poll with a non-zero value in milliseconds."),process.exit(1));let i=e["--poll"]===!0?at:e["--poll"];i!==!1&&i<=0&&(T("Specified polling interval must be a positive number."),process.exit(1));e["--map"]&&e["--map"]!==!0&&(e["--map"]=C.resolve(n,e["--map"]));let r=process.hrtime.bigint();let s=e["--input"]?e["--input"]==="-"?await se():await j.readFile(e["--input"],"utf-8"):de`
5
7
  @import 'tailwindcss';
6
- `;let r={css:"",optimizedCss:""};async function a(C,g,f,x){let y=C;if(f["--minify"]||f["--optimize"])if(C!==r.css){u&&x.start("Optimize CSS");let E=Xe(C,{file:f["--input"]??"input.css",minify:f["--minify"]??!1,map:g?.raw??void 0});u&&x.end("Optimize CSS"),r.css=C,r.optimizedCss=E.code,E.map&&(g=Y(E.map)),y=E.code}else y=r.optimizedCss;if(g){if(f["--map"]===!0)y+=`
7
- `,y+=g.inline;else if(typeof f["--map"]=="string"){let E=f["--output"]&&f["--output"]!=="-"?T.dirname(T.resolve(f["--output"])):process.cwd(),Q=T.resolve(f["--map"]),m=T.relative(E,Q);y+=`
8
- `,y+=g.comment(m),u&&x.start("Write source map"),await se(f["--map"],g.raw),u&&x.end("Write source map")}}u&&x.start("Write output"),f["--output"]&&f["--output"]!=="-"?await se(f["--output"],y):G(y),u&&x.end("Write output")}let s=e["--input"]&&e["--input"]!=="-"?T.resolve(e["--input"]):null;let l=s?T.dirname(s):process.cwd();let c=s?[s]:[];async function b(C,g){u&&g.start("Setup compiler");let f=await He(C,{from:e["--output"]?s??"stdin.css":void 0,base:l,onDependency(E){c.push(E)}}),x=(f.root==="none"?[]:f.root===null?[{base:n,pattern:"**/*",negated:!1}]:[{...f.root,negated:!1}]).concat(f.sources),y=new tt({sources:x});return u&&g.end("Setup compiler"),[f,y]}let[p,d]=await oe(()=>b(o,t));if(e["--watch"]){let C=[];C.push(await Te(Ee(d),async function g(f){try{var x=[];try{if(f.length===1&&f[0]===e["--output"])return;let m=te(x,new xe);u&&m.start("[@tailwindcss/cli] (watcher)");let de=process.hrtime.bigint();let fe=[];let H="incremental";let me=c;for(let O of f){if(me.includes(O)){H="full";break}fe.push({file:O,extension:T.extname(O).slice(1)})}let Z="";let X=null;if(H==="full"){let O=e["--input"]?e["--input"]==="-"?await re():await ae.readFile(e["--input"],"utf-8"):_e`
8
+ `;let o={css:"",optimizedCss:"",output:null};async function a(_,S,g,d){let h=_;if(g["--minify"]||g["--optimize"])if(_!==o.css){u&&d.start("Optimize CSS");let p=st(_,{file:g["--input"]??"input.css",minify:g["--minify"]??!1,map:S?.raw??void 0});u&&d.end("Optimize CSS"),o.css=_,o.optimizedCss=p.code,p.map&&(S=M(p.map)),h=p.code}else h=o.optimizedCss;if(S){if(g["--map"]===!0)h+=`
9
+ `,h+=S.inline;else if(typeof g["--map"]=="string"){let p=g["--output"]&&g["--output"]!=="-"?C.dirname(C.resolve(g["--output"])):process.cwd(),E=C.resolve(g["--map"]),B=C.relative(p,E);h+=`
10
+ `,h+=S.comment(B),u&&d.start("Write source map"),await ce(g["--map"],S.raw),u&&d.end("Write source map")}}let x=h!==o.output;return u&&d.start("Write output"),g["--output"]&&g["--output"]!=="-"?await ce(g["--output"],h):x&&ie(h),u&&d.end("Write output"),o.output=h,x}let l=e["--input"]&&e["--input"]!=="-"?C.resolve(e["--input"]):null;let c=l?C.dirname(l):process.cwd();let m=l?[l]:[];let b=m;async function w(_,S){u&&S.start("Setup compiler");let g=await it(_,{from:e["--output"]?l??"stdin.css":void 0,base:c,onDependency(x){m.push(x)}}),d=(g.root==="none"?[]:g.root===null?[{base:n,pattern:"**/*",negated:!1}]:[{...g.root,negated:!1}]).concat(g.sources);d.push({base:C.dirname(process.execPath),pattern:C.basename(process.execPath),negated:!0}),l!==null&&d.push({base:C.dirname(l),pattern:C.basename(l),negated:!1});let h=new ot({sources:d});return u&&S.end("Setup compiler"),[g,h]}let[f,y]=await oe(()=>w(s,t));let R=[];e["--watch"]&&i===!1&&(await oe(()=>Ae()),R.push(await Re(await Oe(y),async function _(S){try{var g=[];try{if(S.length===1&&S[0]===e["--output"])return;let p=J(g,new pe);u&&p.start("[@tailwindcss/cli] (watcher)");let E=process.hrtime.bigint();let B=m;let P=ve(S,B);let N="";let D=null;if(P.kind==="full"){let L=e["--input"]?e["--input"]==="-"?await se():await j.readFile(e["--input"],"utf-8"):de`
9
11
  @import 'tailwindcss';
10
- `;et(me),c=s?[s]:[],[p,d]=await b(O,m),u&&m.start("Scan for candidates");let ee=d.scan();u&&m.end("Scan for candidates"),u&&m.start("Setup new watchers");let Ie=await Te(Ee(d),g);u&&m.end("Setup new watchers"),u&&m.start("Cleanup old watchers"),await Promise.all(C.splice(0).map(Me=>Me())),u&&m.end("Cleanup old watchers"),C.push(Ie),u&&m.start("Build CSS"),Z=p.build(ee),u&&m.end("Build CSS"),e["--map"]&&(u&&m.start("Build Source Map"),X=Y(p.buildSourceMap()),u&&m.end("Build Source Map"))}else if(H==="incremental"){u&&m.start("Scan for candidates");let O=d.scanFiles(fe);if(u&&m.end("Scan for candidates"),O.length<=0){let ee=process.hrtime.bigint();_(`Done in ${W(ee-de)}`);return}u&&m.start("Build CSS"),Z=p.build(O),u&&m.end("Build CSS"),e["--map"]&&(u&&m.start("Build Source Map"),X=Y(p.buildSourceMap()),u&&m.end("Build Source Map"))}await a(Z,X,e,m);let ze=process.hrtime.bigint();_(`Done in ${W(ze-de)}`)}catch(y){var E=y,Q=!0}finally{ne(x,E,Q)}}catch(m){m instanceof Error&&_(m.toString())}})),e["--watch"]!=="always"&&process.stdin.on("end",()=>{Promise.all(C.map(g=>g())).then(()=>process.exit(0),()=>process.exit(1))}),process.stdin.resume()}u&&t.start("Scan for candidates");let h=d.scan();u&&t.end("Scan for candidates");u&&t.start("Build CSS");let S=await oe(()=>p.build(h));u&&t.end("Build CSS");let N=null;e["--map"]&&(u&&t.start("Build Source Map"),N=await oe(()=>Y(p.buildSourceMap())),u&&t.end("Build Source Map"));await a(S,N,e,t);let q=process.hrtime.bigint();_(`Done in ${W(q-i)}`)}catch(J){var je=J,Ue=!0}finally{ne(L,je,Ue)}}async function Te(e,t){e=e.sort((s,l)=>s.length-l.length);let n=[];for(let s=0;s<e.length;++s)for(let l=0;l<s;++l)e[s].startsWith(`${e[l]}/`)&&n.push(e[s]);e=e.filter(s=>!n.includes(s));let i=new k,o=new Set,r=new k;async function a(){await r.dispose(),r.queueMacrotask(()=>{t(Array.from(o)),o.clear()})}for(let s of e){let{unsubscribe:l}=await Qe.subscribe(s,async(c,b)=>{if(c){console.error(c);return}await Promise.all(b.map(async p=>{if(p.type==="delete")return;let d=null;try{d=await ae.lstat(p.path)}catch{}!d?.isFile()&&!d?.isSymbolicLink()||o.add(p.path)})),await a()});i.add(l)}return async()=>{await i.dispose(),await r.dispose()}}function Ee(e){return[...new Set(e.normalizedSources.flatMap(t=>t.base))]}import{__unstable__loadDesignSystem as Re}from"@tailwindcss/node";import rt from"fs/promises";import ve from"path";import{createInterface as st}from"readline";function ue(e,t){let n=e.length,i=t.length,o=n<i?n:i;for(let r=0;r<o;r++){let a=e.charCodeAt(r),s=t.charCodeAt(r);if(a>=48&&a<=57&&s>=48&&s<=57){let l=r,c=r+1,b=r,p=r+1;for(a=e.charCodeAt(c);a>=48&&a<=57;)a=e.charCodeAt(++c);for(s=t.charCodeAt(p);s>=48&&s<=57;)s=t.charCodeAt(++p);let d=e.slice(l,c),h=t.slice(b,p),S=Number(d)-Number(h);if(S)return S;if(d<h)return-1;if(d>h)return 1;continue}if(a!==s)return a-s}return e.length-t.length}var V=new Uint8Array(256);function Oe(e,t){let n=0,i=[],o=0,r=e.length,a=t.charCodeAt(0);for(let s=0;s<r;s++){let l=e.charCodeAt(s);if(n===0&&l===a){i.push(e.slice(o,s)),o=s+1;continue}switch(l){case 92:s+=1;break;case 39:case 34:for(;++s<r;){let c=e.charCodeAt(s);if(c===92){s+=1;continue}if(c===l)break}break;case 40:V[n]=41,n++;break;case 91:V[n]=93,n++;break;case 123:V[n]=125,n++;break;case 93:case 125:case 41:n>0&&l===V[n-1]&&n--;break}}return i.push(e.slice(o)),i}import R from"picocolors";function F({render:e=!0,invalid:t,usage:n,options:i}){let o=process.stdout.columns??80,r=[],a=e?G:(s="")=>void r.push(s);if(a(M()),t&&(a(),a(`${R.dim("Invalid command:")} ${t}`)),n&&n.length>0){a(),a(R.dim("Usage:"));for(let[s,l]of n.entries()){let c=l.slice(0,l.indexOf("[")),b=l.slice(l.indexOf("["));b=b.replace(/\[.*?\]/g,h=>R.dim(h));let d=ie(b,o-I.indent-c.length-1);d.length>1&&s!==0&&a(),a(P(`${c}${d.shift()}`));for(let h of d)a(P(h,c.length))}}if(i){let s=0;for(let{alias:p}of Object.values(i))p&&(s=Math.max(s,p.length));let l=[],c=0;for(let[p,{alias:d,values:h}]of Object.entries(i)){h?.length&&(p+=`[=${h.join(", ")}]`);let S=[d&&`${d.padStart(s)}`,d?p:" ".repeat(s+2)+p].filter(Boolean).join(", ");l.push(S),c=Math.max(c,S.length)}a(),a(R.dim("Options:"));let b=8;for(let{description:p,default:d=null}of Object.values(i)){let h=l.shift(),S=b+(c-h.length),N=2,q=o-h.length-S-N-I.indent,L=ie(d!==null?`${p} ${R.dim(`[default:\u202F${A(`${d}`)}]`)}`:p,q);a(P(`${R.blue(h)} ${R.dim(R.gray("\xB7")).repeat(S)} ${L.shift()}`));for(let J of L)a(P(`${" ".repeat(h.length+S+N)}${J}`))}}if(!e)return r.join(`
11
- `)}var ot=String.raw;function ce(){return"tailwindcss canonicalize [classes...]"}function at(){return"tailwindcss canonicalize --css input.css [classes...]"}function lt(){return"tailwindcss canonicalize --stream [--css input.css]"}function $e(){return{"--css":{type:"string",description:'CSS entry file used to load the Tailwind design system (defaults to `@import "tailwindcss";`)'},"--format":{type:"string",description:"Output format",default:"text",values:["text","json","jsonl"]},"--stream":{type:"boolean",description:"Read candidate groups from stdin line by line and write results to stdout",default:!1}}}var Ne={"--help":{type:"boolean",description:"Display usage information",alias:"-h",default:!1}};async function Le({argv:e=process.argv.slice(2),cwd:t=process.cwd(),stdin:n=null,stdinIsTTY:i=process.stdin.isTTY,stdoutIsTTY:o=process.stdout.isTTY}={}){try{let r=v({...$e(),...Ne},e),a=mt(r["--format"]??"text");if(o&&e.length===0||r["--help"])return{exitCode:0,stdout:ke()??"",stderr:""};if(r["--stream"])return await ut({css:r["--css"],cwd:t,format:a,input:process.stdin,output:process.stdout}),{exitCode:0,stdout:"",stderr:""};let s=r._.length>0?r._:await ct({stdin:n,stdinIsTTY:i});if(s.length===0)return ht("No candidate groups provided");let l=await dt({css:r["--css"],cwd:t,inputs:s});return{exitCode:0,stdout:ft(l,a),stderr:""}}catch(r){return{exitCode:1,stdout:"",stderr:r instanceof Error?r.message:String(r)}}}async function ut({css:e,cwd:t,format:n,input:i,output:o}){let r=await Pe(e,t),a=st({input:i}),s=!0;n==="json"&&o.write("[");for await(let l of a){let c=Fe(r,l);switch(n){case"text":{o.write(c.output+`
12
- `);break}case"jsonl":{o.write(JSON.stringify(c)+`
13
- `);break}case"json":{s?o.write(`
14
- `):o.write(`,
15
- `),o.write(bt(JSON.stringify(c,null,2),2)),s=!1;break}}}n==="json"&&o.write(s?"]":`
16
- ]`)}function ct({stdin:e,stdinIsTTY:t}){return e!==null?Promise.resolve(Ae(e)):t?Promise.resolve([]):pt().then(Ae)}async function pt(){return new Promise((e,t)=>{let n="";process.stdin.on("data",i=>{n+=i}),process.stdin.on("end",()=>e(n)),process.stdin.on("error",i=>t(i))})}async function dt({css:e,cwd:t=process.cwd(),inputs:n}){let i=await Pe(e,t);return n.map(o=>Fe(i,o))}function ft(e,t){switch(t){case"json":return JSON.stringify(e,null,2);case"jsonl":return e.map(n=>JSON.stringify(n)).join(`
12
+ `;Ee(B),b=m.slice(),m=l?[l]:[],[f,y]=await w(L,p),b=m.slice(),u&&p.start("Scan for candidates");let v=y.scan();u&&p.end("Scan for candidates"),u&&p.start("Setup new watchers");let Ve=await Re(await Oe(y),_);u&&p.end("Setup new watchers"),u&&p.start("Cleanup old watchers"),await Promise.all(R.splice(0).map(qe=>qe())),u&&p.end("Cleanup old watchers"),R.push(Ve),u&&p.start("Build CSS"),N=f.build(v),u&&p.end("Build CSS"),e["--map"]&&(u&&p.start("Build Source Map"),D=M(f.buildSourceMap()),u&&p.end("Build Source Map"))}else if(P.kind==="incremental"){u&&p.start("Scan for candidates");let L=y.scanFiles(P.changedFiles);if(u&&p.end("Scan for candidates"),L.length<=0){let v=process.hrtime.bigint();e["--silent"]||T(`Done in ${O(v-E)}`);return}u&&p.start("Build CSS"),N=f.build(L),u&&p.end("Build CSS"),e["--map"]&&(u&&p.start("Build Source Map"),D=M(f.buildSourceMap()),u&&p.end("Build Source Map"))}await a(N,D,e,p);let ue=process.hrtime.bigint();e["--silent"]||T(`Done in ${O(ue-E)}`)}catch(d){var h=d,x=!0}finally{Q(g,h,x)}}catch(p){m=b,T(fe(p));let E=process.hrtime.bigint();e["--silent"]||T(`Done in ${O(E-r)}`)}})),e["--watch"]!=="always"&&process.stdin.on("end",()=>{Promise.all(R.map(_=>_())).then(()=>process.exit(0),()=>process.exit(1))}),process.stdin.resume());u&&t.start("Scan for candidates");let ae=y.scan();u&&t.end("Scan for candidates");u&&t.start("Build CSS");let V=await oe(()=>f.build(ae));u&&t.end("Build CSS");let q=null;e["--map"]&&(u&&t.start("Build Source Map"),q=await oe(()=>M(f.buildSourceMap())),u&&t.end("Build Source Map"));await a(V,q,e,t);let We=process.hrtime.bigint();e["--silent"]||T(`Done in ${O(We-r)}`);if(e["--watch"]&&i!==!1){let S=function(d){e["--silent"]||process.stderr.write("\r\x1B[2K"),T(d),e["--silent"]||process.stderr.write(`\r\x1B[2K${G("Polling for changes\u2026")}`)};var Pt=S;let _=()=>{};async function g(d){Ee(m),b=m.slice(),m=l?[l]:[];let h=e["--input"]?e["--input"]==="-"?await se():await j.readFile(e["--input"],"utf-8"):de`
13
+ @import 'tailwindcss';
14
+ `;[f,y]=await w(h,d),b=m.slice(),u&&d.start("Scan for candidates");let x=y.scan();u&&d.end("Scan for candidates"),u&&d.start("Build CSS");let p=f.build(x);u&&d.end("Build CSS");let E=null;e["--map"]&&(u&&d.start("Build Source Map"),E=M(f.buildSourceMap()),u&&d.end("Build Source Map")),await a(p,E,e,d)}if(!e["--silent"]){let h=function(){d||(d=!0,process.stderr.write("\r\x1B[2K\x1B[?25h"),process.off("exit",h),process.off("SIGINT",x),process.off("SIGTERM",p))},x=function(){h(),process.exit(130)},p=function(){h(),process.exit(143)};var Nt=h,Lt=x,kt=p;let d=!1;process.stderr.write("\x1B[?25l"),process.on("exit",h),process.on("SIGINT",x),process.on("SIGTERM",p),_=h,R.push(async()=>_())}R.push(ut(async()=>{var N=[];try{let d=J(N,new pe);u&&d.start("Scan for candidates");let h=y.scan();u&&d.end("Scan for candidates");let x=y.scannedFiles.filter(v=>v!==e["--output"]&&v!==e["--map"]);if(x.length<=0)return;let p=process.hrtime.bigint();let E=ve(x,m);if(E.kind==="full"){try{await g(d)}catch(v){m=b,S(fe(v))}e["--silent"]||S(`Done in ${O(process.hrtime.bigint()-p)}`);return}if(h.length<=0){e["--silent"]||S(`Done in ${O(process.hrtime.bigint()-p)}`);return}u&&d.start("Build CSS");let B=f.build(h);u&&d.end("Build CSS");let P=null;e["--map"]&&(u&&d.start("Build Source Map"),P=M(f.buildSourceMap()),u&&d.end("Build Source Map"));await a(B,P,e,d);e["--silent"]||S(`Done in ${O(process.hrtime.bigint()-p)}`)}catch(D){var ue=D,L=!0}finally{Q(N,ue,L)}},i)),e["--watch"]!=="always"&&process.stdin.on("end",()=>{Promise.all(R.map(d=>d())).then(()=>process.exit(0),()=>process.exit(1))}),process.stdin.resume(),e["--silent"]||process.stderr.write(`\r\x1B[2K${G("Polling for changes\u2026")}`)}}catch(Ge){var Ke=Ge,Ye=!0}finally{Q(be,Ke,Ye)}}async function Ae(){try{return(await import("@parcel/watcher")).default}catch(e){throw new Error("Failed to load the file watcher. Your platform may not be supported by `@parcel/watcher`. As a workaround, you can use polling instead by passing the `--watch --poll` flags.",{cause:e})}}async function Re(e,t){let n=await Ae();e=e.sort((l,c)=>l.length-c.length);let i=[];for(let l=0;l<e.length;++l)for(let c=0;c<l;++c)e[l].startsWith(`${e[c]}/`)&&i.push(e[l]);e=e.filter(l=>!i.includes(l));let r=new I,s=new Set,o=new I;async function a(){await o.dispose(),o.queueMacrotask(()=>{t(Array.from(s)),s.clear()})}for(let l of e){let{unsubscribe:c}=await n.subscribe(l,async(m,b)=>{if(m){console.error(m);return}await Promise.all(b.map(async w=>{if(w.type==="delete"){s.add(w.path);return}let f=null;try{f=await j.lstat(w.path)}catch{}!f?.isFile()&&!f?.isSymbolicLink()||s.add(w.path)})),await a()});r.add(c)}return async()=>{await r.dispose(),await o.dispose()}}function ve(e,t){let n=[];for(let i of e){if(t.includes(i))return{kind:"full"};n.push({file:i,extension:C.extname(i).slice(1)})}return{kind:"incremental",changedFiles:n}}function ut(e,t){let n=!1,i=null;async function r(){if(!n)try{await e()}catch(s){console.error(s)}finally{n||(i=setTimeout(r,t))}}return i=setTimeout(r,t),async()=>{n=!0,i&&clearTimeout(i)}}async function Oe(e){let t=(await Promise.all(e.normalizedSources.map(async n=>{let i=C.resolve(n.base),r=await j.realpath(i).catch(()=>i);return j.stat(r).then(s=>s.isDirectory()?[r]:[]).catch(()=>[])}))).flat(1);return Array.from(new Set(t))}function G(e){return`\x1B[2m${e}\x1B[22m`}function ct(e){return`\x1B[31m${e}\x1B[39m`}import{__unstable__loadDesignSystem as Pe}from"@tailwindcss/node";import{Console as dt}from"console";import ft from"fs/promises";import Ne from"path";import{createInterface as mt}from"readline";function he(e,t){let n=e.length,i=t.length,r=n<i?n:i;for(let s=0;s<r;s++){let o=e.charCodeAt(s),a=t.charCodeAt(s);if(o>=48&&o<=57&&a>=48&&a<=57){let l=s,c=s+1,m=s,b=s+1;for(o=e.charCodeAt(c);o>=48&&o<=57;)o=e.charCodeAt(++c);for(a=t.charCodeAt(b);a>=48&&a<=57;)a=t.charCodeAt(++b);let w=e.slice(l,c),f=t.slice(m,b),y=Number(w)-Number(f);if(y)return y;if(w<f)return-1;if(w>f)return 1;continue}if(o!==a)return o-a}return e.length-t.length}var le=new Uint8Array(256);function Be(e,t){let n=0,i=[],r=0,s=e.length,o=t.charCodeAt(0);for(let a=0;a<s;a++){let l=e.charCodeAt(a);if(n===0&&l===o){i.push(e.slice(r,a)),r=a+1;continue}switch(l){case 92:a+=1;break;case 39:case 34:for(;++a<s;){let c=e.charCodeAt(a);if(c===92){a+=1;continue}if(c===l)break}break;case 40:le[n]=41,n++;break;case 91:le[n]=93,n++;break;case 123:le[n]=125,n++;break;case 93:case 125:case 41:n>0&&l===le[n-1]&&n--;break}}return i.push(e.slice(r)),i}import A from"picocolors";function K({render:e=!0,invalid:t,usage:n,options:i}){let r=process.stdout.columns??80,s=[],o=e?ie:(a="")=>{s.push(a)};if(o(te()),t&&(o(),o(`${A.dim("Invalid command:")} ${t}`)),n&&n.length>0){o(),o(A.dim("Usage:"));for(let[a,l]of n.entries()){let c=l.slice(0,l.indexOf("[")),m=l.slice(l.indexOf("["));m=m.replace(/\[.*?\]/g,f=>A.dim(f));let w=z(m,r-ee.indent-c.length-1);w.length>1&&a!==0&&o(),o(W(`${c}${w.shift()}`));for(let f of w)o(W(f,c.length))}}if(i){let a=0;for(let{alias:b}of Object.values(i))b&&(a=Math.max(a,b.length));let l=[],c=0;for(let[b,{alias:w,values:f}]of Object.entries(i)){f?.length&&(b+=`[=${f.join(", ")}]`);let y=[w&&`${w.padStart(a)}`,w?b:" ".repeat(a+2)+b].filter(Boolean).join(", ");l.push(y),c=Math.max(c,y.length)}o(),o(A.dim("Options:"));let m=8;for(let{description:b,default:w=null}of Object.values(i)){let f=l.shift(),y=m+(c-f.length),R=2,ae=r-f.length-y-R-ee.indent,V=z(w!==null?`${b} ${A.dim(`[default:\u202F${F(`${w}`)}]`)}`:b,ae);o(W(`${A.blue(f)} ${A.dim(A.gray("\xB7")).repeat(y)} ${V.shift()}`));for(let q of V)o(W(`${" ".repeat(f.length+y+R)}${q}`))}}if(!e)return s.join(`
15
+ `)}var ht=String.raw;function ge(){return"tailwindcss canonicalize [classes...]"}function gt(){return"tailwindcss canonicalize --css input.css [classes...]"}function wt(){return"tailwindcss canonicalize --stream [--css input.css]"}function Fe(){return{"--css":{type:"string",description:'CSS entry file used to load the Tailwind design system (defaults to `@import "tailwindcss";`)'},"--format":{type:"string",description:"Output format",default:"text",values:["text","json","jsonl"]},"--stream":{type:"boolean",description:"Read candidate groups from stdin line by line and write results to stdout",default:!1}}}var Me={"--help":{type:"boolean",description:"Display usage information",alias:"-h",default:!1}};async function je({argv:e=process.argv.slice(2),cwd:t=process.cwd(),stdin:n=null,stdinIsTTY:i=process.stdin.isTTY,stdoutIsTTY:r=process.stdout.isTTY}={}){try{let s=k({...Fe(),...Me},e),o=Tt(s["--format"]??"text");if(r&&e.length===0||s["--help"])return{exitCode:0,stdout:Ue()??"",stderr:""};if(s["--stream"])return await Le(()=>bt({css:s["--css"],cwd:t,format:o,input:process.stdin,output:process.stdout})),{exitCode:0,stdout:"",stderr:""};let a=s._.length>0?s._:await yt({stdin:n,stdinIsTTY:i});if(a.length===0)return _t("No candidate groups provided");let l=await Le(()=>Ct({css:s["--css"],cwd:t,inputs:a}));return{exitCode:0,stdout:xt(l,o),stderr:""}}catch(s){return{exitCode:1,stdout:"",stderr:s instanceof Error?s.message:String(s)}}}async function bt({css:e,cwd:t,format:n,input:i,output:r}){let s=await De(e,t),o=mt({input:i}),a=!0;n==="json"&&r.write("[");for await(let l of o){let c=Ie(s,l);switch(n){case"text":{r.write(c.output+`
16
+ `);break}case"jsonl":{r.write(JSON.stringify(c)+`
17
+ `);break}case"json":{a?r.write(`
18
+ `):r.write(`,
19
+ `),r.write(Rt(JSON.stringify(c,null,2),2)),a=!1;break}}}n==="json"&&r.write(a?"]":`
20
+ ]`)}function yt({stdin:e,stdinIsTTY:t}){return e!==null?Promise.resolve(ke(e)):t?Promise.resolve([]):St().then(ke)}async function St(){return new Promise((e,t)=>{let n="";process.stdin.on("data",i=>{n+=i}),process.stdin.on("end",()=>e(n)),process.stdin.on("error",i=>t(i))})}async function Ct({css:e,cwd:t=process.cwd(),inputs:n}){let i=await De(e,t);return n.map(r=>Ie(i,r))}function xt(e,t){switch(t){case"json":return JSON.stringify(e,null,2);case"jsonl":return e.map(n=>JSON.stringify(n)).join(`
17
21
  `);case"text":return e.map(n=>n.output).join(`
18
- `)}}function ke(){return F({render:!1,usage:[ce(),at(),lt()],options:{...$e(),...Ne}})}async function Pe(e,t){if(e===null)return Re(ot`
22
+ `)}}function Ue(){return K({render:!1,usage:[ge(),gt(),wt()],options:{...Fe(),...Me}})}async function De(e,t){if(e===null)return Pe(ht`
19
23
  @import 'tailwindcss';
20
- `,{base:t});let n=ve.resolve(t,e),i=await rt.readFile(n,"utf8");return Re(i,{base:ve.dirname(n)})}function Ae(e){return e.split(/\r?\n/g).map(t=>t.trim()).filter(t=>t.length>0)}function mt(e){if(e==="text"||e==="json"||e==="jsonl")return e;throw new Error(`Invalid value for --format: ${e}`)}function ht(e){return{exitCode:1,stdout:ke()??"",stderr:e}}function gt(e){let t=e.trim();return t.length===0?[]:Oe(t," ").map(n=>n.trim()).filter(n=>n.length>0)}function wt(e,t){let n=gt(t);return n=e.canonicalizeCandidates(n,{collapse:!0,logicalToPhysical:!0}),yt(e.getClassOrder(n)).join(" ")}function Fe(e,t){let n=wt(e,t);return{input:t,output:n,changed:n!==t}}function bt(e,t){let n=" ".repeat(t);return e.split(`
24
+ `,{base:t});let n=Ne.resolve(t,e),i=await ft.readFile(n,"utf8");return Pe(i,{base:Ne.dirname(n)})}async function Le(e){let t=globalThis.console;globalThis.console=new dt({stdout:process.stderr,stderr:process.stderr});try{return await e()}finally{globalThis.console=t}}function ke(e){return e.split(/\r?\n/g).map(t=>t.trim()).filter(t=>t.length>0)}function Tt(e){if(e==="text"||e==="json"||e==="jsonl")return e;throw new Error(`Invalid value for --format: ${e}`)}function _t(e){return{exitCode:1,stdout:Ue()??"",stderr:e}}function $t(e){let t=e.trim();return t.length===0?[]:Be(t," ").map(n=>n.trim()).filter(n=>n.length>0)}function Et(e,t){let n=$t(t);return n=e.canonicalizeCandidates(n,{collapse:!0,logicalToPhysical:!0}),vt(e.getClassOrder(n)).join(" ")}function Ie(e,t){let n=Et(e,t);return{input:t,output:n,changed:n!==t}}function Rt(e,t){let n=" ".repeat(t);return e.split(`
21
25
  `).map(i=>n+i).join(`
22
- `)}function yt(e){return e.slice().sort(([t,n],[i,o])=>n===o?ue(t,i):n===null?-1:o===null?1:St(n-o)||ue(t,i)).map(([t])=>t)}function St(e){return e>0n?1:e===0n?0:-1}var B={"--help":{type:"boolean",description:"Display usage information",alias:"-h"}};function pe(e="tailwindcss"){return`${e} [--input input.css] [--output output.css] [--watch] [options\u2026]`}function Be({invalid:e}={}){F({invalid:e,usage:[pe("tailwindcss"),pe("tailwindcss build"),ce()],commands:{build:"Build your CSS",canonicalize:"Canonicalize candidate lists"},options:{...$(),...B}})}async function xt(){let e=process.argv.slice(2),t=e[0],n=v({...$(),...B},e);if(t==="build"){let o=v({...$(),...B},e.slice(1));(process.stdout.isTTY&&e.length===1||o["--help"])&&(F({usage:[pe("tailwindcss build")],options:{...$(),...B}}),process.exit(0)),await le(o);return}if(t==="canonicalize"){let o=await Le({argv:e.slice(1)});o.stdout.length>0&&process.stdout.write(`${o.stdout}
23
- `),o.stderr.length>0&&process.stderr.write(`${o.stderr}
24
- `),process.exitCode=o.exitCode;return}(process.stdout.isTTY&&t===void 0||n["--help"])&&(Be(),process.exit(0)),t&&!t.startsWith("-")&&(Be({invalid:t}),process.exit(1));let i=v({...$(),...B});await le(i)}await xt();
26
+ `)}function vt(e){return e.slice().sort(([t,n],[i,r])=>n===r?he(t,i):n===null?-1:r===null?1:Ot(n-r)||he(t,i)).map(([t])=>t)}function Ot(e){return e>0n?1:e===0n?0:-1}var Y={"--help":{type:"boolean",description:"Display usage information",alias:"-h"}};function we(e="tailwindcss"){return`${e} [--input input.css] [--output output.css] [--watch] [--poll=ms] [options\u2026]`}function ze({invalid:e}={}){K({invalid:e,usage:[we("tailwindcss"),we("tailwindcss build"),ge()],commands:{build:"Build your CSS",canonicalize:"Canonicalize candidate lists"},options:{...U(),...Y}})}async function Bt(){let e=process.argv.slice(2),t=e[0],n=k({...U(),...Y},e);if(t==="build"){let r=k({...U(),...Y},e.slice(1));(process.stdout.isTTY&&e.length===1||r["--help"])&&(K({usage:[we("tailwindcss build")],options:{...U(),...Y}}),process.exit(0)),await me(r);return}if(t==="canonicalize"){let r=await je({argv:e.slice(1)});r.stdout.length>0&&process.stdout.write(`${r.stdout}
27
+ `),r.stderr.length>0&&process.stderr.write(`${r.stderr}
28
+ `),process.exitCode=r.exitCode;return}(process.stdout.isTTY&&t===void 0||n["--help"])&&(ze(),process.exit(0)),t&&!t.startsWith("-")&&(ze({invalid:t}),process.exit(1));let i=k({...U(),...Y});await me(i)}await Bt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/cli",
3
- "version": "0.0.0-insiders.bb2f170",
3
+ "version": "0.0.0-insiders.bb3fe16",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,13 +24,13 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@parcel/watcher": "^2.5.1",
28
- "enhanced-resolve": "^5.19.0",
27
+ "@parcel/watcher": "2.6.0",
28
+ "enhanced-resolve": "^5.24.5",
29
29
  "mri": "^1.2.0",
30
30
  "picocolors": "^1.1.1",
31
- "@tailwindcss/node": "0.0.0-insiders.bb2f170",
32
- "tailwindcss": "0.0.0-insiders.bb2f170",
33
- "@tailwindcss/oxide": "0.0.0-insiders.bb2f170"
31
+ "@tailwindcss/node": "0.0.0-insiders.bb3fe16",
32
+ "@tailwindcss/oxide": "0.0.0-insiders.bb3fe16",
33
+ "tailwindcss": "0.0.0-insiders.bb3fe16"
34
34
  },
35
35
  "scripts": {
36
36
  "lint": "tsc --noEmit",