lmc/package.json
mitchell 0c71e2cd54 refactor: replace Bun APIs with Node.js equivalents
Replace Bun.argv with process.argv, Bun.file() with fs/promises,
Bun.stringWidth with string-width package, and Bun.wrapAnsi with
wrap-ansi package for better compatibility.
2026-05-25 23:13:16 -04:00

44 lines
1.4 KiB
JSON

{
"name": "lmc",
"module": "index.ts",
"type": "module",
"private": true,
"bin": {
"lmc": "out/index.js",
"ttsc": "out/tts.js"
},
"scripts": {
"dev": "bun run index.ts",
"prod": "bun run out/index.js",
"check": "bunx --bun @biomejs/biome check --write && bun run tc",
"build:js": "bun run check && bun run --parallel build:bundle build:tts && bun run --parallel shebang shebang:tts",
"build:bundle": "bun build --target=bun --production --sourcemap --outdir=out index.ts",
"build:tts": "bun build --target=bun --production --sourcemap --outdir=out tts.ts",
"build:bin": "bun build --compile --outfile=out/lmc index.ts",
"shebang": "sed -i '1i#!\\/usr\\/bin\\/env bun' out/index.js",
"shebang:tts": "sed -i '1i#!\\/usr\\/bin\\/env bun' out/tts.js",
"tc": "tsc --noEmit --incremental"
},
"devDependencies": {
"@biomejs/biome": "2.4.12",
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@ai-sdk/openai-compatible": "^2.0.41",
"@clack/prompts": "^1.3.0",
"@cliffy/table": "npm:@jsr/cliffy__table",
"@mozilla/readability": "^0.6.0",
"ai": "^6.0.161",
"ansi-styles": "^6.2.3",
"chalk": "^5.6.2",
"happy-dom-without-node": "^14.12.3",
"marked": "^18.0.4",
"shiki": "^4.0.2",
"string-width": "^8.2.1",
"terminal-link": "^5.0.0",
"wrap-ansi": "^10.0.0"
}
}