@junobuild/cli 0.0.59 → 0.0.61

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/index.js CHANGED
@@ -2219,7 +2219,7 @@ Are you sure the folder containing your built app (the "source" tag in the confi
2219
2219
  ${r}`,"utf-8")},LFe=async()=>{await BFe(BX,{recursive:!0}),await Lu({command:"ic-wasm",args:[Qd(NX,"satellite.wasm"),"-o",Qo,"shrink"]}),await Lu({command:"ic-wasm",args:[Qo,"-o",Qo,"metadata","candid:service","-f",kX,"-v","public"]}),await Lu({command:"ic-wasm",args:[Qo,"-o",Qo,"metadata","juno:build","-d","extended","-v","public"]}),await Lu({command:"ic-wasm",args:[Qo,"-o",Qo,"metadata","supported_certificate_versions","-d",'"1,2"',"-v","public"]})},$Fe=async e=>{let t=`${Qo}.gz`,{size:r}=await NFe(t),n=i=>Intl.NumberFormat("en-US",{maximumSignificantDigits:2}).format(i/(1024*1024));e.succeed(`${(0,Ol.green)("Success!")}
2220
2220
 
2221
2221
  The satellite has been compiled.
2222
- Output file: ${(0,Ol.yellow)(`${kFe(process.cwd(),t)}`)} ${(0,Ol.grey)(`(${n(r)}MB)`)}`)},qFe=async()=>{let{valid:e}=await OX();return e===!1?{valid:e}:(e==="error"&&(await us(`The ${(0,Ol.magenta)("ic-wasm")} ${(0,Ol.yellow)(`v${sm}`)} tool is required to build a satellite but appears to be not available. Would you like to install it on your machine?`),await xc({command:"cargo",args:["install",`ic-wasm@${sm}`]})),{valid:!0})},UFe=async()=>{let{valid:e}=await IX();return e===!1?{valid:e}:(e==="error"&&(await us(`The ${(0,Ol.magenta)("candid-extractor")} tool is required to generate the API ("did file") of your custom satellite but appears to be not available. Would you like to install it on your machine?`),await xc({command:"cargo",args:["install","candid-extractor"]})),{valid:!0})};var qX=It(er(),1);import{existsSync as VFe}from"node:fs";import{writeFile as WFe}from"node:fs/promises";import{join as HFe}from"node:path";var MX={filename:Z0},LX=async()=>await Vv(MX),$X=()=>sh(MX);var UX="../templates/docker",VX=process.cwd(),WX=async()=>{let{valid:e}=await h3();e==="error"||!e||(await m3(),await GFe(),await zFe(),await xc({command:"docker",args:["compose","up"]}))},HX=async()=>{let{valid:e}=await h3();e==="error"||!e||(await m3(),await xc({command:"docker",args:["compose","stop"]}))},GFe=async()=>{if(await LX())return;await us("A config file is required for development. Would you like the CLI to create one for you?");let e=await Gv();await xp({template:`${Z0}.${e}`,sourceFolder:UX,destinationFolder:VX})},zFe=async()=>{if(VFe("docker-compose.yml"))return;await us(`The CLI utilizes Docker Compose, which is handy for customizing configurations. Would you like the CLI to generate a default ${(0,qX.magenta)("docker-compose.yml")} file for you?`);let{configType:e}=$X(),t=await ah({template:"docker-compose.yml",sourceFolder:UX}),r=`${Z0}.${e}`,n=t.replaceAll("<JUNO_DEV_CONFIG>",r);await WFe(HFe(VX,"docker-compose.yml"),n,"utf-8")};var jp=It(er(),1);import{mkdir as JFe}from"node:fs/promises";import{join as rQ}from"node:path";var Ot=It(er(),1);var YE="0.0.59";var YFe=` __ __ __ __ _ ____
2222
+ Output file: ${(0,Ol.yellow)(`${kFe(process.cwd(),t)}`)} ${(0,Ol.grey)(`(${n(r)}MB)`)}`)},qFe=async()=>{let{valid:e}=await OX();return e===!1?{valid:e}:(e==="error"&&(await us(`The ${(0,Ol.magenta)("ic-wasm")} ${(0,Ol.yellow)(`v${sm}`)} tool is required to build a satellite but appears to be not available. Would you like to install it on your machine?`),await xc({command:"cargo",args:["install",`ic-wasm@${sm}`]})),{valid:!0})},UFe=async()=>{let{valid:e}=await IX();return e===!1?{valid:e}:(e==="error"&&(await us(`The ${(0,Ol.magenta)("candid-extractor")} tool is required to generate the API ("did file") of your custom satellite but appears to be not available. Would you like to install it on your machine?`),await xc({command:"cargo",args:["install","candid-extractor"]})),{valid:!0})};var qX=It(er(),1);import{existsSync as VFe}from"node:fs";import{writeFile as WFe}from"node:fs/promises";import{join as HFe}from"node:path";var MX={filename:Z0},LX=async()=>await Vv(MX),$X=()=>sh(MX);var UX="../templates/docker",VX=process.cwd(),WX=async()=>{let{valid:e}=await h3();e==="error"||!e||(await m3(),await GFe(),await zFe(),await xc({command:"docker",args:["compose","up"]}))},HX=async()=>{let{valid:e}=await h3();e==="error"||!e||(await m3(),await xc({command:"docker",args:["compose","stop"]}))},GFe=async()=>{if(await LX())return;await us("A config file is required for development. Would you like the CLI to create one for you?");let e=await Gv();await xp({template:`${Z0}.${e}`,sourceFolder:UX,destinationFolder:VX})},zFe=async()=>{if(VFe("docker-compose.yml"))return;await us(`The CLI utilizes Docker Compose, which is handy for customizing configurations. Would you like the CLI to generate a default ${(0,qX.magenta)("docker-compose.yml")} file for you?`);let{configType:e}=$X(),t=await ah({template:"docker-compose.yml",sourceFolder:UX}),r=`${Z0}.${e}`,n=t.replaceAll("<JUNO_DEV_CONFIG>",r);await WFe(HFe(VX,"docker-compose.yml"),n,"utf-8")};var jp=It(er(),1);import{mkdir as JFe}from"node:fs/promises";import{join as rQ}from"node:path";var Ot=It(er(),1);var YE="0.0.61";var YFe=` __ __ __ __ _ ____
2223
2223
  __) || | || \\| |/ \\
2224
2224
  \\___/ \\___/ |_|\\__|\\____/`,Il=`${YFe} CLI ${(0,Ot.grey)(`v${YE}`)}`,JE=`
2225
2225
  ${Il}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "description": "The Juno command-line interface",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@ ic-cdk = "0.12.1"
12
12
  ic-cdk-macros = "0.8.1"
13
13
  serde = "1.0.190"
14
14
  serde_cbor = "0.11.2"
15
- junobuild-satellite = "0.0.16"
15
+ junobuild-satellite = "0.0.16-patch.2"
16
16
  junobuild-macros = "0.0.2"
17
17
  junobuild-utils = "0.0.1"
18
18