@nexushub/client 0.6.9 → 0.7.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/cli.cjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -156,7 +156,7 @@ instead of making network calls. Edit the JSON files directly, then run
|
|
|
156
156
|
Empty schema values are intentional placeholders \u2014 fill them with your content.
|
|
157
157
|
`),W.includes("type_gen")&&(Ae.pages?.length||0)+(Ae.collections?.length||0)>0){let H=tc(Ae),Z=E.default.resolve(n,"types/nexus.d.ts");await R.default.ensureDir(E.default.dirname(Z)),await R.default.writeFile(Z,H),console.log(S(" + Generated types/nexus.d.ts"))}await Id(pe),D.succeed(Y("Workspace scaffolded")),console.log(`
|
|
158
158
|
`+w.bold.white(` \u2463 Provisioning Dependencies
|
|
159
|
-
`));let Ie=Q("Installing SDK and Edge Adapters...").start(),nr=["@nexushub/client"],Lt=[];i.id==="nextjs"&&!nc()&&Lt.push("@opennextjs/cloudflare@^1.19.4");let gn=a==="npm"?"npm install":`${a} add`,Io=a==="npm"?"npm install -D":`${a} add -D`,Nr=a==="npm"?"npx":a==="bun"?"bunx":"pnpx",yn=(H,Z)=>{try{(0,Ke.execSync)(`${H} ${Z.join(" ")}`,{stdio:"pipe"})}catch(me){if(a==="npm")try{(0,Ke.execSync)(`${H} ${Z.join(" ")} --legacy-peer-deps`,{stdio:"pipe"});return}catch{throw me}throw me}};try{yn(gn,nr),Lt.length>0&&(yn(Io,Lt),(0,Ke.execSync)(`${Nr} opennextjs-cloudflare migrate`,{stdio:"
|
|
159
|
+
`));let Ie=Q("Installing SDK and Edge Adapters...").start(),nr=["@nexushub/client"],Lt=[];i.id==="nextjs"&&!nc()&&Lt.push("@opennextjs/cloudflare@^1.19.4");let gn=a==="npm"?"npm install":`${a} add`,Io=a==="npm"?"npm install -D":`${a} add -D`,Nr=a==="npm"?"npx":a==="bun"?"bunx":"pnpx",yn=(H,Z)=>{try{(0,Ke.execSync)(`${H} ${Z.join(" ")}`,{stdio:"pipe"})}catch(me){if(a==="npm")try{(0,Ke.execSync)(`${H} ${Z.join(" ")} --legacy-peer-deps`,{stdio:"pipe"});return}catch{throw me}throw me}};try{yn(gn,nr),Lt.length>0&&(yn(Io,Lt),R.default.existsSync(E.default.resolve(process.cwd(),"wrangler.json"))||R.default.existsSync(E.default.resolve(process.cwd(),"wrangler.toml"))?console.log(S(" - Wrangler configuration detected. Skipping adapter migration.")):(0,Ke.execSync)(`${Nr} opennextjs-cloudflare migrate`,{stdio:"pipe"})),Ie.succeed(Y("Dependencies successfully provisioned"))}catch(H){Ie.warn(le("Auto-installation encountered a conflict. See diagnostic logs below.")),H.stderr?(console.log(S(`
|
|
160
160
|
--- Installer Diagnostic Logs ---`)),console.log(J(H.stderr.toString().trim())),console.log(S(` ---------------------------------
|
|
161
161
|
`))):H.stdout&&console.log(S(H.stdout.toString().trim()+`
|
|
162
162
|
`))}console.log(`
|