create-cedar-app 1.0.0-canary.12996 → 1.0.0-canary.12999
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.
- package/dist/create-cedar-app.js +1 -1
- package/package.json +4 -4
- package/templates/js/api/package.json +2 -2
- package/templates/js/package.json +3 -3
- package/templates/js/web/package.json +4 -4
- package/templates/ts/api/package.json +2 -2
- package/templates/ts/package.json +3 -3
- package/templates/ts/web/package.json +4 -4
package/dist/create-cedar-app.js
CHANGED
|
@@ -583,7 +583,7 @@ Bus `);for(let a=1;a<o.length;a++){let c=DEe(o[a]);t.push(c)}}r&&r(t),e(t)}),_Ee
|
|
|
583
583
|
`)}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>rn.stringWidth(o)&&(l+=" ".repeat(u-rn.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){let p=mee[e[a].align];l=p(l,u),rn.stringWidth(l)<u&&(l+=" ".repeat((c||0)-rn.stringWidth(l)-1))}let f=e[a].padding||[0,0,0,0];f[od]&&(i+=" ".repeat(f[od])),i+=Qw(e[a],l,"| "),i+=l,i+=Qw(e[a],l," |"),f[sd]&&(i+=" ".repeat(f[sd])),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=rn.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=rn.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
|
|
584
584
|
`):s=i.text.split(`
|
|
585
585
|
`),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[gee]||0).fill("")),s.push(...new Array(i.padding[Eee]||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[od]||0)+(e.padding[sd]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(o=>o.width||rn.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,See(e[a])):o)}};function Qw(r,e,t){return r.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function See(r){let e=r.padding||[],t=1+(e[od]||0)+(e[sd]||0);return r.border?t+4:t}function _ee(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function Tee(r,e){r=r.trim();let t=rn.stringWidth(r);return t<e?" ".repeat(e-t)+r:r}function yee(r,e){r=r.trim();let t=rn.stringWidth(r);return t>=e?r:" ".repeat(e-t>>1)+r}var rn;function Zw(r,e){return rn=e,new PS({width:r?.width||_ee(),wrap:r?.wrap})}var eR=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function wS(r){return r.replace(eR,"")}function tR(r,e){let[t,n]=r.match(eR)||["",""];r=wS(r);let s="";for(let i=0;i<r.length;i++)i!==0&&i%e===0&&(s+=`
|
|
586
|
-
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function RS(r){return Zw(r,{stringWidth:e=>[...e].length,stripAnsi:wS,wrap:tR})}import{dirname as rR,resolve as nR}from"path";import{readdirSync as Aee,statSync as Oee}from"fs";function iR(r,e){let t=nR(".",r),n;for(Oee(t).isDirectory()||(t=rR(t));;){if(n=e(t,Aee(t)),n)return nR(t,n);if(t=rR(n=t),n===t)break}}import{inspect as Ree}from"util";import{readFileSync as Lee}from"fs";import{fileURLToPath as Mee}from"url";import{basename as Nee,dirname as Bee,extname as Uee,relative as Fee,resolve as cR}from"path";import{readFileSync as Cee,statSync as vee,writeFile as Dee}from"fs";import{format as xee}from"util";import{resolve as bee}from"path";var sR={fs:{readFileSync:Cee,writeFile:Dee},format:xee,resolve:bee,exists:r=>{try{return vee(r).isFile()}catch{return!1}}};var Yn,LS=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(),Yn.format.apply(Yn.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),Yn.format.apply(Yn.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);Yn.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{Yn.fs.readFileSync&&(e=JSON.parse(Yn.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=Yn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Yn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Yn.exists(e)}};function oR(r,e){Yn=e;let t=new LS(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 Iee=r=>oR(r,sR),aR=Iee;var Vee="require is not supported by ESM",uR="loading a directory of commands is not supported yet for ESM",hl;try{hl=Mee(import.meta.url)}catch{hl=process.cwd()}var Gee=hl.substring(0,hl.lastIndexOf("node_modules")),kee={assert:{notStrictEqual:Pee,strictEqual:wee},cliui:RS,findUp:iR,getEnv:r=>process.env[r],inspect:Ree,getCallerFile:()=>{throw new _o(uR)},getProcessArgvBin:Ww,mainFilename:Gee||process.cwd(),Parser:dl,path:{basename:Nee,dirname:Bee,extname:Uee,relative:Fee,resolve:cR},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:Lee,require:()=>{throw new _o(Vee)},requireDirectory:()=>{throw new _o(uR)},stringWidth:r=>[...r].length,y18n:aR({directory:cR(hl,"../../../locales"),updateFiles:!1})};var FL=Er(UL(),1),{applyExtends:Xte,cjsPlatformShim:Kte,Parser:Jte,processArgv:Qte,Yargs:Cd}=FL.default;Cd.applyExtends=(r,e,t)=>Xte(r,e,t,Kte);Cd.hideBin=Qte.hideBin;Cd.Parser=Jte;var VL=Cd;var lt=Er(N2(),1);var qd="create-cedar-app",$d="1.0.0-canary.
|
|
586
|
+
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function RS(r){return Zw(r,{stringWidth:e=>[...e].length,stripAnsi:wS,wrap:tR})}import{dirname as rR,resolve as nR}from"path";import{readdirSync as Aee,statSync as Oee}from"fs";function iR(r,e){let t=nR(".",r),n;for(Oee(t).isDirectory()||(t=rR(t));;){if(n=e(t,Aee(t)),n)return nR(t,n);if(t=rR(n=t),n===t)break}}import{inspect as Ree}from"util";import{readFileSync as Lee}from"fs";import{fileURLToPath as Mee}from"url";import{basename as Nee,dirname as Bee,extname as Uee,relative as Fee,resolve as cR}from"path";import{readFileSync as Cee,statSync as vee,writeFile as Dee}from"fs";import{format as xee}from"util";import{resolve as bee}from"path";var sR={fs:{readFileSync:Cee,writeFile:Dee},format:xee,resolve:bee,exists:r=>{try{return vee(r).isFile()}catch{return!1}}};var Yn,LS=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(),Yn.format.apply(Yn.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),Yn.format.apply(Yn.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);Yn.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{Yn.fs.readFileSync&&(e=JSON.parse(Yn.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=Yn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Yn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Yn.exists(e)}};function oR(r,e){Yn=e;let t=new LS(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 Iee=r=>oR(r,sR),aR=Iee;var Vee="require is not supported by ESM",uR="loading a directory of commands is not supported yet for ESM",hl;try{hl=Mee(import.meta.url)}catch{hl=process.cwd()}var Gee=hl.substring(0,hl.lastIndexOf("node_modules")),kee={assert:{notStrictEqual:Pee,strictEqual:wee},cliui:RS,findUp:iR,getEnv:r=>process.env[r],inspect:Ree,getCallerFile:()=>{throw new _o(uR)},getProcessArgvBin:Ww,mainFilename:Gee||process.cwd(),Parser:dl,path:{basename:Nee,dirname:Bee,extname:Uee,relative:Fee,resolve:cR},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:Lee,require:()=>{throw new _o(Vee)},requireDirectory:()=>{throw new _o(uR)},stringWidth:r=>[...r].length,y18n:aR({directory:cR(hl,"../../../locales"),updateFiles:!1})};var FL=Er(UL(),1),{applyExtends:Xte,cjsPlatformShim:Kte,Parser:Jte,processArgv:Qte,Yargs:Cd}=FL.default;Cd.applyExtends=(r,e,t)=>Xte(r,e,t,Kte);Cd.hideBin=Qte.hideBin;Cd.Parser=Jte;var VL=Cd;var lt=Er(N2(),1);var qd="create-cedar-app",$d="1.0.0-canary.12999+73203dff3";Pe();Pe();var L9=Er(kj(),1),lC=Er(Uc(),1),Dg=Er(I$(),1),Wf=Er(Ai(),1),M9=Er(L$(),1),N9=Er(N$(),1),fC=Er(w9(),1);var mr=[];for(let r=0;r<256;++r)mr.push((r+256).toString(16).slice(1));function R9(r,e=0){return(mr[r[e+0]]+mr[r[e+1]]+mr[r[e+2]]+mr[r[e+3]]+"-"+mr[r[e+4]]+mr[r[e+5]]+"-"+mr[r[e+6]]+mr[r[e+7]]+"-"+mr[r[e+8]]+mr[r[e+9]]+"-"+mr[r[e+10]]+mr[r[e+11]]+mr[r[e+12]]+mr[r[e+13]]+mr[r[e+14]]+mr[r[e+15]]).toLowerCase()}import dSe from"node:crypto";var Cg=new Uint8Array(256),Og=Cg.length;function aC(){return Og>Cg.length-16&&(dSe.randomFillSync(Cg),Og=0),Cg.slice(Og,Og+=16)}import hSe from"node:crypto";var cC={randomUUID:hSe.randomUUID};function mSe(r,e,t){if(cC.randomUUID&&!e&&!r)return cC.randomUUID();r=r||{};let n=r.random||(r.rng||aC)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=n[s];return e}return R9(n)}var uC=mSe;var vg,pC,dC,hC=uC();async function B9(){Fu.setLogger(new Qf,zt.ERROR);let r=JSON.parse(await N9.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 fC.default.cpu(),n=await fC.default.mem(),s;Object.keys(process.env).some(o=>o.startsWith("GITPOD_"))&&(s="gitpod");let i=lC.Resource.default().merge(new lC.Resource({[Wf.SemanticResourceAttributes.SERVICE_NAME]:qd,[Wf.SemanticResourceAttributes.SERVICE_VERSION]:$d,[Wf.SemanticResourceAttributes.OS_TYPE]:r.System?.OS?.split(" ")[0],[Wf.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":M9.default.isCI,"dev.environment":s,uid:hC}));vg=new Dg.NodeTracerProvider({resource:i}),dC=new L9.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),pC=new Dg.BatchSpanProcessor(dC),vg.addSpanProcessor(pC),vg.register(),process.on("SIGTERM",async()=>{await ur()})}async function ur(){try{Vu.trace.getActiveSpan()?.end(),await vg?.shutdown(),await pC?.shutdown(),await dC?.shutdown()}catch{}}function Pr(r){Vu.trace.getActiveSpan()?.setStatus({code:ts.ERROR,message:r.toString().split(`
|
|
587
587
|
`)[0]}),Vu.trace.getActiveSpan()?.recordException(r)}var F9="Initial commit",{telemetry:ESe}=dl(td(process.argv),{boolean:["telemetry"],default:{telemetry:process.env.REDWOOD_DISABLE_TELEMETRY===void 0||process.env.REDWOOD_DISABLE_TELEMETRY===""}}),Ke=new lt.RedwoodTUI;function SSe(){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 _Se(r){let e=new lt.ReactiveTUIContent({mode:"text",content:"Checking node and yarn compatibility",spinner:{enabled:!0}});Ke.startReactive(e);let[t,n]=await TSe(r);if(t){e.update({spinner:{enabled:!1},content:`${lt.RedwoodStyling.green("\u2714")} Compatibility checks passed`}),Ke.stopReactive();return}if(!t){mC.default.lt(n.node.version.version,mC.default.minVersion(n.node.wanted.raw))&&(Ke.stopReactive(!0),Ke.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,Yf.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,Yf.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
|
|
588
588
|
`)),Pr("Compatibility checks failed"),await ur(),process.exit(1)),Ke.stopReactive(!0),Ke.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,Yf.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,Yf.terminalLink)("Tutorial - Prerequisites","https://cedarjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://cedarjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
|
|
589
589
|
`));try{(await Ke.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"&&(Pr("User quit after engine check error"),await ur(),process.exit(0))}catch{Pr("User cancelled install at engine check error"),await ur(),process.exit(1)}}}function TSe(r){return new Promise(e=>{let{engines:t}=wi.default.readJSONSync(li.join(r,"package.json"));(0,U9.default)(t,(n,s)=>e([s.isSatisfied,s.versions]))})}async function ySe(r,{templateDir:e,overwrite:t}){let n=r,s=new lt.ReactiveTUIContent({mode:"text",content:"Creating project files",spinner:{enabled:!0}});return Ke.startReactive(s),n=await gC(n,{overwrite:t}),wi.default.ensureDirSync(li.dirname(n)),wi.default.copySync(e,n,{overwrite:t}),wi.default.renameSync(li.join(n,"gitignore.template"),li.join(n,".gitignore")),wi.default.ensureDirSync(li.join(n,".redwood")),wi.default.writeFileSync(li.join(n,".redwood","telemetry.txt"),hC),s.update({spinner:{enabled:!1},content:`${lt.RedwoodStyling.green("\u2714")} Project files created`}),Ke.stopReactive(),n}async function ASe(r){let e=new lt.ReactiveTUIContent({mode:"text",header:"Installing node modules",content:" \u23F1 This could take a while...",spinner:{enabled:!0}});Ke.startReactive(e);let t=process.cwd();process.chdir(r);let n=(0,xg.default)("yarn install",{shell:!0,cwd:r});try{await n}catch(s){Ke.stopReactive(!0),Ke.displayError("Couldn't install node modules",[`We couldn't install node modules via ${lt.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": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.12999+73203dff3",
|
|
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": "1.0.0-canary.
|
|
30
|
-
"@cedarjs/tui": "1.0.0-canary.
|
|
29
|
+
"@cedarjs/framework-tools": "1.0.0-canary.12999",
|
|
30
|
+
"@cedarjs/tui": "1.0.0-canary.12999",
|
|
31
31
|
"@opentelemetry/api": "1.8.0",
|
|
32
32
|
"@opentelemetry/exporter-trace-otlp-http": "0.49.1",
|
|
33
33
|
"@opentelemetry/resources": "1.22.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"vitest": "3.2.4",
|
|
53
53
|
"yargs": "17.7.2"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "73203dff3ab9b62041dd2dc4b6616dc15af8b33d"
|
|
56
56
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"web"
|
|
6
6
|
],
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@cedarjs/core": "1.0.0-canary.
|
|
9
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
10
|
-
"@cedarjs/testing": "1.0.0-canary.
|
|
8
|
+
"@cedarjs/core": "1.0.0-canary.12999",
|
|
9
|
+
"@cedarjs/project-config": "1.0.0-canary.12999",
|
|
10
|
+
"@cedarjs/testing": "1.0.0-canary.12999"
|
|
11
11
|
},
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": "=24.x"
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cedarjs/forms": "1.0.0-canary.
|
|
15
|
-
"@cedarjs/router": "1.0.0-canary.
|
|
16
|
-
"@cedarjs/web": "1.0.0-canary.
|
|
14
|
+
"@cedarjs/forms": "1.0.0-canary.12999",
|
|
15
|
+
"@cedarjs/router": "1.0.0-canary.12999",
|
|
16
|
+
"@cedarjs/web": "1.0.0-canary.12999",
|
|
17
17
|
"react": "19.2.3",
|
|
18
18
|
"react-dom": "19.2.3"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@cedarjs/vite": "1.0.0-canary.
|
|
21
|
+
"@cedarjs/vite": "1.0.0-canary.12999",
|
|
22
22
|
"@types/react": "^18.2.55",
|
|
23
23
|
"@types/react-dom": "^18.2.19"
|
|
24
24
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"web"
|
|
6
6
|
],
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@cedarjs/core": "1.0.0-canary.
|
|
9
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
10
|
-
"@cedarjs/testing": "1.0.0-canary.
|
|
8
|
+
"@cedarjs/core": "1.0.0-canary.12999",
|
|
9
|
+
"@cedarjs/project-config": "1.0.0-canary.12999",
|
|
10
|
+
"@cedarjs/testing": "1.0.0-canary.12999"
|
|
11
11
|
},
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": "=24.x"
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cedarjs/forms": "1.0.0-canary.
|
|
15
|
-
"@cedarjs/router": "1.0.0-canary.
|
|
16
|
-
"@cedarjs/web": "1.0.0-canary.
|
|
14
|
+
"@cedarjs/forms": "1.0.0-canary.12999",
|
|
15
|
+
"@cedarjs/router": "1.0.0-canary.12999",
|
|
16
|
+
"@cedarjs/web": "1.0.0-canary.12999",
|
|
17
17
|
"react": "19.2.3",
|
|
18
18
|
"react-dom": "19.2.3"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@cedarjs/vite": "1.0.0-canary.
|
|
21
|
+
"@cedarjs/vite": "1.0.0-canary.12999",
|
|
22
22
|
"@types/react": "^18.2.55",
|
|
23
23
|
"@types/react-dom": "^18.2.19"
|
|
24
24
|
}
|