@stacksjs/cli 0.45.1 → 0.46.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/README.md +1 -1
- package/dist/actions/run.d.ts +3 -2
- package/dist/helpers.mjs +2 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ async function install() {
|
|
|
51
51
|
try {
|
|
52
52
|
const spin = spinner('Running...').start()
|
|
53
53
|
setTimeout(() => {
|
|
54
|
-
spin.text = italic('This may take a
|
|
54
|
+
spin.text = italic('This may take a few moments...')
|
|
55
55
|
}, 5000)
|
|
56
56
|
await spawn('pnpm install')
|
|
57
57
|
spin.stop()
|
package/dist/actions/run.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CliOptions, CommandResult, Result } from '@stacksjs/types';
|
|
2
2
|
import type { Err } from '@stacksjs/error-handling';
|
|
3
|
+
import { ResultAsync } from '@stacksjs/error-handling';
|
|
3
4
|
/**
|
|
4
5
|
* Execute a command.
|
|
5
6
|
*
|
|
@@ -8,7 +9,7 @@ import type { Err } from '@stacksjs/error-handling';
|
|
|
8
9
|
* @param errorMsg The name of the error to throw if the command fails.
|
|
9
10
|
* @returns The result of the command.
|
|
10
11
|
*/
|
|
11
|
-
export declare function exec(command: string, options?: CliOptions):
|
|
12
|
+
export declare function exec(command: string, options?: CliOptions): ResultAsync<CommandResult<string>, Error>;
|
|
12
13
|
/**
|
|
13
14
|
* Run a command the Stacks way.
|
|
14
15
|
*
|
|
@@ -16,7 +17,7 @@ export declare function exec(command: string, options?: CliOptions): any;
|
|
|
16
17
|
* @param options The options to pass to the command.
|
|
17
18
|
* @returns The result of the command.
|
|
18
19
|
*/
|
|
19
|
-
export declare function runCommand(command: string, options?: CliOptions): Promise<
|
|
20
|
+
export declare function runCommand(command: string, options?: CliOptions): Promise<Result<CommandResult<string>, Error>>;
|
|
20
21
|
/**
|
|
21
22
|
* Run many commands—the Stacks way.
|
|
22
23
|
*
|
package/dist/helpers.mjs
CHANGED
|
@@ -37,8 +37,8 @@ export function startSpinner(text) {
|
|
|
37
37
|
text
|
|
38
38
|
}).start();
|
|
39
39
|
setTimeout(() => {
|
|
40
|
-
spin.text = italic("This may take a
|
|
40
|
+
spin.text = italic("This may take a few moments...");
|
|
41
41
|
spin.spinner = "clock";
|
|
42
|
-
},
|
|
42
|
+
}, 7500);
|
|
43
43
|
return spin;
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.46.0",
|
|
5
|
+
"packageManager": "pnpm@7.19.0",
|
|
6
6
|
"description": "The simple way to create beautiful CLIs.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=v18.12.1",
|
|
44
|
-
"pnpm": ">=7.
|
|
44
|
+
"pnpm": ">=7.19.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@antfu/install-pkg": "^0.1.1",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"execa": "^6.1.0",
|
|
50
50
|
"ora": "^6.1.2",
|
|
51
51
|
"prompts": "^2.4.2",
|
|
52
|
-
"@stacksjs/config": "0.
|
|
53
|
-
"@stacksjs/error-handling": "0.
|
|
54
|
-
"@stacksjs/logging": "0.
|
|
55
|
-
"@stacksjs/path": "0.
|
|
56
|
-
"@stacksjs/types": "0.
|
|
52
|
+
"@stacksjs/config": "0.46.0",
|
|
53
|
+
"@stacksjs/error-handling": "0.46.0",
|
|
54
|
+
"@stacksjs/logging": "0.46.0",
|
|
55
|
+
"@stacksjs/path": "0.46.0",
|
|
56
|
+
"@stacksjs/types": "0.46.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"esno": "^0.16.3",
|
|
60
60
|
"mkdist": "^1.0.0",
|
|
61
|
-
"@stacksjs/testing": "0.
|
|
61
|
+
"@stacksjs/testing": "0.46.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "mkdist -d",
|