@junobuild/cli 0.0.48 → 0.0.49

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
@@ -220,7 +220,7 @@ Are you sure the folder containing your built app (the "source" tag in the juno.
220
220
  ${r}`,"utf-8")},kBe=async()=>{await TBe(iY,{recursive:!0}),await Ws({command:"ic-wasm",args:[Cl(nY,"satellite.wasm"),"-o",As,"shrink"]}),await Ws({command:"ic-wasm",args:[As,"-o",As,"metadata","candid:service","-f",oY,"-v","public"]}),await Ws({command:"ic-wasm",args:[As,"-o",As,"metadata","juno:build","-d","extended","-v","public"]}),await Ws({command:"ic-wasm",args:[As,"-o",As,"metadata","supported_certificate_versions","-d",'"1,2"',"-v","public"]})},PBe=async e=>{let t=`${As}.gz`,{size:r}=await QBe(t),n=i=>Intl.NumberFormat("en-US",{maximumSignificantDigits:2}).format(i/(1024*1024));e.succeed(`${(0,Lo.green)("Success!")}
221
221
 
222
222
  The satellite has been compiled.
223
- Output file: ${(0,Lo.yellow)(`${RBe(process.cwd(),t)}`)} ${(0,Lo.grey)(`(${n(r)}MB)`)}`)},qBe=async()=>{let{valid:e}=await eY();return e===!1?{valid:e}:(e==="error"&&(await Dn(`The ${(0,Lo.magenta)("ic-wasm")} ${(0,Lo.yellow)(`v${Wp}`)} tool is required to build a satellite but appears to be not available. Would you like to install it on your machine?`),await Ma({command:"cargo",args:["install",`ic-wasm@${Wp}`]})),{valid:!0})},MBe=async()=>{let{valid:e}=await tY();return e===!1?{valid:e}:(e==="error"&&(await Dn(`The ${(0,Lo.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 Ma({command:"cargo",args:["install","candid-extractor"]})),{valid:!0})};var $2=Ee(Ue(),1);import{existsSync as cY}from"node:fs";var uY="../templates/docker",lY=process.cwd(),fY=async()=>{let{valid:e}=await q2();e==="error"||!e||(await M2(),await $Be(),await jBe(),await Ma({command:"docker",args:["compose","up"]}))},pY=async()=>{let{valid:e}=await q2();e==="error"||!e||(await M2(),await Ma({command:"docker",args:["compose","stop"]}))},$Be=async()=>{cY("juno.dev.json")||(await Dn(`A config file is required for development. Would you like the CLI to create a default ${(0,$2.magenta)("juno.dev.json")} for you?`),await $a({template:"juno.dev.json",sourceFolder:uY,destinationFolder:lY}))},jBe=async()=>{cY("docker-compose.yml")||(await Dn(`The CLI utilizes Docker Compose, which is handy for customizing configurations. Would you like the CLI to generate a default ${(0,$2.magenta)("docker-compose.yml")} file for you?`),await $a({template:"docker-compose.yml",sourceFolder:uY,destinationFolder:lY}))};var Jc=Ee(Ue(),1);import{mkdir as GBe}from"node:fs/promises";import{join as xY}from"node:path";var Be=Ee(Ue(),1);var Gb="0.0.48";var UBe=` __ __ __ __ _ ____
223
+ Output file: ${(0,Lo.yellow)(`${RBe(process.cwd(),t)}`)} ${(0,Lo.grey)(`(${n(r)}MB)`)}`)},qBe=async()=>{let{valid:e}=await eY();return e===!1?{valid:e}:(e==="error"&&(await Dn(`The ${(0,Lo.magenta)("ic-wasm")} ${(0,Lo.yellow)(`v${Wp}`)} tool is required to build a satellite but appears to be not available. Would you like to install it on your machine?`),await Ma({command:"cargo",args:["install",`ic-wasm@${Wp}`]})),{valid:!0})},MBe=async()=>{let{valid:e}=await tY();return e===!1?{valid:e}:(e==="error"&&(await Dn(`The ${(0,Lo.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 Ma({command:"cargo",args:["install","candid-extractor"]})),{valid:!0})};var $2=Ee(Ue(),1);import{existsSync as cY}from"node:fs";var uY="../templates/docker",lY=process.cwd(),fY=async()=>{let{valid:e}=await q2();e==="error"||!e||(await M2(),await $Be(),await jBe(),await Ma({command:"docker",args:["compose","up"]}))},pY=async()=>{let{valid:e}=await q2();e==="error"||!e||(await M2(),await Ma({command:"docker",args:["compose","stop"]}))},$Be=async()=>{cY("juno.dev.json")||(await Dn(`A config file is required for development. Would you like the CLI to create a default ${(0,$2.magenta)("juno.dev.json")} for you?`),await $a({template:"juno.dev.json",sourceFolder:uY,destinationFolder:lY}))},jBe=async()=>{cY("docker-compose.yml")||(await Dn(`The CLI utilizes Docker Compose, which is handy for customizing configurations. Would you like the CLI to generate a default ${(0,$2.magenta)("docker-compose.yml")} file for you?`),await $a({template:"docker-compose.yml",sourceFolder:uY,destinationFolder:lY}))};var Jc=Ee(Ue(),1);import{mkdir as GBe}from"node:fs/promises";import{join as xY}from"node:path";var Be=Ee(Ue(),1);var Gb="0.0.49";var UBe=` __ __ __ __ _ ____
224
224
  __) || | || \\| |/ \\
225
225
  \\___/ \\___/ |_|\\__|\\____/`,ja=`${UBe} CLI ${(0,Be.grey)(`v${Gb}`)}`,Hb=`
226
226
  ${ja}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
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.15"
15
+ junobuild-satellite = "0.0.15-patch.1"
16
16
  junobuild-macros = "0.0.1"
17
17
  junobuild-utils = "0.0.1"
18
18