rootless-config 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rootless-config",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Store project config files outside the project root, auto-deploy them where tools expect them.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -133,9 +133,14 @@ export default {
133
133
  logger.success('Rootless hook already installed.')
134
134
  }
135
135
 
136
- // --profile-only: только установить профиль, без вывода кода в stdout
137
- // Используется в postinstall при npm install -g
138
- if (args.profileOnly) return
136
+ // --profile-only: используется в postinstall при npm install -g
137
+ // Только устанавливает профиль, без вывода кода в stdout
138
+ if (args.profileOnly) {
139
+ if (!alreadyInstalled) {
140
+ process.stderr.write('\x1b[32m✔ [rootless] Profile hook installed — open a new terminal to activate.\x1b[0m\n')
141
+ }
142
+ return
143
+ }
139
144
 
140
145
  // Если stdout пайпится (Invoke-Expression) — выводим HOOK_BODY
141
146
  // Если терминал — показываем подсказку