create-cedar-app 0.2.1-next.0 → 0.3.1-next.0
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/js/yarn.lock +571 -208
- 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 +571 -208
package/dist/create-cedar-app.js
CHANGED
|
@@ -579,7 +579,7 @@ Bus `);for(let a=1;a<o.length;a++){let u=yge(o[a]);t.push(u)}}r&&r(t),e(t)}),mge
|
|
|
579
579
|
`)}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>Jr.stringWidth(o)&&(l+=" ".repeat(c-Jr.stringWidth(o))),e[a].align&&e[a].align!=="left"&&this.wrap){let p=yQ[e[a].align];l=p(l,c),Jr.stringWidth(l)<c&&(l+=" ".repeat((u||0)-Jr.stringWidth(l)-1))}let f=e[a].padding||[0,0,0,0];f[$p]&&(i+=" ".repeat(f[$p])),i+=JI(e[a],l,"| "),i+=l,i+=JI(e[a],l," |"),f[qp]&&(i+=" ".repeat(f[qp])),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=Jr.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=Jr.wrap(i.text,this.negatePadding(i),{hard:!0}).split(`
|
|
580
580
|
`):s=i.text.split(`
|
|
581
581
|
`),i.border&&(s.unshift("."+"-".repeat(this.negatePadding(i)+2)+"."),s.push("'"+"-".repeat(this.negatePadding(i)+2)+"'")),i.padding&&(s.unshift(...new Array(i.padding[OQ]||0).fill("")),s.push(...new Array(i.padding[vQ]||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[$p]||0)+(e.padding[qp]||0)),e.border&&(t-=4),t}columnWidths(e){if(!this.wrap)return e.map(o=>o.width||Jr.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,DQ(e[a])):o)}};function JI(r,e,t){return r.border?/[.']-+[.']/.test(e)?"":e.trim().length!==0?t:" ":""}function DQ(r){let e=r.padding||[],t=1+(e[$p]||0)+(e[qp]||0);return r.border?t+4:t}function CQ(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function wQ(r,e){r=r.trim();let t=Jr.stringWidth(r);return t<e?" ".repeat(e-t)+r:r}function PQ(r,e){r=r.trim();let t=Jr.stringWidth(r);return t>=e?r:" ".repeat(e-t>>1)+r}var Jr;function QI(r,e){return Jr=e,new z_({width:r?.width||CQ(),wrap:r?.wrap})}var ZI=new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function J_(r){return r.replace(ZI,"")}function eb(r,e){let[t,n]=r.match(ZI)||["",""];r=J_(r);let s="";for(let i=0;i<r.length;i++)i!==0&&i%e===0&&(s+=`
|
|
582
|
-
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function Q_(r){return QI(r,{stringWidth:e=>[...e].length,stripAnsi:J_,wrap:eb})}import{dirname as tb,resolve as rb}from"path";import{readdirSync as RQ,statSync as IQ}from"fs";function nb(r,e){let t=rb(".",r),n;for(IQ(t).isDirectory()||(t=tb(t));;){if(n=e(t,RQ(t)),n)return rb(t,n);if(t=tb(n=t),n===t)break}}import{inspect as FQ}from"util";import{readFileSync as jQ}from"fs";import{fileURLToPath as GQ}from"url";import{basename as qQ,dirname as $Q,extname as kQ,relative as HQ,resolve as ab}from"path";import{readFileSync as bQ,statSync as LQ,writeFile as NQ}from"fs";import{format as MQ}from"util";import{resolve as xQ}from"path";var ib={fs:{readFileSync:bQ,writeFile:NQ},format:MQ,resolve:xQ,exists:r=>{try{return LQ(r).isFile()}catch{return!1}}};var Bn,Z_=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(u){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(u)})}_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 sb(r,e){Bn=e;let t=new Z_(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 UQ=r=>sb(r,ib),ob=UQ;var WQ="require is not supported by ESM",ub="loading a directory of commands is not supported yet for ESM",Kc;try{Kc=GQ(import.meta.url)}catch{Kc=process.cwd()}var YQ=Kc.substring(0,Kc.lastIndexOf("node_modules")),XQ={assert:{notStrictEqual:VQ,strictEqual:BQ},cliui:Q_,findUp:nb,getEnv:r=>process.env[r],inspect:FQ,getCallerFile:()=>{throw new co(ub)},getProcessArgvBin:HI,mainFilename:YQ||process.cwd(),Parser:Xc,path:{basename:qQ,dirname:$Q,extname:kQ,relative:HQ,resolve:ab},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:jQ,require:()=>{throw new co(WQ)},requireDirectory:()=>{throw new co(ub)},stringWidth:r=>[...r].length,y18n:ob({directory:ab(Kc,"../../../locales"),updateFiles:!1})};var VL=Pr(UL(),1),{applyExtends:ree,cjsPlatformShim:nee,Parser:iee,processArgv:see,Yargs:ad}=VL.default;ad.applyExtends=(r,e,t)=>ree(r,e,t,nee);ad.hideBin=see.hideBin;ad.Parser=iee;var BL=ad;var ut=Pr(Dx(),1);var Cd="create-cedar-app",wd="0.
|
|
582
|
+
`),s+=r.charAt(i);return t&&n&&(s=`${t}${s}${n}`),s}function Q_(r){return QI(r,{stringWidth:e=>[...e].length,stripAnsi:J_,wrap:eb})}import{dirname as tb,resolve as rb}from"path";import{readdirSync as RQ,statSync as IQ}from"fs";function nb(r,e){let t=rb(".",r),n;for(IQ(t).isDirectory()||(t=tb(t));;){if(n=e(t,RQ(t)),n)return rb(t,n);if(t=tb(n=t),n===t)break}}import{inspect as FQ}from"util";import{readFileSync as jQ}from"fs";import{fileURLToPath as GQ}from"url";import{basename as qQ,dirname as $Q,extname as kQ,relative as HQ,resolve as ab}from"path";import{readFileSync as bQ,statSync as LQ,writeFile as NQ}from"fs";import{format as MQ}from"util";import{resolve as xQ}from"path";var ib={fs:{readFileSync:bQ,writeFile:NQ},format:MQ,resolve:xQ,exists:r=>{try{return LQ(r).isFile()}catch{return!1}}};var Bn,Z_=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(u){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),i(u)})}_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 sb(r,e){Bn=e;let t=new Z_(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 UQ=r=>sb(r,ib),ob=UQ;var WQ="require is not supported by ESM",ub="loading a directory of commands is not supported yet for ESM",Kc;try{Kc=GQ(import.meta.url)}catch{Kc=process.cwd()}var YQ=Kc.substring(0,Kc.lastIndexOf("node_modules")),XQ={assert:{notStrictEqual:VQ,strictEqual:BQ},cliui:Q_,findUp:nb,getEnv:r=>process.env[r],inspect:FQ,getCallerFile:()=>{throw new co(ub)},getProcessArgvBin:HI,mainFilename:YQ||process.cwd(),Parser:Xc,path:{basename:qQ,dirname:$Q,extname:kQ,relative:HQ,resolve:ab},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:jQ,require:()=>{throw new co(WQ)},requireDirectory:()=>{throw new co(ub)},stringWidth:r=>[...r].length,y18n:ob({directory:ab(Kc,"../../../locales"),updateFiles:!1})};var VL=Pr(UL(),1),{applyExtends:ree,cjsPlatformShim:nee,Parser:iee,processArgv:see,Yargs:ad}=VL.default;ad.applyExtends=(r,e,t)=>ree(r,e,t,nee);ad.hideBin=see.hideBin;ad.Parser=iee;var BL=ad;var ut=Pr(Dx(),1);var Cd="create-cedar-app",wd="0.3.1-next.0+80dae4601";ve();ve();var gH=Pr(b4(),1),Iv=Pr(vu(),1),sE=Pr(S6(),1),bf=Pr(pi(),1),EH=Pr(O6(),1),_H=Pr(D6(),1),bv=Pr(hH(),1);var pr=[];for(let r=0;r<256;++r)pr.push((r+256).toString(16).slice(1));function mH(r,e=0){return(pr[r[e+0]]+pr[r[e+1]]+pr[r[e+2]]+pr[r[e+3]]+"-"+pr[r[e+4]]+pr[r[e+5]]+"-"+pr[r[e+6]]+pr[r[e+7]]+"-"+pr[r[e+8]]+pr[r[e+9]]+"-"+pr[r[e+10]]+pr[r[e+11]]+pr[r[e+12]]+pr[r[e+13]]+pr[r[e+14]]+pr[r[e+15]]).toLowerCase()}import fEe from"node:crypto";var nE=new Uint8Array(256),rE=nE.length;function wv(){return rE>nE.length-16&&(fEe.randomFillSync(nE),rE=0),nE.slice(rE,rE+=16)}import pEe from"node:crypto";var Pv={randomUUID:pEe.randomUUID};function dEe(r,e,t){if(Pv.randomUUID&&!e&&!r)return Pv.randomUUID();r=r||{};let n=r.random||(r.rng||wv)();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 mH(n)}var Rv=dEe;var iE,Lv,Nv,Mv=Rv();async function SH(){yc.setLogger(new Vf,kt.ERROR);let r=JSON.parse(await _H.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 bv.default.cpu(),n=await bv.default.mem(),s;Object.keys(process.env).some(o=>o.startsWith("GITPOD_"))&&(s="gitpod");let i=Iv.Resource.default().merge(new Iv.Resource({[bf.SemanticResourceAttributes.SERVICE_NAME]:Cd,[bf.SemanticResourceAttributes.SERVICE_VERSION]:wd,[bf.SemanticResourceAttributes.OS_TYPE]:r.System?.OS?.split(" ")[0],[bf.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":EH.default.isCI,"dev.environment":s,uid:Mv}));iE=new sE.NodeTracerProvider({resource:i}),Nv=new gH.OTLPTraceExporter({url:process.env.REDWOOD_REDIRECT_TELEMETRY||"https://quark.quantumparticle.io/v1/traces"}),Lv=new sE.BatchSpanProcessor(Nv),iE.addSpanProcessor(Lv),iE.register(),process.on("SIGTERM",async()=>{await or()})}async function or(){try{Oc.trace.getActiveSpan()?.end(),await iE?.shutdown(),await Lv?.shutdown(),await Nv?.shutdown()}catch{}}function Dr(r){Oc.trace.getActiveSpan()?.setStatus({code:Wi.ERROR,message:r.toString().split(`
|
|
583
583
|
`)[0]}),Oc.trace.getActiveSpan()?.recordException(r)}var AH="Initial commit",{telemetry:mEe}=Xc(Bp(process.argv),{boolean:["telemetry"],default:{telemetry:process.env.REDWOOD_DISABLE_TELEMETRY===void 0||process.env.REDWOOD_DISABLE_TELEMETRY===""}}),Ye=new ut.RedwoodTUI;function gEe(){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 EEe(r){let e=new ut.ReactiveTUIContent({mode:"text",content:"Checking node and yarn compatibility",spinner:{enabled:!0}});Ye.startReactive(e);let[t,n]=await _Ee(r);if(t){e.update({spinner:{enabled:!1},content:`${ut.RedwoodStyling.green("\u2714")} Compatibility checks passed`}),Ye.stopReactive();return}if(!t){xv.default.lt(n.node.version.version,xv.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,Lf.terminalLink)("How to - Using nvm","https://redwoodjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Using nvm https://redwoodjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Lf.terminalLink)("Tutorial - Prerequisites","https://redwoodjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://redwoodjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
|
|
584
584
|
`)),Dr("Compatibility checks failed"),await or(),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,Lf.terminalLink)("How to - Use nvm","https://redwoodjs.com/docs/how-to/using-nvm",{fallback:()=>"How to - Use nvm https://redwoodjs.com/docs/how-to/using-nvm"})}`,` See: ${(0,Lf.terminalLink)("Tutorial - Prerequisites","https://redwoodjs.com/docs/tutorial/chapter1/prerequisites",{fallback:()=>"Tutorial - Prerequisites https://redwoodjs.com/docs/tutorial/chapter1/prerequisites"})}`].join(`
|
|
585
585
|
`));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"&&(Dr("User quit after engine check error"),await or(),process.exit(0))}catch{Dr("User cancelled install at engine check error"),await or(),process.exit(1)}}}function _Ee(r){return new Promise(e=>{let{engines:t}=Oi.default.readJSONSync(Zn.join(r,"package.json"));(0,TH.default)(t,(n,s)=>e([s.isSatisfied,s.versions]))})}async function SEe(r,{templateDir:e,overwrite:t}){let n=r,s=new ut.ReactiveTUIContent({mode:"text",content:"Creating project files",spinner:{enabled:!0}});return Ye.startReactive(s),n=await Uv(n,{overwrite:t}),Oi.default.ensureDirSync(Zn.dirname(n)),Oi.default.copySync(e,n,{overwrite:t}),Oi.default.renameSync(Zn.join(n,"gitignore.template"),Zn.join(n,".gitignore")),Oi.default.ensureDirSync(Zn.join(n,".redwood")),Oi.default.writeFileSync(Zn.join(n,".redwood","telemetry.txt"),Mv),s.update({spinner:{enabled:!1},content:`${ut.RedwoodStyling.green("\u2714")} Project files created`}),Ye.stopReactive(),n}async function TEe(r){let e=new ut.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,oE.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 ${ut.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": "0.
|
|
3
|
+
"version": "0.3.1-next.0+80dae4601",
|
|
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": "0.
|
|
30
|
-
"@cedarjs/tui": "0.
|
|
29
|
+
"@cedarjs/framework-tools": "0.3.1-next.1",
|
|
30
|
+
"@cedarjs/tui": "0.3.1-next.0+80dae4601",
|
|
31
31
|
"@opentelemetry/api": "1.8.0",
|
|
32
32
|
"@opentelemetry/exporter-trace-otlp-http": "0.49.1",
|
|
33
33
|
"@opentelemetry/resources": "1.22.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "80dae4601b6ceb1c13d5477e2664ec1926d0052e"
|
|
57
57
|
}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@cedarjs/core": "0.
|
|
11
|
-
"@cedarjs/project-config": "0.
|
|
12
|
-
"@cedarjs/testing": "0.
|
|
10
|
+
"@cedarjs/core": "0.3.1-next.1",
|
|
11
|
+
"@cedarjs/project-config": "0.3.1-next.1",
|
|
12
|
+
"@cedarjs/testing": "0.3.1-next.1"
|
|
13
13
|
},
|
|
14
14
|
"eslintConfig": {
|
|
15
15
|
"extends": "@cedarjs/eslint-config",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@cedarjs/forms": "0.
|
|
15
|
-
"@cedarjs/router": "0.
|
|
16
|
-
"@cedarjs/web": "0.
|
|
14
|
+
"@cedarjs/forms": "0.3.1-next.1",
|
|
15
|
+
"@cedarjs/router": "0.3.1-next.1",
|
|
16
|
+
"@cedarjs/web": "0.3.1-next.1",
|
|
17
17
|
"react": "18.3.1",
|
|
18
18
|
"react-dom": "18.3.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@cedarjs/vite": "0.
|
|
21
|
+
"@cedarjs/vite": "0.3.1-next.1",
|
|
22
22
|
"@types/react": "^18.2.55",
|
|
23
23
|
"@types/react-dom": "^18.2.19"
|
|
24
24
|
}
|