@stacksjs/cli 0.48.3 → 0.49.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.mjs +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.mjs +4 -3
- package/package.json +12 -11
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 few moments...')
|
|
54
|
+
spin.text = italic('Running. This may take a few moments...')
|
|
55
55
|
}, 5000)
|
|
56
56
|
await spawn('pnpm install')
|
|
57
57
|
spin.stop()
|
package/dist/actions/run.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { determineDebugMode } from "@stacksjs/config";
|
|
2
2
|
import { ResultAsync, err } from "@stacksjs/error-handling";
|
|
3
3
|
import { projectPath } from "@stacksjs/path";
|
|
4
|
-
import { italic } from "
|
|
4
|
+
import { italic } from "../index.mjs";
|
|
5
5
|
import { spawn } from "../command.mjs";
|
|
6
6
|
import { startSpinner } from "../helpers.mjs";
|
|
7
7
|
export function exec(command, options) {
|
package/dist/helpers.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { IntroOptions, OutroOptions } from '@stacksjs/types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Prints the intro message.
|
|
4
4
|
*/
|
|
5
|
-
export declare function intro(command: string, options?: IntroOptions): number | undefined
|
|
5
|
+
export declare function intro(command: string, options?: IntroOptions): Promise<number | undefined>;
|
|
6
6
|
/**
|
|
7
7
|
* Prints the outro message.
|
|
8
8
|
*/
|
package/dist/helpers.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { frameworkVersion } from "@stacksjs/utils";
|
|
2
2
|
import { log } from "./console.mjs";
|
|
3
3
|
import { spinner } from "./spinner.mjs";
|
|
4
4
|
import { bgCyan, bold, cyan, dim, green, italic, red } from "./utilities.mjs";
|
|
5
|
-
export function intro(command, options) {
|
|
5
|
+
export async function intro(command, options) {
|
|
6
|
+
const version = await frameworkVersion();
|
|
6
7
|
console.log();
|
|
7
8
|
console.log(cyan(bold("Stacks CLI")) + dim(` v${version}`));
|
|
8
9
|
console.log();
|
|
@@ -37,7 +38,7 @@ export function startSpinner(text) {
|
|
|
37
38
|
text
|
|
38
39
|
}).start();
|
|
39
40
|
setTimeout(() => {
|
|
40
|
-
spin.text = italic("This may take a few moments...");
|
|
41
|
+
spin.text = italic("Running. This may take a few moments...");
|
|
41
42
|
spin.spinner = "clock";
|
|
42
43
|
}, 7500);
|
|
43
44
|
return spin;
|
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.49.0",
|
|
5
|
+
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The simple way to create beautiful CLIs.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"README.md"
|
|
41
41
|
],
|
|
42
42
|
"engines": {
|
|
43
|
-
"node": ">=v18.
|
|
44
|
-
"pnpm": ">=7.
|
|
43
|
+
"node": ">=v18.13.0",
|
|
44
|
+
"pnpm": ">=7.25.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@antfu/install-pkg": "^0.1.1",
|
|
@@ -49,16 +49,17 @@
|
|
|
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.49.0",
|
|
53
|
+
"@stacksjs/error-handling": "0.49.0",
|
|
54
|
+
"@stacksjs/logging": "0.49.0",
|
|
55
|
+
"@stacksjs/path": "0.49.0",
|
|
56
|
+
"@stacksjs/types": "0.49.0",
|
|
57
|
+
"@stacksjs/utils": "0.49.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"esno": "^0.16.3",
|
|
60
|
-
"mkdist": "^1.
|
|
61
|
-
"@stacksjs/testing": "0.
|
|
61
|
+
"mkdist": "^1.1.0",
|
|
62
|
+
"@stacksjs/testing": "0.49.0"
|
|
62
63
|
},
|
|
63
64
|
"scripts": {
|
|
64
65
|
"build": "mkdist -d",
|