mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 12:14:19 +00:00
refactor(websearch): address PR review recommendations
- Add comment in postuninstall.js explaining intentional os.homedir() - Fix comment in install-command.ts (doesn't touch global settings.json) - Consolidate duplicate getCcsHooksDir() - export from hook-config.ts - Add debug logging to silent catch blocks in profile-hook-injector.ts
This commit is contained in:
1 parent
b33674b3b2
commit
21b18d0c4e
5 files changed
+13
-14
No files matched your search
@@ -12,6 +12,8 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
|
||||
// Note: Uses os.homedir() directly because this script runs during npm uninstall,
|
||||
// not in test context. CCS_HOME isolation is for src/ code only.
|
||||
const CCS_DIR = path.join(os.homedir(), '.ccs');
|
||||
const HOOKS_DIR = path.join(CCS_DIR, 'hooks');
|
||||
const MIGRATION_MARKER = path.join(CCS_DIR, '.hook-migrated');
|
||||
|
||||
Reference in new issue
Block a user