- Switch module type to commonjs in package.json - Update esbuild target to node22 and remove explicit ESM format flag - Add `bin` script for building a native binary using `node --build-sea` - Introduce sea-config.json with code cache enabled for faster startup
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"name": "lmc",
|
|
"module": "index.ts",
|
|
"main": "dist/index.js",
|
|
"type": "commonjs",
|
|
"private": true,
|
|
"bin": {
|
|
"lmc": "dist/index.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx index.ts",
|
|
"prod": "node dist/index.js",
|
|
"check": "biome check --write && pnpm run tc",
|
|
"build": "pnpm run check && pnpm run bundle && pnpm run bin",
|
|
"bundle": "esbuild index.ts --bundle --outdir=dist --platform=node --target=node22",
|
|
"bin": "node --build-sea sea-config.json",
|
|
"tc": "tsc --noEmit --incremental"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.4.12",
|
|
"@types/bun": "latest",
|
|
"esbuild": "0.28.0"
|
|
},
|
|
"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"
|
|
}
|
|
}
|