create-cedar-app 2.1.0-rc.28 → 2.1.0-rc.35
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/esm-js/api/package.json +2 -2
- package/templates/esm-js/package.json +3 -3
- package/templates/esm-js/web/package.json +4 -4
- package/templates/esm-js/yarn.lock +225 -225
- package/templates/esm-ts/api/package.json +2 -2
- package/templates/esm-ts/package.json +3 -3
- package/templates/esm-ts/web/package.json +4 -4
- package/templates/esm-ts/yarn.lock +225 -225
- 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/js/yarn.lock +225 -225
- package/templates/ts/api/package.json +2 -2
- package/templates/ts/package.json +3 -3
- package/templates/ts/web/package.json +4 -4
- package/templates/ts/yarn.lock +225 -225
package/dist/create-cedar-app.js
CHANGED
|
@@ -586,7 +586,7 @@ Bus `);for(let a=1;a<o.length;a++){let u=m0e(o[a]);t.push(u)}}r&&r(t),e(t)}),u0e
|
|
|
586
586
|
`)}rowToString(e,t){return this.rasterize(e).forEach((n,s)=>{let i="";n.forEach((o,a)=>{let{width:u}=e[a],c=this.negatePadding(e[a]),l=o;if(c>rn.stringWidth(o)&&(l+=" ".repeat(c-rn.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){let p=lee[e[a].align];l=p(l,c),rn.stringWidth(l)<c&&(l+=" ".repeat((u||0)-rn.stringWidth(l)-1))}let f=e[a].padding||[0,0,0,0];f[od]&&(i+=" ".repeat(f[od])),i+=QI(e[a],l,"| "),i+=l,i+=QI(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(`
|
|
587
587
|
`):s=i.text.split(`
|
|
588
588
|
`),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[fee]||0).fill("")),s.push(...new Array(i.padding[pee]||0).fill(""))),s.forEach((a,u)=>{t[u]||t.push([]);let c=t[u];for(let l=0;l<o;l++)c[l]===void 0&&c.push("");c.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,dee(e[a])):o)}};function QI(r,e,t){return r.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function dee(r){let e=r.padding||[],t=1+(e[od]||0)+(e[sd]||0);return r.border?t+4:t}function hee(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function mee(r,e){r=r.trim();let t=rn.stringWidth(r);return t<e?" ".repeat(e-t)+r:r}function gee(r,e){r=r.trim();let t=rn.stringWidth(r);return t>=e?r:" ".repeat(e-t>>1)+r}var rn;function ZI(r,e){return rn=e,new D_({width:r?.width||hee(),wrap:r?.wrap})}var eL=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function w_(r){return r.replace(eL,"")}function tL(r,e){let[t,n]=r.match(eL)||["",""];r=w_(r);let s="";for(let i=0;i<r.length;i++)i!==0&&i%e===0&&(s+=`
|
|
589
|
-
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function b_(r){return ZI(r,{stringWidth:e=>[...e].length,stripAnsi:w_,wrap:tL})}import{dirname as rL,resolve as nL}from"path";import{readdirSync as Eee,statSync as _ee}from"fs";function iL(r,e){let t=nL(".",r),n;for(_ee(t).isDirectory()||(t=rL(t));;){if(n=e(t,Eee(t)),n)return nL(t,n);if(t=rL(n=t),n===t)break}}import{inspect as wee}from"util";import{readFileSync as bee}from"fs";import{fileURLToPath as Ree}from"url";import{basename as Pee,dirname as Iee,extname as Lee,relative as Nee,resolve as uL}from"path";import{readFileSync as See,statSync as Tee,writeFile as yee}from"fs";import{format as Aee}from"util";import{resolve as Oee}from"path";var sL={fs:{readFileSync:See,writeFile:yee},format:Aee,resolve:Oee,exists:r=>{try{return Tee(r).isFile()}catch{return!1}}};var Wn,R_=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(),Wn.format.apply(Wn.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),Wn.format.apply(Wn.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);Wn.fs.writeFile(o,a,"utf-8",function(u){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(u)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{Wn.fs.readFileSync&&(e=JSON.parse(Wn.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=Wn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Wn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Wn.exists(e)}};function oL(r,e){Wn=e;let t=new R_(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 vee=r=>oL(r,sL),aL=vee;var Mee="require is not supported by ESM",cL="loading a directory of commands is not supported yet for ESM",ll;try{ll=Ree(import.meta.url)}catch{ll=process.cwd()}var xee=ll.substring(0,ll.lastIndexOf("node_modules")),Uee={assert:{notStrictEqual:Cee,strictEqual:Dee},cliui:b_,findUp:iL,getEnv:r=>process.env[r],inspect:wee,getCallerFile:()=>{throw new _o(cL)},getProcessArgvBin:WI,mainFilename:xee||process.cwd(),Parser:cl,path:{basename:Pee,dirname:Iee,extname:Lee,relative:Nee,resolve:uL},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:bee,require:()=>{throw new _o(Mee)},requireDirectory:()=>{throw new _o(cL)},stringWidth:r=>[...r].length,y18n:aL({directory:uL(ll,"../../../locales"),updateFiles:!1})};var BN=gr(VN(),1),{applyExtends:kte,cjsPlatformShim:Hte,Parser:Wte,processArgv:Yte,Yargs:vd}=BN.default;vd.applyExtends=(r,e,t)=>kte(r,e,t,Hte);vd.hideBin=Yte.hideBin;vd.Parser=Wte;var FN=vd;var lt=gr(V2(),1);var $d="create-cedar-app",kd="2.1.0-rc.
|
|
589
|
+
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function b_(r){return ZI(r,{stringWidth:e=>[...e].length,stripAnsi:w_,wrap:tL})}import{dirname as rL,resolve as nL}from"path";import{readdirSync as Eee,statSync as _ee}from"fs";function iL(r,e){let t=nL(".",r),n;for(_ee(t).isDirectory()||(t=rL(t));;){if(n=e(t,Eee(t)),n)return nL(t,n);if(t=rL(n=t),n===t)break}}import{inspect as wee}from"util";import{readFileSync as bee}from"fs";import{fileURLToPath as Ree}from"url";import{basename as Pee,dirname as Iee,extname as Lee,relative as Nee,resolve as uL}from"path";import{readFileSync as See,statSync as Tee,writeFile as yee}from"fs";import{format as Aee}from"util";import{resolve as Oee}from"path";var sL={fs:{readFileSync:See,writeFile:yee},format:Aee,resolve:Oee,exists:r=>{try{return Tee(r).isFile()}catch{return!1}}};var Wn,R_=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(),Wn.format.apply(Wn.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),Wn.format.apply(Wn.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);Wn.fs.writeFile(o,a,"utf-8",function(u){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(u)})}_readLocaleFile(){let e={},t=this._resolveLocaleFile(this.directory,this.locale);try{Wn.fs.readFileSync&&(e=JSON.parse(Wn.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=Wn.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~t.lastIndexOf("_")){let s=Wn.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(s)&&(n=s)}return n}_fileExistsSync(e){return Wn.exists(e)}};function oL(r,e){Wn=e;let t=new R_(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 vee=r=>oL(r,sL),aL=vee;var Mee="require is not supported by ESM",cL="loading a directory of commands is not supported yet for ESM",ll;try{ll=Ree(import.meta.url)}catch{ll=process.cwd()}var xee=ll.substring(0,ll.lastIndexOf("node_modules")),Uee={assert:{notStrictEqual:Cee,strictEqual:Dee},cliui:b_,findUp:iL,getEnv:r=>process.env[r],inspect:wee,getCallerFile:()=>{throw new _o(cL)},getProcessArgvBin:WI,mainFilename:xee||process.cwd(),Parser:cl,path:{basename:Pee,dirname:Iee,extname:Lee,relative:Nee,resolve:uL},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:bee,require:()=>{throw new _o(Mee)},requireDirectory:()=>{throw new _o(cL)},stringWidth:r=>[...r].length,y18n:aL({directory:uL(ll,"../../../locales"),updateFiles:!1})};var BN=gr(VN(),1),{applyExtends:kte,cjsPlatformShim:Hte,Parser:Wte,processArgv:Yte,Yargs:vd}=BN.default;vd.applyExtends=(r,e,t)=>kte(r,e,t,Hte);vd.hideBin=Yte.hideBin;vd.Parser=Wte;var FN=vd;var lt=gr(V2(),1);var $d="create-cedar-app",kd="2.1.0-rc.35";Pe();Pe();var bW=gr($q(),1),lC=gr(Vu(),1),AE=gr(Ik(),1),Wf=gr(Si(),1),RW=gr(xk(),1),PW=gr(Vk(),1),fC=gr(DW(),1);var hr=[];for(let r=0;r<256;++r)hr.push((r+256).toString(16).slice(1));function wW(r,e=0){return(hr[r[e+0]]+hr[r[e+1]]+hr[r[e+2]]+hr[r[e+3]]+"-"+hr[r[e+4]]+hr[r[e+5]]+"-"+hr[r[e+6]]+hr[r[e+7]]+"-"+hr[r[e+8]]+hr[r[e+9]]+"-"+hr[r[e+10]]+hr[r[e+11]]+hr[r[e+12]]+hr[r[e+13]]+hr[r[e+14]]+hr[r[e+15]]).toLowerCase()}import i_e from"node:crypto";var TE=new Uint8Array(256),SE=TE.length;function aC(){return SE>TE.length-16&&(i_e.randomFillSync(TE),SE=0),TE.slice(SE,SE+=16)}import s_e from"node:crypto";var uC={randomUUID:s_e.randomUUID};function o_e(r,e,t){if(uC.randomUUID&&!e&&!r)return uC.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 wW(n)}var cC=o_e;var yE,pC,dC,hC=cC();async function IW(){Mc.setLogger(new Qf,Wt.ERROR);let r=JSON.parse(await PW.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]:$d,[Wf.SemanticResourceAttributes.SERVICE_VERSION]:kd,[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":RW.default.isCI,"dev.environment":s,uid:hC}));yE=new AE.NodeTracerProvider({resource:i}),dC=new bW.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),pC=new AE.BatchSpanProcessor(dC),yE.addSpanProcessor(pC),yE.register(),process.on("SIGTERM",async()=>{await ur()})}async function ur(){try{xc.trace.getActiveSpan()?.end(),await yE?.shutdown(),await pC?.shutdown(),await dC?.shutdown()}catch{}}function Pr(r){xc.trace.getActiveSpan()?.setStatus({code:Zi.ERROR,message:r.toString().split(`
|
|
590
590
|
`)[0]}),xc.trace.getActiveSpan()?.recordException(r)}var NW="Initial commit",{telemetry:u_e}=cl(td(process.argv),{boolean:["telemetry"],default:{telemetry:process.env.REDWOOD_DISABLE_TELEMETRY===void 0||process.env.REDWOOD_DISABLE_TELEMETRY===""}}),ze=new lt.RedwoodTUI;function c_e(){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 l_e(r){let e=new lt.ReactiveTUIContent({mode:"text",content:"Checking node and yarn compatibility",spinner:{enabled:!0}});ze.startReactive(e);let[t,n]=await f_e(r);if(t){e.update({spinner:{enabled:!1},content:`${lt.RedwoodStyling.green("\u2714")} Compatibility checks passed`}),ze.stopReactive();return}if(!t){mC.default.lt(n.node.version.version,mC.default.minVersion(n.node.wanted.raw))&&(ze.stopReactive(!0),ze.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(`
|
|
591
591
|
`)),Pr("Compatibility checks failed"),await ur(),process.exit(1)),ze.stopReactive(!0),ze.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(`
|
|
592
592
|
`));try{(await ze.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 f_e(r){return new Promise(e=>{let{engines:t}=Pi.default.readJSONSync(ai.join(r,"package.json"));(0,LW.default)(t,(n,s)=>e([s.isSatisfied,s.versions]))})}async function p_e(r,{templateDir:e,overwrite:t}){let n=r,s=new lt.ReactiveTUIContent({mode:"text",content:"Creating project files",spinner:{enabled:!0}});return ze.startReactive(s),n=await gC(n,{overwrite:t}),Pi.default.ensureDirSync(ai.dirname(n)),Pi.default.copySync(e,n,{overwrite:t}),Pi.default.renameSync(ai.join(n,"gitignore.template"),ai.join(n,".gitignore")),Pi.default.ensureDirSync(ai.join(n,".redwood")),Pi.default.writeFileSync(ai.join(n,".redwood","telemetry.txt"),hC),s.update({spinner:{enabled:!1},content:`${lt.RedwoodStyling.green("\u2714")} Project files created`}),ze.stopReactive(),n}async function d_e(r){let e=new lt.ReactiveTUIContent({mode:"text",header:"Installing node modules",content:" \u23F1 This could take a while...",spinner:{enabled:!0}});ze.startReactive(e);let t=process.cwd();process.chdir(r);let n=(0,OE.default)("yarn install",{shell:!0,cwd:r});try{await n}catch(s){ze.stopReactive(!0),ze.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": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.35",
|
|
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.1.0-rc.
|
|
30
|
-
"@cedarjs/tui": "2.1.0-rc.
|
|
29
|
+
"@cedarjs/framework-tools": "2.1.0-rc.35",
|
|
30
|
+
"@cedarjs/tui": "2.1.0-rc.35",
|
|
31
31
|
"@opentelemetry/api": "1.8.0",
|
|
32
32
|
"@opentelemetry/exporter-trace-otlp-http": "0.49.1",
|
|
33
33
|
"@opentelemetry/resources": "1.22.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "574eea39ee4dc4220b5088a47f22ae0b420767ff"
|
|
59
59
|
}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@cedarjs/core": "2.1.0-rc.
|
|
12
|
-
"@cedarjs/project-config": "2.1.0-rc.
|
|
13
|
-
"@cedarjs/testing": "2.1.0-rc.
|
|
11
|
+
"@cedarjs/core": "2.1.0-rc.35",
|
|
12
|
+
"@cedarjs/project-config": "2.1.0-rc.35",
|
|
13
|
+
"@cedarjs/testing": "2.1.0-rc.35",
|
|
14
14
|
"vitest": "3.2.4"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@cedarjs/forms": "2.1.0-rc.
|
|
16
|
-
"@cedarjs/router": "2.1.0-rc.
|
|
17
|
-
"@cedarjs/web": "2.1.0-rc.
|
|
15
|
+
"@cedarjs/forms": "2.1.0-rc.35",
|
|
16
|
+
"@cedarjs/router": "2.1.0-rc.35",
|
|
17
|
+
"@cedarjs/web": "2.1.0-rc.35",
|
|
18
18
|
"react": "18.3.1",
|
|
19
19
|
"react-dom": "18.3.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@cedarjs/vite": "2.1.0-rc.
|
|
22
|
+
"@cedarjs/vite": "2.1.0-rc.35",
|
|
23
23
|
"@types/react": "^18.2.55",
|
|
24
24
|
"@types/react-dom": "^18.2.19"
|
|
25
25
|
}
|