BA-CalderonMorales

npm

@BA-CalderonMorales/npm
BA-CalderonMorales
114
17 forks
Updated 1/18/2026
View on GitHub

Skill: NPM Distribution: **Name**: npm

Installation

$skills install @BA-CalderonMorales/npm
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Path.github/skills/npm/SKILL.md
Branchmain
Scoped Name@BA-CalderonMorales/npm

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions

Skill: NPM Distribution

Name: npm Description: NPM package publishing and distribution Trigger: "NPM publish", npm release, JavaScript/TypeScript distribution


NPM Authentication

# Check authentication status
npm whoami

# Login if needed
npm login

# Verify credentials
npm whoami  # Should show your username

Distribution Tags

TagPurposeCommand
latestStable release (default)npm publish or npm publish --tag latest
nextBeta/preview releasenpm publish --tag next
alphaEarly developmentnpm publish --tag alpha

NPM Publishing Workflow

# 1. Ensure authenticated
npm whoami

# 2. Update version (via deployment script)
./scripts/cicd/local-cd.sh --update-version X.X.X

# 3. Build TypeScript wrapper
cd npm/terminal-jarvis
npm run lint
npm run format
npm run build

# 4. Publish (happens automatically via local-cd.sh)
# Or manually: npm publish --tag latest

# 5. Verify
npm info terminal-jarvis
npm install -g terminal-jarvis@X.X.X
terminal-jarvis --version

NPM Package Structure

Following Orhun Parmaksiz pattern:

  1. Build Rust binary for target platform
  2. Package binary in NPM with TypeScript wrapper
  3. Wrapper calls binary via child_process
  4. Cross-platform support via platform-specific binaries

Package Location

npm/terminal-jarvis/

  • package.json - NPM package manifest
  • src/ - TypeScript wrapper source
  • bin/ - Binary entry point
  • scripts/ - Build and installation scripts

TypeScript Standards

  • Use Biome for linting/formatting (NOT ESLint)
  • Run npm run lint and npm run format before committing