stacks 0.45.0 → 0.45.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/buddy/package.json +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/bump.ts +1 -4
- package/core/actions/src/helpers/utils.ts +1 -1
- package/core/actions/src/lint-fix.ts +1 -1
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/build/package.json +1 -1
- package/core/cache/package.json +1 -1
- package/core/cli/package.json +1 -1
- package/core/cli/src/actions/run.ts +2 -2
- package/core/cli/src/helpers.ts +5 -2
- package/core/cloud/package.json +1 -1
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/dashboard/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/docs/package.json +1 -1
- package/core/domains/package.json +1 -1
- package/core/drivers/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/package.json +1 -1
- package/core/modules/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/payments/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/testing/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/types/src/cli.ts +9 -0
- package/core/ui/package.json +1 -1
- package/core/utils/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/package.json +2 -2
package/buddy/package.json
CHANGED
package/core/actions/src/bump.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { runCommand } from '@stacksjs/cli'
|
|
2
2
|
import { frameworkPath } from '@stacksjs/path'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
await runCommand(
|
|
5
5
|
'npx bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute \'pnpm run changelog\' --all',
|
|
6
6
|
{ debug: true, cwd: frameworkPath(), shell: true },
|
|
7
7
|
)
|
|
8
|
-
|
|
9
|
-
if (result.isErr())
|
|
10
|
-
console.error(result.error)
|
|
@@ -14,7 +14,7 @@ import { err } from '@stacksjs/error-handling'
|
|
|
14
14
|
*/
|
|
15
15
|
export async function runAction(action: string, options?: CliOptions): Promise<Result<CommandResult<string>, Error> | Err<CommandResult<string>, string>> {
|
|
16
16
|
if (!hasAction(action))
|
|
17
|
-
return err(`The specified action "${action}" does not exist
|
|
17
|
+
return err(`The specified action "${action}" does not exist.`)
|
|
18
18
|
|
|
19
19
|
const cmd = `npx esno ${actionsPath(`${action}.ts`)}`
|
|
20
20
|
|
|
@@ -4,5 +4,5 @@ import { projectPath } from '@stacksjs/path'
|
|
|
4
4
|
import { Action } from '@stacksjs/types'
|
|
5
5
|
|
|
6
6
|
log.info('Linting your project.')
|
|
7
|
-
await runAction(Action.FixLintIssues, {
|
|
7
|
+
await runAction(Action.FixLintIssues, { cwd: projectPath(), shouldShowSpinner: true, spinnerText: 'Linting...' })
|
|
8
8
|
log.success('Linted your project.')
|
package/core/ai/package.json
CHANGED
package/core/alias/package.json
CHANGED
package/core/arrays/package.json
CHANGED
package/core/auth/package.json
CHANGED
package/core/build/package.json
CHANGED
package/core/cache/package.json
CHANGED
package/core/cli/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { ResultAsync, err } from '@stacksjs/error-handling'
|
|
|
5
5
|
import { projectPath } from '@stacksjs/path'
|
|
6
6
|
import { italic } from '@stacksjs/cli'
|
|
7
7
|
import { spawn } from '../command'
|
|
8
|
-
import {
|
|
8
|
+
import { startSpinner } from '../helpers'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Execute a command.
|
|
@@ -79,7 +79,7 @@ export async function runCommands(commands: string[], options?: CliOptions): Pro
|
|
|
79
79
|
|
|
80
80
|
function determineSpinner(options?: CliOptions): Spinner | undefined {
|
|
81
81
|
if (!determineDebugMode(options))
|
|
82
|
-
return
|
|
82
|
+
return startSpinner(options?.spinnerText)
|
|
83
83
|
|
|
84
84
|
return undefined
|
|
85
85
|
}
|
package/core/cli/src/helpers.ts
CHANGED
|
@@ -44,9 +44,12 @@ export function outro(text: string, options: OutroOptions, error?: Error | strin
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export function
|
|
47
|
+
export function startSpinner(text?: string) {
|
|
48
|
+
if (!text)
|
|
49
|
+
text = 'Executing...'
|
|
50
|
+
|
|
48
51
|
const spin = spinner({
|
|
49
|
-
text
|
|
52
|
+
text,
|
|
50
53
|
}).start()
|
|
51
54
|
|
|
52
55
|
setTimeout(() => {
|
package/core/cloud/package.json
CHANGED
package/core/config/package.json
CHANGED
package/core/docs/package.json
CHANGED
package/core/email/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/email",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.1",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
|
|
7
7
|
"author": "Chris Breuer",
|
package/core/git/package.json
CHANGED
package/core/health/package.json
CHANGED
package/core/lint/package.json
CHANGED
package/core/path/package.json
CHANGED
package/core/router/package.json
CHANGED
package/core/server/package.json
CHANGED
package/core/types/package.json
CHANGED
package/core/types/src/cli.ts
CHANGED
|
@@ -60,6 +60,15 @@ export interface CliOptions {
|
|
|
60
60
|
*/
|
|
61
61
|
shouldShowSpinner?: boolean | SpinnerOptions
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* **Spinner Text**
|
|
65
|
+
*
|
|
66
|
+
* The text to show when the spinner is shown.
|
|
67
|
+
*
|
|
68
|
+
* @default 'Executing...'
|
|
69
|
+
*/
|
|
70
|
+
spinnerText?: string
|
|
71
|
+
|
|
63
72
|
/**
|
|
64
73
|
* **Should the command be run inside a shell?**
|
|
65
74
|
*
|
package/core/ui/package.json
CHANGED
package/core/utils/package.json
CHANGED
package/core/x-ray/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.1",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks framework.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"web-types": "./web-types.json",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@stacksjs/buddy": "0.45.
|
|
68
|
+
"@stacksjs/buddy": "0.45.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"buddy": "esno ./buddy/src/cli.ts",
|