mirror of
https://github.com/colbymchenry/codegraph.git
synced 2026-10-25 12:00:02 +08:00
build:ui and build:lib ran npm run build --workspace ui. Under bun, a package script's npm run becomes bun run, and bun ignores --workspace, so build:ui ran the ROOT build again, which ran build:ui again. bun run build:ui on main nests without end: with bun 1.3.8 here, 13 bun processes deep after 62 s, when a watchdog killed the tree. npm is unaffected, which is why it went unnoticed. The scripts now name the workspace by directory: cd ui && npm run build (and cd ui && npm run build:lib), which runs the same ui script under either tool. Validation: with the fix, bun run build, build:ui and build:lib finish by themselves in 16 s, 6 s and 6 s, and check-ui-build and check-ui-package pass. npm run build plus npm run build:lib give the same output before and after, under npm's default script shell (cmd.exe here) and under bash (npm --script-shell bash): dist/ (1,260 files) and ui/dist (171) are identical by SHA-256 in all four runs, built in one checkout from clean outputs, and bun's build gives that same tree. check-ui-build and check-ui-package pass in every run. scripts/pack-npm.sh still runs npm run build:lib --workspace ui; that runs only under npm, in the release workflow, so it is left as is. Original PR #1764 by @bompus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
69 lines
2.3 KiB
JSON
69 lines
2.3 KiB
JSON
{
|
|
"name": "@colbymchenry/codegraph",
|
|
"version": "1.6.2",
|
|
"description": "Supercharge AI coding agents with semantic code intelligence — surgical context, fewer tool calls, faster answers. 100% local.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/colbymchenry/codegraph.git"
|
|
},
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"bin": {
|
|
"codegraph": "./dist/bin/codegraph.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"scripts",
|
|
"README.md"
|
|
],
|
|
"workspaces": [
|
|
"ui"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc && npm run copy-assets && npm run build:ui && node -e \"require('fs').chmodSync('dist/bin/codegraph.js', 0o755)\"",
|
|
"build:ui": "cd ui && npm run build && cd .. && node scripts/check-ui-build.mjs",
|
|
"build:lib": "cd ui && npm run build:lib",
|
|
"preuninstall": "node dist/bin/uninstall.js",
|
|
"copy-assets": "node -e \"const fs=require('fs');fs.mkdirSync('dist/db',{recursive:true});fs.copyFileSync('src/db/schema.sql','dist/db/schema.sql');fs.mkdirSync('dist/extraction/wasm',{recursive:true});fs.readdirSync('src/extraction/wasm').filter(f=>f.endsWith('.wasm')).forEach(f=>fs.copyFileSync('src/extraction/wasm/'+f,'dist/extraction/wasm/'+f))\"",
|
|
"dev": "tsc --watch",
|
|
"build:kernel": "bash scripts/build-kernel.sh",
|
|
"cli": "npm run build && node dist/bin/codegraph.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:eval": "vitest run __tests__/evaluation/",
|
|
"eval": "npm run build && npx tsx __tests__/evaluation/runner.ts",
|
|
"clean": "node -e \"const fs=require('fs');fs.rmSync('dist',{recursive:true,force:true})\""
|
|
},
|
|
"keywords": [
|
|
"code-intelligence",
|
|
"knowledge-graph",
|
|
"static-analysis"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.3.0",
|
|
"commander": "^14.0.2",
|
|
"fast-string-width": "^3.0.2",
|
|
"fast-wrap-ansi": "^0.2.0",
|
|
"ignore": "^7.0.5",
|
|
"jsonc-parser": "^3.3.1",
|
|
"picomatch": "^4.0.3",
|
|
"sisteransi": "^1.0.5",
|
|
"tree-sitter-wasms": "^0.1.11",
|
|
"web-tree-sitter": "^0.25.3"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/vite-plugin-svelte": "^4.0.4",
|
|
"@types/better-sqlite3": "^7.6.0",
|
|
"@types/node": "^20.19.30",
|
|
"@types/picomatch": "^4.0.2",
|
|
"jsdom": "^25.0.1",
|
|
"typescript": "^5.0.0",
|
|
"vitest": "^2.1.9"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0 <25.0.0"
|
|
}
|
|
}
|