File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- import { runCommand } from '.. /cli/src/run '
1
+ import { runCommand } from '@stacksjs /cli'
2
2
3
3
const command : string = 'bun build ./src/index.ts --outdir dist --format esm'
4
+
4
5
const result = await runCommand ( command , import . meta. dir )
5
6
6
- if ( result . isErr ( ) ) {
7
+ if ( result . isErr ( ) )
7
8
console . error ( result . error )
8
- }
9
- else {
9
+ else
10
10
// eslint-disable-next-line no-console
11
11
console . log ( 'Build complete' )
12
- }
13
12
13
+ // alternatively, the equivalent of the above using bun directly
14
14
// const cmd: string[] = command.split(' ')
15
15
// const proc = Bun.spawn(cmd, {
16
16
// stdout: 'inherit',
@@ -22,10 +22,10 @@ else {
22
22
// }
23
23
// },
24
24
// })
25
-
25
+ //
26
26
// const exited = await proc.exited
27
27
28
28
// if (exited === 0)
29
29
// 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)
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ highlightjs
93
93
hookable
94
94
htmlnanorc
95
95
hubot
96
+ huggingface
96
97
huskyrc
97
98
iconify
98
99
iife
You can’t perform that action at this time.
0 commit comments