Add bunx support for easy sharing
- Add bin entry and CLI shim for `bunx baudy` - Add JSX pragmas so hono/jsx resolves without tsconfig - Add bunfig.toml, .npmignore for publishing - Reorder error hints to prioritize headphone disconnect Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5ac02af171
commit
11366d62b2
11
.npmignore
Normal file
11
.npmignore
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
.context/
|
||||||
|
tmp/
|
||||||
|
bun.lock
|
||||||
|
src/
|
||||||
|
docs/
|
||||||
|
cli.ts
|
||||||
|
index.tsx
|
||||||
|
tsconfig.json
|
||||||
|
bunfig.toml
|
||||||
|
CLAUDE.md
|
||||||
|
.npmrc
|
||||||
2
bunfig.toml
Normal file
2
bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
jsx = "react-jsx"
|
||||||
|
jsxImportSource = "hono/jsx"
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "baudy",
|
"name": "baudy",
|
||||||
|
"version": "0.0.6",
|
||||||
"module": "index.tsx",
|
"module": "index.tsx",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"bin": {
|
||||||
|
"baudy": "dist/cli.js"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"toes": "bun run --watch index.tsx",
|
"toes": "bun run --watch index.tsx",
|
||||||
"start": "bun run index.tsx",
|
"start": "bun run index.tsx",
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
|
/** @jsxImportSource hono/jsx */
|
||||||
export default () => <h1>baudy</h1>
|
export default () => <h1>baudy</h1>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/** @jsxImportSource hono/jsx */
|
||||||
import { Hype } from '@because/hype'
|
import { Hype } from '@because/hype'
|
||||||
import { define, stylesToCSS } from '@because/forge'
|
import { define, stylesToCSS } from '@because/forge'
|
||||||
import factory from 'ggwave'
|
import factory from 'ggwave'
|
||||||
|
|
@ -725,9 +726,9 @@ async function startup() {
|
||||||
console.log(`${RED}${BOLD}✗ Couldn't hear the test chirp.${RESET}`)
|
console.log(`${RED}${BOLD}✗ Couldn't hear the test chirp.${RESET}`)
|
||||||
console.log()
|
console.log()
|
||||||
console.log(`${YELLOW}Try:${RESET}`)
|
console.log(`${YELLOW}Try:${RESET}`)
|
||||||
console.log(` • Turn your volume up`)
|
|
||||||
console.log(` • Check System Settings > Sound (output: "${speaker}", input: "${mic}")`)
|
|
||||||
console.log(` • Disconnect headphones — sound needs to travel through the air`)
|
console.log(` • Disconnect headphones — sound needs to travel through the air`)
|
||||||
|
console.log(` • Check System Settings > Sound (output: "${speaker}", input: "${mic}")`)
|
||||||
|
console.log(` • Turn your volume up`)
|
||||||
console.log()
|
console.log()
|
||||||
await prompt(` Press Enter to continue anyway... `)
|
await prompt(` Press Enter to continue anyway... `)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user