Skip to content

feat(windows): configure work npm registry - #705

Merged
DevSecNinja merged 1 commit into
mainfrom
devsecninja-configure-work-npm-registry
Aug 12, 2026
Merged

feat(windows): configure work npm registry#705
DevSecNinja merged 1 commit into
mainfrom
devsecninja-configure-work-npm-registry

Conversation

@DevSecNinja

Copy link
Copy Markdown
Owner

Windows work devices need npm to use Microsoft's package feed proxy without affecting personal machines or systems where npm is not installed.

This adds a native PowerShell Chezmoi script that runs on every apply, prefers the inherited CHEZMOI_IS_WORK value, and falls back to chezmoi data during bootstrap. It skips non-work devices and missing npm installations, while surfacing actual registry configuration failures. The Copilot instructions now establish native files and scripts as the default, with templates reserved for cases where native runtime logic is unsuitable.

Tests cover native-script enforcement, work-device detection, bootstrap fallback, skip behavior, and the exact user-scoped registry command.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b6d3b04e-36dd-4ea4-bb43-204d1b085075
@DevSecNinja
DevSecNinja merged commit 6e70d22 into main Aug 12, 2026
16 checks passed
@DevSecNinja
DevSecNinja deleted the devsecninja-configure-work-npm-registry branch August 12, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant