Skip to content

Commit 631b555

Browse files
chore: wip
1 parent c74e4b5 commit 631b555

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

packages/bun-queue/bin/cli.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* eslint-disable no-console */
2+
import { CLI } from '@stacksjs/clapp'
3+
import { version } from '../package.json'
4+
5+
const cli = new CLI('queue')
6+
7+
cli.command('version', 'Show the version of the CLI').action(() => {
8+
console.log(version)
9+
})
10+
11+
cli.version(version)
12+
cli.help()
13+
cli.parse()

packages/bun-queue/build.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { dts } from 'bun-plugin-dtsx'
2+
3+
await Bun.build({
4+
entrypoints: ['src/index.ts', 'bin/cli.ts'],
5+
outdir: './dist',
6+
target: 'bun',
7+
plugins: [dts()],
8+
})

0 commit comments

Comments
 (0)