@vm0/cli 1.12.0 → 1.13.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/index.js +15 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -13486,18 +13486,18 @@ var pushCommand = new Command4().name("push").description("Push local files to c
|
|
|
13486
13486
|
console.log(chalk6.cyan(`Pushing volume: ${config2.name}`));
|
|
13487
13487
|
console.log(chalk6.gray("Collecting files..."));
|
|
13488
13488
|
const files = await getAllFiles(cwd);
|
|
13489
|
-
if (files.length === 0) {
|
|
13490
|
-
console.log(chalk6.yellow("No files to upload"));
|
|
13491
|
-
return;
|
|
13492
|
-
}
|
|
13493
13489
|
let totalSize = 0;
|
|
13494
13490
|
for (const file2 of files) {
|
|
13495
13491
|
const stats = await fs.promises.stat(file2);
|
|
13496
13492
|
totalSize += stats.size;
|
|
13497
13493
|
}
|
|
13498
|
-
|
|
13499
|
-
chalk6.gray(
|
|
13500
|
-
|
|
13494
|
+
if (files.length === 0) {
|
|
13495
|
+
console.log(chalk6.gray("No files found (empty volume)"));
|
|
13496
|
+
} else {
|
|
13497
|
+
console.log(
|
|
13498
|
+
chalk6.gray(`Found ${files.length} files (${formatBytes(totalSize)})`)
|
|
13499
|
+
);
|
|
13500
|
+
}
|
|
13501
13501
|
console.log(chalk6.gray("Compressing files..."));
|
|
13502
13502
|
const zip = new AdmZip();
|
|
13503
13503
|
for (const file2 of files) {
|
|
@@ -13821,18 +13821,18 @@ var pushCommand2 = new Command8().name("push").description("Push local files to
|
|
|
13821
13821
|
console.log(chalk9.cyan(`Pushing artifact: ${config2.name}`));
|
|
13822
13822
|
console.log(chalk9.gray("Collecting files..."));
|
|
13823
13823
|
const files = await getAllFiles2(cwd);
|
|
13824
|
-
if (files.length === 0) {
|
|
13825
|
-
console.log(chalk9.yellow("No files to upload"));
|
|
13826
|
-
return;
|
|
13827
|
-
}
|
|
13828
13824
|
let totalSize = 0;
|
|
13829
13825
|
for (const file2 of files) {
|
|
13830
13826
|
const stats = await fs4.promises.stat(file2);
|
|
13831
13827
|
totalSize += stats.size;
|
|
13832
13828
|
}
|
|
13833
|
-
|
|
13834
|
-
chalk9.gray(
|
|
13835
|
-
|
|
13829
|
+
if (files.length === 0) {
|
|
13830
|
+
console.log(chalk9.gray("No files found (empty artifact)"));
|
|
13831
|
+
} else {
|
|
13832
|
+
console.log(
|
|
13833
|
+
chalk9.gray(`Found ${files.length} files (${formatBytes3(totalSize)})`)
|
|
13834
|
+
);
|
|
13835
|
+
}
|
|
13836
13836
|
console.log(chalk9.gray("Compressing files..."));
|
|
13837
13837
|
const zip = new AdmZip3();
|
|
13838
13838
|
for (const file2 of files) {
|
|
@@ -13981,7 +13981,7 @@ var artifactCommand = new Command10().name("artifact").description("Manage cloud
|
|
|
13981
13981
|
|
|
13982
13982
|
// src/index.ts
|
|
13983
13983
|
var program = new Command11();
|
|
13984
|
-
program.name("vm0").description("VM0 CLI - A modern build tool").version("1.
|
|
13984
|
+
program.name("vm0").description("VM0 CLI - A modern build tool").version("1.13.0");
|
|
13985
13985
|
program.command("hello").description("Say hello from the App").action(() => {
|
|
13986
13986
|
console.log(chalk11.blue("Welcome to the VM0 CLI!"));
|
|
13987
13987
|
console.log(chalk11.green(`Core says: ${FOO}`));
|