Instruction file imported from simptel/azure-devops-npm-auth (
.github/instructions/*.instructions.md). Copyright stays with the author.
Project Instructions
Overview
This is a CLI tool that authenticates npm with Azure DevOps Artifacts using Microsoft Entra ID (no PATs).
Requirements
- Node.js >= 18
- npm
Development
Install dependencies: npm install
Build: npm run build
Run locally: node dist/index.js
Project structure
src/ → TypeScript source dist/ → Compiled output (generated) package.json
Rules
- All source code lives in
src/ - Output must go to
dist/ - Do not commit
node_modules - Do not manually edit files in
dist/ - CLI entry must remain
dist/index.js
Before commit
- Ensure project builds: npm run build
Before publish
- Build project: npm run build
- Verify package contents: npm pack --dry-run
Notes
- Tokens are written to
~/.npmrc - Authentication is handled via Entra ID