create-cedar-app 2.2.2-next.31 → 2.3.0-rc.34

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.
@@ -575,7 +575,7 @@ Bus `);for(let a=1;a<o.length;a++){let c=Kae(o[a]);t.push(c)}}r&&r(t),e(t)}),Hae
575
575
  `)}rowToString(e,t){return this.rasterize(e).forEach((n,s)=>{let i="";n.forEach((o,a)=>{let{width:c}=e[a],u=this.negatePadding(e[a]),l=o;if(u>Fr.stringWidth(o)&&(l+=" ".repeat(u-Fr.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){let p=LW[e[a].align];l=p(l,u),Fr.stringWidth(l)<u&&(l+=" ".repeat((c||0)-Fr.stringWidth(l)-1))}let f=e[a].padding||[0,0,0,0];f[tp]&&(i+=" ".repeat(f[tp])),i+=ox(e[a],l,"| "),i+=l,i+=ox(e[a],l," |"),f[ep]&&(i+=" ".repeat(f[ep])),s===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,""),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),s=n?n[0].length:0,i=t.text,o=Fr.stringWidth(i.trimRight());return t.span?this.wrap?s<o?e:(t.hidden=!0,i.trimRight()+" ".repeat(s-o)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),s;return e.forEach((i,o)=>{i.width=n[o],this.wrap?s=Fr.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
576
576
  `):s=i.text.split(`
577
577
  `),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[NW]||0).fill("")),s.push(...new Array(i.padding[BW]||0).fill(""))),s.forEach((a,c)=>{t[c]||t.push([]);let u=t[c];for(let l=0;l<o;l++)u[l]===void 0&&u.push("");u.push(a)})}),t}negatePadding(e){let t=e.width||0;return e.padding&&(t-=(e.padding[tp]||0)+(e.padding[ep]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(o=>o.width||Fr.stringWidth(o.text));let t=e.length,n=this.width,s=e.map(o=>{if(o.width)return t--,n-=o.width,o.width}),i=t?Math.floor(n/t):0;return s.map((o,a)=>o===void 0?Math.max(i,UW(e[a])):o)}};function ox(r,e,t){return r.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function UW(r){let e=r.padding||[],t=1+(e[tp]||0)+(e[ep]||0);return r.border?t+4:t}function VW(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function FW(r,e){r=r.trim();let t=Fr.stringWidth(r);return t<e?" ".repeat(e-t)+r:r}function GW(r,e){r=r.trim();let t=Fr.stringWidth(r);return t>=e?r:" ".repeat(e-t>>1)+r}var Fr;function ax(r,e){return Fr=e,new eE({width:r?.width||VW(),wrap:r?.wrap})}var cx=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function tE(r){return r.replace(cx,"")}function ux(r,e){let[t,n]=r.match(cx)||["",""];r=tE(r);let s="";for(let i=0;i<r.length;i++)i!==0&&i%e===0&&(s+=`
578
- `),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function rE(r){return ax(r,{stringWidth:e=>[...e].length,stripAnsi:tE,wrap:ux})}import{dirname as lx,resolve as fx}from"path";import{readdirSync as jW,statSync as kW}from"fs";function px(r,e){let t=fx(".",r),n;for(kW(t).isDirectory()||(t=lx(t));;){if(n=e(t,jW(t)),n)return fx(t,n);if(t=lx(n=t),n===t)break}}import{inspect as JW}from"util";import{readFileSync as QW}from"fs";import{fileURLToPath as ZW}from"url";import{basename as eY,dirname as tY,extname as rY,relative as nY,resolve as gx}from"path";import{readFileSync as HW,statSync as qW,writeFile as $W}from"fs";import{format as WW}from"util";import{resolve as YW}from"path";var dx={fs:{readFileSync:HW,writeFile:$W},format:WW,resolve:YW,exists:r=>{try{return qW(r).isFile()}catch{return!1}}};var bn,nE=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),bn.format.apply(bn.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),bn.format.apply(bn.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);bn.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{bn.fs.readFileSync&&(e=JSON.parse(bn.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=bn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=bn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return bn.exists(e)}};function hx(r,e){bn=e;let t=new nE(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var zW=r=>hx(r,dx),mx=zW;var iY="require is not supported by ESM",Ex="loading a directory of commands is not supported yet for ESM",Ou;try{Ou=ZW(import.meta.url)}catch{Ou=process.cwd()}var sY=Ou.substring(0,Ou.lastIndexOf("node_modules")),oY={assert:{notStrictEqual:XW,strictEqual:KW},cliui:rE,findUp:px,getEnv:r=>process.env[r],inspect:JW,getCallerFile:()=>{throw new ks(Ex)},getProcessArgvBin:ex,mainFilename:sY||process.cwd(),Parser:yu,path:{basename:eY,dirname:tY,extname:rY,relative:nY,resolve:gx},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(r,e)=>process.emitWarning(r,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:QW,require:()=>{throw new ks(iY)},requireDirectory:()=>{throw new ks(Ex)},stringWidth:r=>[...r].length,y18n:mx({directory:gx(Ou,"../../../locales"),updateFiles:!1})};var WP=yr($P(),1),{applyExtends:hz,cjsPlatformShim:mz,Parser:gz,processArgv:Ez,Yargs:Sp}=WP.default;Sp.applyExtends=(r,e,t)=>hz(r,e,t,mz);Sp.hideBin=Ez.hideBin;Sp.Parser=gz;var YP=Sp;var at=yr(Hw(),1);var Vp="create-cedar-app",Fp="2.2.2-next.31+ff2776832";Pe();Pe();var Q6=yr(X5(),1),m1=yr(ec(),1),cm=yr(z8(),1),zl=yr(ri(),1),Z6=yr(Q8(),1),ej=yr(eG(),1),g1=yr(K6(),1);var ar=[];for(let r=0;r<256;++r)ar.push((r+256).toString(16).slice(1));function J6(r,e=0){return(ar[r[e+0]]+ar[r[e+1]]+ar[r[e+2]]+ar[r[e+3]]+"-"+ar[r[e+4]]+ar[r[e+5]]+"-"+ar[r[e+6]]+ar[r[e+7]]+"-"+ar[r[e+8]]+ar[r[e+9]]+"-"+ar[r[e+10]]+ar[r[e+11]]+ar[r[e+12]]+ar[r[e+13]]+ar[r[e+14]]+ar[r[e+15]]).toLowerCase()}import{randomFillSync as Uce}from"crypto";var om=new Uint8Array(256),sm=om.length;function p1(){return sm>om.length-16&&(Uce(om),sm=0),om.slice(sm,sm+=16)}import{randomUUID as Vce}from"crypto";var d1={randomUUID:Vce};function Fce(r,e,t){if(d1.randomUUID&&!e&&!r)return d1.randomUUID();r=r||{};let n=r.random??r.rng?.()??p1();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){if(t=t||0,t<0||t+16>e.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let s=0;s<16;++s)e[t+s]=n[s];return e}return J6(n)}var h1=Fce;var am,E1,_1,S1=h1();async function tj(){eu.setLogger(new ef,Ht.ERROR);let r=JSON.parse(await ej.default.run({System:["OS","Shell"],Binaries:["Node","Yarn","npm"],npmPackages:"@cedarjs/*",IDEs:["VSCode"]},{json:!0})),e=r.System?.Shell;e?.path?.match("/")?r.System.Shell.name=r.System.Shell.path.split("/").pop():e?.path.match("\\")&&(r.System.Shell.name=r.System.Shell.path.split("\\").pop());let t=await g1.default.cpu(),n=await g1.default.mem(),s;Object.keys(process.env).some(o=>o.startsWith("GITPOD_"))&&(s="gitpod");let i=m1.Resource.default().merge(new m1.Resource({[zl.SemanticResourceAttributes.SERVICE_NAME]:Vp,[zl.SemanticResourceAttributes.SERVICE_VERSION]:Fp,[zl.SemanticResourceAttributes.OS_TYPE]:r.System?.OS?.split(" ")[0],[zl.SemanticResourceAttributes.OS_VERSION]:r.System?.OS?.split(" ")[1],"shell.name":r.System?.Shell?.name,"node.version":r.Binaries?.Node?.version,"yarn.version":r.Binaries?.Yarn?.version,"npm.version":r.Binaries?.npm?.version,"vscode.version":r.IDEs?.VSCode?.version,"cpu.count":t.physicalCores,"memory.gb":Math.round(n.total/1073741824),"env.node_env":process.env.NODE_ENV||null,"ci.redwood":!!process.env.REDWOOD_CI,"ci.isci":Z6.default.isCI,"dev.environment":s,uid:S1}));am=new cm.NodeTracerProvider({resource:i}),_1=new Q6.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),E1=new cm.BatchSpanProcessor(_1),am.addSpanProcessor(E1),am.register(),process.on("SIGTERM",async()=>{await rr()})}async function rr(){try{tu.trace.getActiveSpan()?.end(),await am?.shutdown(),await E1?.shutdown(),await _1?.shutdown()}catch{}}function Sr(r){tu.trace.getActiveSpan()?.setStatus({code:Ri.ERROR,message:r.toString().split(`
578
+ `),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function rE(r){return ax(r,{stringWidth:e=>[...e].length,stripAnsi:tE,wrap:ux})}import{dirname as lx,resolve as fx}from"path";import{readdirSync as jW,statSync as kW}from"fs";function px(r,e){let t=fx(".",r),n;for(kW(t).isDirectory()||(t=lx(t));;){if(n=e(t,jW(t)),n)return fx(t,n);if(t=lx(n=t),n===t)break}}import{inspect as JW}from"util";import{readFileSync as QW}from"fs";import{fileURLToPath as ZW}from"url";import{basename as eY,dirname as tY,extname as rY,relative as nY,resolve as gx}from"path";import{readFileSync as HW,statSync as qW,writeFile as $W}from"fs";import{format as WW}from"util";import{resolve as YW}from"path";var dx={fs:{readFileSync:HW,writeFile:$W},format:WW,resolve:YW,exists:r=>{try{return qW(r).isFile()}catch{return!1}}};var bn,nE=class{constructor(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles=typeof e.updateFiles=="boolean"?e.updateFiles:!0,this.locale=e.locale||"en",this.fallbackToLanguage=typeof e.fallbackToLanguage=="boolean"?e.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...e){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let t=e.shift(),n=function(){};return typeof e[e.length-1]=="function"&&(n=e.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]=t,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),bn.format.apply(bn.format,[this.cache[this.locale][t]||t].concat(e))}__n(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n=e.shift(),s=e.shift(),i=function(){};typeof e[e.length-1]=="function"&&(i=e.pop()),this.cache[this.locale]||this._readLocaleFile();let o=s===1?t:n;this.cache[this.locale][t]&&(o=this.cache[this.locale][t][s===1?"one":"other"]),!this.cache[this.locale][t]&&this.updateFiles?(this.cache[this.locale][t]={one:t,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:i})):i();let a=[o];return~o.indexOf("%d")&&a.push(s),bn.format.apply(bn.format,a.concat(e))}setLocale(e){this.locale=e}getLocale(){return this.locale}updateLocale(e){this.cache[this.locale]||this._readLocaleFile();for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.cache[this.locale][t]=e[t])}_taggedLiteral(e,...t){let n="";return e.forEach(function(s,i){let o=t[i+1];n+=s,typeof o<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(t,1)))}_enqueueWrite(e){this.writeQueue.push(e),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let e=this,t=this.writeQueue[0],n=t.directory,s=t.locale,i=t.cb,o=this._resolveLocaleFile(n,s),a=JSON.stringify(this.cache[s],null,2);bn.fs.writeFile(o,a,"utf-8",function(c){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(c)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{bn.fs.readFileSync&&(e=JSON.parse(bn.fs.readFileSync(t,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+t),n.code==="ENOENT")e={};else throw n}this.cache[this.locale]=e}_resolveLocaleFile(e,t){let n=bn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=bn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return bn.exists(e)}};function hx(r,e){bn=e;let t=new nE(r);return{__:t.__.bind(t),__n:t.__n.bind(t),setLocale:t.setLocale.bind(t),getLocale:t.getLocale.bind(t),updateLocale:t.updateLocale.bind(t),locale:t.locale}}var zW=r=>hx(r,dx),mx=zW;var iY="require is not supported by ESM",Ex="loading a directory of commands is not supported yet for ESM",Ou;try{Ou=ZW(import.meta.url)}catch{Ou=process.cwd()}var sY=Ou.substring(0,Ou.lastIndexOf("node_modules")),oY={assert:{notStrictEqual:XW,strictEqual:KW},cliui:rE,findUp:px,getEnv:r=>process.env[r],inspect:JW,getCallerFile:()=>{throw new ks(Ex)},getProcessArgvBin:ex,mainFilename:sY||process.cwd(),Parser:yu,path:{basename:eY,dirname:tY,extname:rY,relative:nY,resolve:gx},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(r,e)=>process.emitWarning(r,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:QW,require:()=>{throw new ks(iY)},requireDirectory:()=>{throw new ks(Ex)},stringWidth:r=>[...r].length,y18n:mx({directory:gx(Ou,"../../../locales"),updateFiles:!1})};var WP=yr($P(),1),{applyExtends:hz,cjsPlatformShim:mz,Parser:gz,processArgv:Ez,Yargs:Sp}=WP.default;Sp.applyExtends=(r,e,t)=>hz(r,e,t,mz);Sp.hideBin=Ez.hideBin;Sp.Parser=gz;var YP=Sp;var at=yr(Hw(),1);var Vp="create-cedar-app",Fp="2.3.0-rc.34";Pe();Pe();var Q6=yr(X5(),1),m1=yr(ec(),1),cm=yr(z8(),1),zl=yr(ri(),1),Z6=yr(Q8(),1),ej=yr(eG(),1),g1=yr(K6(),1);var ar=[];for(let r=0;r<256;++r)ar.push((r+256).toString(16).slice(1));function J6(r,e=0){return(ar[r[e+0]]+ar[r[e+1]]+ar[r[e+2]]+ar[r[e+3]]+"-"+ar[r[e+4]]+ar[r[e+5]]+"-"+ar[r[e+6]]+ar[r[e+7]]+"-"+ar[r[e+8]]+ar[r[e+9]]+"-"+ar[r[e+10]]+ar[r[e+11]]+ar[r[e+12]]+ar[r[e+13]]+ar[r[e+14]]+ar[r[e+15]]).toLowerCase()}import{randomFillSync as Uce}from"crypto";var om=new Uint8Array(256),sm=om.length;function p1(){return sm>om.length-16&&(Uce(om),sm=0),om.slice(sm,sm+=16)}import{randomUUID as Vce}from"crypto";var d1={randomUUID:Vce};function Fce(r,e,t){if(d1.randomUUID&&!e&&!r)return d1.randomUUID();r=r||{};let n=r.random??r.rng?.()??p1();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){if(t=t||0,t<0||t+16>e.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let s=0;s<16;++s)e[t+s]=n[s];return e}return J6(n)}var h1=Fce;var am,E1,_1,S1=h1();async function tj(){eu.setLogger(new ef,Ht.ERROR);let r=JSON.parse(await ej.default.run({System:["OS","Shell"],Binaries:["Node","Yarn","npm"],npmPackages:"@cedarjs/*",IDEs:["VSCode"]},{json:!0})),e=r.System?.Shell;e?.path?.match("/")?r.System.Shell.name=r.System.Shell.path.split("/").pop():e?.path.match("\\")&&(r.System.Shell.name=r.System.Shell.path.split("\\").pop());let t=await g1.default.cpu(),n=await g1.default.mem(),s;Object.keys(process.env).some(o=>o.startsWith("GITPOD_"))&&(s="gitpod");let i=m1.Resource.default().merge(new m1.Resource({[zl.SemanticResourceAttributes.SERVICE_NAME]:Vp,[zl.SemanticResourceAttributes.SERVICE_VERSION]:Fp,[zl.SemanticResourceAttributes.OS_TYPE]:r.System?.OS?.split(" ")[0],[zl.SemanticResourceAttributes.OS_VERSION]:r.System?.OS?.split(" ")[1],"shell.name":r.System?.Shell?.name,"node.version":r.Binaries?.Node?.version,"yarn.version":r.Binaries?.Yarn?.version,"npm.version":r.Binaries?.npm?.version,"vscode.version":r.IDEs?.VSCode?.version,"cpu.count":t.physicalCores,"memory.gb":Math.round(n.total/1073741824),"env.node_env":process.env.NODE_ENV||null,"ci.redwood":!!process.env.REDWOOD_CI,"ci.isci":Z6.default.isCI,"dev.environment":s,uid:S1}));am=new cm.NodeTracerProvider({resource:i}),_1=new Q6.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),E1=new cm.BatchSpanProcessor(_1),am.addSpanProcessor(E1),am.register(),process.on("SIGTERM",async()=>{await rr()})}async function rr(){try{tu.trace.getActiveSpan()?.end(),await am?.shutdown(),await E1?.shutdown(),await _1?.shutdown()}catch{}}function Sr(r){tu.trace.getActiveSpan()?.setStatus({code:Ri.ERROR,message:r.toString().split(`
579
579
  `)[0]}),tu.trace.getActiveSpan()?.recordException(r)}var nj="Initial commit",{telemetry:jce}=yu(Kf(process.argv),{boolean:["telemetry"],default:{telemetry:process.env.REDWOOD_DISABLE_TELEMETRY===void 0||process.env.REDWOOD_DISABLE_TELEMETRY===""}}),Ye=new at.RedwoodTUI;function kce(){let{npm_config_user_agent:r}=process.env;if(r){let e=r.match(/yarn\/(\d+)/);if(e&&e[1])return parseInt(e[1],10)>=2}return!1}async function Hce(r){let e=new at.ReactiveTUIContent({mode:"text",content:"Checking node and yarn compatibility",spinner:{enabled:!0}});Ye.startReactive(e);let[t,n]=await qce(r);if(t){e.update({spinner:{enabled:!1},content:`${at.RedwoodStyling.green("\u2714")} Compatibility checks passed`}),Ye.stopReactive();return}if(!t){T1.default.lt(n.node.version.version,T1.default.minVersion(n.node.wanted.raw))&&(Ye.stopReactive(!0),Ye.displayError("Compatibility checks failed",[" You need to upgrade the version of node you're using.",` You're using ${n.node.version.version} and we currently support node ${n.node.wanted.range}.`,""," Please use tools like nvm or corepack to change to a compatible version.",` See: ${(0,Xl.terminalLink)("How to - Using nvm","https://cedarjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Using nvm https://cedarjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Xl.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
580
580
  `)),Sr("Compatibility checks failed"),await rr(),process.exit(1)),Ye.stopReactive(!0),Ye.displayWarning("Compatibility checks failed",[" You may want to downgrade the version of node you're using.",` You're using ${n.node.version.version} and we currently support node ${n.node.wanted.range}.`,""," This may make your project incompatible with some deploy targets, especially those using AWS Lambdas.",""," Please use tools like nvm or corepack to change to a compatible version.",` See: ${(0,Xl.terminalLink)("How to - Use nvm","https://cedarjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Use nvm https://cedarjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Xl.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
581
581
  `));try{(await Ye.prompt({type:"select",name:"override-engine-error",message:"How would you like to proceed?",choices:["Override error and continue install","Quit install"],initial:0}))["override-engine-error"]==="Quit install"&&(Sr("User quit after engine check error"),await rr(),process.exit(0))}catch{Sr("User cancelled install at engine check error"),await rr(),process.exit(1)}}}function qce(r){return new Promise(e=>{let{engines:t}=JSON.parse(xi.readFileSync(qn.join(r,"package.json"),"utf-8"));(0,rj.default)(t,(n,s)=>e([s.isSatisfied,s.versions]))})}async function $ce(r,{templateDir:e,overwrite:t}){let n=r,s=new at.ReactiveTUIContent({mode:"text",content:"Creating project files",spinner:{enabled:!0}});return Ye.startReactive(s),n=await A1(n,{overwrite:t}),xi.mkdirSync(qn.dirname(n),{recursive:!0}),await xi.promises.cp(e,n,{recursive:!0,force:t}),xi.renameSync(qn.join(n,"gitignore.template"),qn.join(n,".gitignore")),xi.mkdirSync(qn.join(n,".redwood"),{recursive:!0}),xi.writeFileSync(qn.join(n,".redwood","telemetry.txt"),S1),s.update({spinner:{enabled:!1},content:`${at.RedwoodStyling.green("\u2714")} Project files created`}),Ye.stopReactive(),n}async function Wce(r){let e=new at.ReactiveTUIContent({mode:"text",header:"Installing node modules",content:" \u23F1 This could take a while...",spinner:{enabled:!0}});Ye.startReactive(e);let t=process.cwd();process.chdir(r);let n=(0,um.default)("yarn install",{shell:!0,cwd:r});try{await n}catch(s){Ye.stopReactive(!0),Ye.displayError("Couldn't install node modules",[`We couldn't install node modules via ${at.RedwoodStyling.info("'yarn install'")}. Please see below for the full error message.`,"",s].join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cedar-app",
3
- "version": "2.2.2-next.31+ff2776832",
3
+ "version": "2.3.0-rc.34",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -26,8 +26,8 @@
26
26
  "devDependencies": {
27
27
  "@babel/core": "^7.26.10",
28
28
  "@babel/plugin-transform-typescript": "^7.26.8",
29
- "@cedarjs/framework-tools": "2.2.1",
30
- "@cedarjs/tui": "2.2.2-next.31+ff2776832",
29
+ "@cedarjs/framework-tools": "2.3.0-rc.34",
30
+ "@cedarjs/tui": "2.3.0-rc.34",
31
31
  "@opentelemetry/api": "1.8.0",
32
32
  "@opentelemetry/exporter-trace-otlp-http": "0.49.1",
33
33
  "@opentelemetry/resources": "1.22.0",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "ff2776832afcb70cd4ca38986ec4e37043e1c44b"
57
+ "gitHead": "80ff18411d357f3748c774b6256b0a5faa037310"
58
58
  }
@@ -4,7 +4,7 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "dependencies": {
7
- "@cedarjs/api": "2.2.1",
8
- "@cedarjs/graphql-server": "2.2.1"
7
+ "@cedarjs/api": "2.3.0-rc.34",
8
+ "@cedarjs/graphql-server": "2.3.0-rc.34"
9
9
  }
10
10
  }
@@ -6,9 +6,9 @@
6
6
  "web"
7
7
  ],
8
8
  "devDependencies": {
9
- "@cedarjs/core": "2.2.1",
10
- "@cedarjs/project-config": "2.2.1",
11
- "@cedarjs/testing": "2.2.1",
9
+ "@cedarjs/core": "2.3.0-rc.34",
10
+ "@cedarjs/project-config": "2.3.0-rc.34",
11
+ "@cedarjs/testing": "2.3.0-rc.34",
12
12
  "vitest": "3.2.4"
13
13
  },
14
14
  "engines": {
@@ -12,14 +12,14 @@
12
12
  ]
13
13
  },
14
14
  "dependencies": {
15
- "@cedarjs/forms": "2.2.1",
16
- "@cedarjs/router": "2.2.1",
17
- "@cedarjs/web": "2.2.1",
15
+ "@cedarjs/forms": "2.3.0-rc.34",
16
+ "@cedarjs/router": "2.3.0-rc.34",
17
+ "@cedarjs/web": "2.3.0-rc.34",
18
18
  "react": "18.3.1",
19
19
  "react-dom": "18.3.1"
20
20
  },
21
21
  "devDependencies": {
22
- "@cedarjs/vite": "2.2.1",
22
+ "@cedarjs/vite": "2.3.0-rc.34",
23
23
  "@types/react": "^18.2.55",
24
24
  "@types/react-dom": "^18.2.19"
25
25
  }