Skip to content

Commit 7c294da

Browse files
committed
chore: wip
1 parent d8cd62a commit 7c294da

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

.stacks/core/actions/src/helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function parseOptions(options?: ActionOptions) {
1313
if (key.length === 1)
1414
return `-${key}=${value}`
1515

16-
if (typeof value === 'boolean' && value) // if the value is a boolean and true, just return the key
16+
if (typeof value === 'boolean' && value) // if the value is `true`, just return the key
1717
return `--${key}`
1818

1919
return `--${key}=${value}`

.stacks/core/cli/src/exec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export async function exec(command: string | string[], options?: CliOptions): Pr
3333
cwd: options?.cwd || import.meta.dir,
3434
onExit(subprocess, exitCode, signalCode, error) {
3535
if (exitCode !== ExitCode.Success && exitCode) {
36-
handleError(new Error(
37-
`Failed to execute command: ${cmd.join(' ')}`,
38-
))
36+
handleError(`Failed to execute command: ${cmd.join(' ')}`)
3937
}
4038
},
4139
})

.stacks/core/config/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { log, runCommand } from '@stacksjs/cli'
22

3-
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external vite --external @stacksjs/validation --external @stacksjs/utils', {
3+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external vite --external @stacksjs/validation --external @stacksjs/utils --external @stacksjs/env', {
44
cwd: import.meta.dir,
55
})
66

.stacks/core/error-handling/src/handler.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export class ErrorHandler {
3838
}
3939
}
4040

41-
export function handleError(err: StacksError, options?: any): StacksError {
41+
export function handleError(err: StacksError | string, options?: any): StacksError {
42+
if (typeof err === 'string')
43+
return ErrorHandler.handle(new Error(err), options)
44+
4245
return ErrorHandler.handle(err, options)
4346
}
4447

.stacks/core/eslint-plugin-stacks/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { log, runCommand } from '@stacksjs/cli'
22

3-
const result = await runCommand('bun build ./src/index.ts --outdir dist --external eslint-config-stacksjs --format esm --target bun', {
3+
const result = await runCommand('bun build ./src/index.ts --outdir dist --external eslint-plugin-stacksjs --format esm --target bun', {
44
cwd: import.meta.dir,
55
})
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from 'eslint-plugin-stacksjs'
1+
export * from '../../eslint-plugin-stacksjs/src/index'

.stacks/core/utils/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { log, runCommand } from '@stacksjs/cli'
22

3-
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/config --external @stacksjs/cli --external @stacksjs/path --external @stacksjs/storage --external @stacksjs/arrays --external @stacksjs/types --external export-size --external yaml --external js-yaml --external vue --external rimraf --external semver --external @dinero.js/currencies --external dinero.js --external neverthrow --external macroable --external hookable --external perfect-debounce --external vue-demi --external @vueuse/shared --external @vueuse/math --external p-limit --external @vueuse/core --external @unhead/shared --external @unhead/dom --external unhead --external @unhead/vue --external @unhead/ssr --target node', {
3+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/config --external @stacksjs/cli --external @stacksjs/path --external @stacksjs/storage --external @stacksjs/arrays --external @stacksjs/types --external @stacksjs/actions --external @stacksjs/env --external export-size --external yaml --external js-yaml --external vue --external rimraf --external semver --external @dinero.js/currencies --external dinero.js --external neverthrow --external macroable --external hookable --external perfect-debounce --external vue-demi --external @vueuse/shared --external @vueuse/math --external p-limit --external @vueuse/core --external @unhead/shared --external @unhead/dom --external unhead --external @unhead/vue --external @unhead/ssr --target node', {
44
cwd: import.meta.dir,
55
})
66

.stacks/scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ dirs.map(async (folder) => {
7171

7272
log.success('Build complete')
7373

74-
process.exit(ExitCode.Success)
74+
// process.exit(ExitCode.Success)

0 commit comments

Comments
 (0)