claude-code-best/scripts
xuzhongpeng 714ef13e68 fix: resolve absolute path in dev.ts for cross-directory execution
The dev script previously used a relative path "src/entrypoints/cli.tsx" which would fail when executed from outside the project root directory.

Changes:
- Add path resolution using import.meta.url to locate project root
- Use absolute path for cli.tsx entry point
- Set cwd option in Bun.spawnSync to ensure correct working directory

This allows running "bun run /path/to/scripts/dev.ts" from any directory.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 18:04:12 +08:00
..
defines.ts refactor: 用 Bun 原生 define 替换 cli.tsx 中的 globalThis 注入 2026-04-02 09:51:48 +08:00
dev-debug.ts feat: 简化 debug 方式 2026-04-03 16:47:24 +08:00
dev.ts fix: resolve absolute path in dev.ts for cross-directory execution 2026-04-05 18:04:12 +08:00
download-ripgrep.ts fix: 尝试修复 windows 下面没有 unzip 的问题 2026-04-04 17:02:39 +08:00
health-check.ts feat: 添加代码健康度检查脚本 2026-04-01 07:17:09 +08:00