@stacksjs/cli 0.52.2 → 0.52.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -5
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -31,11 +31,13 @@ const spinner = ora;
31
31
 
32
32
  async function intro(command, options) {
33
33
  const version = await frameworkVersion();
34
- console.log();
35
- console.log(cyan(bold("Stacks CLI")) + dim(` v${version}`));
36
- console.log();
37
- log.info(`Preparing to run the ${bgCyan(italic(bold(` ${command} `)))} command.`);
38
- if (options?.showPerformance === false)
34
+ if (options?.quiet === false) {
35
+ console.log();
36
+ console.log(cyan(bold("Stacks CLI")) + dim(` v${version}`));
37
+ console.log();
38
+ }
39
+ log.info(`Preparing to run the ${bgCyan(italic(bold(` ${command} `)))} command`);
40
+ if (options?.showPerformance === false || options?.quiet)
39
41
  return;
40
42
  return performance.now();
41
43
  }
@@ -54,6 +56,8 @@ function outro(text, options, error) {
54
56
  time = time / 1e3;
55
57
  time = Math.round(time * 100) / 100;
56
58
  }
59
+ if (options.quiet === false)
60
+ return;
57
61
  if (options.isError)
58
62
  log.error(red(`in ${time}${options.useSeconds ? "s" : "ms"}`));
59
63
  else
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.52.2",
4
+ "version": "0.52.3",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The simple way to create beautiful CLIs.",
7
7
  "author": "Chris Breuer",
@@ -50,18 +50,18 @@
50
50
  "cac": "^6.7.14",
51
51
  "execa": "^7.1.1",
52
52
  "ora": "^6.3.1",
53
- "@stacksjs/error-handling": "0.52.2",
54
- "@stacksjs/logging": "0.52.2",
55
- "@stacksjs/path": "0.52.2",
56
- "@stacksjs/types": "0.52.2",
57
- "@stacksjs/utils": "0.52.2",
58
- "@stacksjs/config": "0.52.2"
53
+ "@stacksjs/error-handling": "0.52.3",
54
+ "@stacksjs/logging": "0.52.3",
55
+ "@stacksjs/config": "0.52.3",
56
+ "@stacksjs/path": "0.52.3",
57
+ "@stacksjs/types": "0.52.3",
58
+ "@stacksjs/utils": "0.52.3"
59
59
  },
60
60
  "dependencies": {
61
61
  "kolorist": "1.8.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@stacksjs/development": "0.52.2"
64
+ "@stacksjs/development": "0.52.3"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",