feat: add pnpm run link:dev for local development

- scripts/link-dev.sh: one-command setup to switch ~/.uncaged-nerve
  to use monorepo packages instead of npm registry versions
- Builds all packages, links CLI globally, links all @uncaged/*
  packages into the nerve workspace, and restarts daemon
- Prevents version mismatch between CLI and daemon during development
This commit is contained in:
Wei Wei
2026-04-27 13:33:25 +08:00
parent 2447a78f00
commit a834083a0b
2 changed files with 68 additions and 1 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
"prepare": "husky",
"build": "pnpm -r run build",
"check": "biome check .",
"format": "biome format --write ."
"format": "biome format --write .",
"link:dev": "bash scripts/link-dev.sh"
},
"devDependencies": {
"@biomejs/biome": "^1.9.0",