Skip to content

Commit 1006340

Browse files
committed
chore: wip
1 parent 81364c0 commit 1006340

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.stacks/core/ai/build.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { runCommand } from '../cli/src/run'
1+
import { runCommand } from '@stacksjs/cli'
22

33
const command: string = 'bun build ./src/index.ts --outdir dist --format esm'
4+
45
const result = await runCommand(command, import.meta.dir)
56

6-
if (result.isErr()) {
7+
if (result.isErr())
78
console.error(result.error)
8-
}
9-
else {
9+
else
1010
// eslint-disable-next-line no-console
1111
console.log('Build complete')
12-
}
1312

13+
// alternatively, the equivalent of the above using bun directly
1414
// const cmd: string[] = command.split(' ')
1515
// const proc = Bun.spawn(cmd, {
1616
// stdout: 'inherit',
@@ -22,10 +22,10 @@ else {
2222
// }
2323
// },
2424
// })
25-
25+
//
2626
// const exited = await proc.exited
2727

2828
// if (exited === 0)
2929
// console.log('Build complete')
30-
31-
// console.log(`Failed to execute command: ${cmd.join(' ')}`, proc.exited)
30+
// else
31+
// console.log(`Failed to execute command: ${cmd.join(' ')}`, proc.exited)

.stacks/ide/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ highlightjs
9393
hookable
9494
htmlnanorc
9595
hubot
96+
huggingface
9697
huskyrc
9798
iconify
9899
iife

0 commit comments

Comments
 (0)