refactor(build): switch from esbuild to rolldown
This commit is contained in:
parent
6392cf3b76
commit
bbee38be80
4 changed files with 246 additions and 280 deletions
25
package.json
25
package.json
|
|
@ -4,35 +4,36 @@
|
|||
"type": "module",
|
||||
"private": true,
|
||||
"bin": {
|
||||
"lmc": "dist/lmc"
|
||||
"lmc": "dist/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "pnpm run bundle &>/dev/null && node dist/index.cjs",
|
||||
"dev": "pnpm run bundle &>/dev/null && node dist/index.js",
|
||||
"check": "biome check --write && pnpm run tc",
|
||||
"build": "pnpm run check && pnpm run bundle --minify && pnpm run bin",
|
||||
"bundle": "esbuild index.ts --bundle --outfile=dist/index.cjs --platform=node",
|
||||
"clean": "rm -rf dist",
|
||||
"build": "pnpm run check && pnpm run bundle --minify",
|
||||
"build:bin": "pnpm run check && pnpm run bundle:bin --minify && pnpm run bin",
|
||||
"bundle": "rolldown index.ts --dir=dist --platform=node",
|
||||
"bundle:bin": "rolldown index.ts --dir=dist --platform=node --no-code-splitting --format=cjs",
|
||||
"bin": "node --build-sea sea-config.json",
|
||||
"tc": "tsc --noEmit --incremental"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.4.12",
|
||||
"@types/bun": "^1.3.14",
|
||||
"esbuild": "0.28.0",
|
||||
"@ai-sdk/openai-compatible": "^2.0.41",
|
||||
"@biomejs/biome": "2.4.12",
|
||||
"@clack/prompts": "^1.3.0",
|
||||
"@cliffy/table": "npm:@jsr/cliffy__table",
|
||||
"@mozilla/readability": "^0.6.0",
|
||||
"@types/bun": "^1.3.14",
|
||||
"ai": "^6.0.161",
|
||||
"ansi-styles": "^6.2.3",
|
||||
"chalk": "^5.6.2",
|
||||
"happy-dom-without-node": "^14.12.3",
|
||||
"marked": "^18.0.4",
|
||||
"rolldown": "^1.0.3",
|
||||
"shiki": "^4.0.2",
|
||||
"string-width": "^8.2.1",
|
||||
"terminal-link": "^5.0.0",
|
||||
"wrap-ansi": "^10.0.0",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"peerDependencies": {},
|
||||
"dependencies": {}
|
||||
"typescript": "^5",
|
||||
"wrap-ansi": "^10.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue