@stacksjs/cli 0.41.0 → 0.42.1

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/README.md CHANGED
@@ -25,7 +25,7 @@ import { command, log, prompts, spawn, spinner, ExitCode, italic } from '@stacks
25
25
  const stacks = command('stacks')
26
26
 
27
27
  stacks
28
- .command('example', 'A dummy command') // pnpm stacks example
28
+ .command('example', 'A dummy command') // pnpm buddy example
29
29
  .option('-i, --install', 'The install option', { default: true })
30
30
  .action(async (options) => {
31
31
  if (options.install)
@@ -100,7 +100,7 @@ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for
100
100
 
101
101
  ## 💪🏼 Contributing
102
102
 
103
- Please see [CONTRIBUTING](../../.github/CONTRIBUTING.md) for details.
103
+ Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
104
104
 
105
105
  ## 🏝 Community
106
106
 
@@ -110,7 +110,7 @@ For help, discussion about best practices, or any other conversation that would
110
110
 
111
111
  For casual chit-chat with others using this package:
112
112
 
113
- [Join the Open Web Discord Server](https://discord.ow3.org)
113
+ [Join the Stacks Discord Server](https://discord.ow3.org)
114
114
 
115
115
  ## 🙏🏼 Credits
116
116
 
package/dist/helpers.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { ExitCode } from "@stacksjs/types";
2
1
  import { version } from "../package.json";
3
2
  import { log } from "./console.mjs";
4
3
  import { spinner } from "./spinner.mjs";
@@ -13,23 +12,22 @@ export function intro(command, options) {
13
12
  return performance.now();
14
13
  }
15
14
  export function outro(text, options, error) {
16
- if (options.isError)
17
- log.error(error);
18
- else
15
+ if (options.isError) {
16
+ if (error)
17
+ log.error(error);
18
+ } else {
19
19
  log.success(text);
20
+ }
20
21
  if (options.startTime) {
21
22
  let time = performance.now() - options.startTime;
22
23
  if (options.useSeconds) {
23
24
  time = time / 1e3;
24
25
  time = Math.round(time * 100) / 100;
25
26
  }
26
- if (options.isError) {
27
+ if (options.isError)
27
28
  log.error(red(`in ${time}${options.useSeconds ? "s" : "ms"}`));
28
- process.exit(ExitCode.FatalError);
29
- } else {
29
+ else
30
30
  log.success(green(`Done in ${time}${options.useSeconds ? "s" : "ms"}`));
31
- process.exit(ExitCode.Success);
32
- }
33
31
  }
34
32
  }
35
33
  export function startAnimation() {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.41.0",
5
- "packageManager": "pnpm@7.16.0",
4
+ "version": "0.42.1",
5
+ "packageManager": "pnpm@7.17.0",
6
6
  "description": "The simple way to create beautiful CLIs.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -41,22 +41,23 @@
41
41
  ],
42
42
  "engines": {
43
43
  "node": ">=v18.12.1",
44
- "pnpm": ">=7.16.0"
44
+ "pnpm": ">=7.17.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@antfu/install-pkg": "^0.1.1",
48
- "@stacksjs/config": "0.41.0",
49
- "@stacksjs/path": "0.41.0",
50
- "@stacksjs/types": "0.41.0",
51
- "@stacksjs/x-ray": "0.41.0",
52
48
  "cac": "^6.7.14",
53
49
  "execa": "^6.1.0",
54
50
  "ora": "^6.1.2",
55
- "prompts": "^2.4.2"
51
+ "prompts": "^2.4.2",
52
+ "@stacksjs/config": "0.42.1",
53
+ "@stacksjs/path": "0.42.1",
54
+ "@stacksjs/types": "0.42.1",
55
+ "@stacksjs/x-ray": "0.42.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "esno": "^0.16.3",
59
- "mkdist": "^1.0.0"
59
+ "mkdist": "^1.0.0",
60
+ "@stacksjs/testing": "0.42.1"
60
61
  },
61
62
  "scripts": {
62
63
  "build": "mkdist -d",