Skip to content

Latest commit

 

History

History
131 lines (101 loc) · 2.95 KB

File metadata and controls

131 lines (101 loc) · 2.95 KB

NPM Publishing Checklist for @panayiotis/laikoi-dromoi

✅ Pre-Publish Verification Complete!

Package Status

  • Build Script Fixed - TypeScript declarations now generate correctly
  • All Files Present:
    • dist/laikoi-dromoi.es.js - ESM bundle
    • dist/laikoi-dromoi.cjs.js - CommonJS bundle
    • dist/index.d.ts - TypeScript declarations
    • dist/data/scales.d.ts - Scale types
    • dist/utils/transpose.d.ts - Transpose utility types
    • Source maps (.d.ts.map files)
  • LICENSE file - MIT License added
  • README.md - Comprehensive documentation
  • Package.json - Properly configured with exports

Package Details

Package: @panayiotis/laikoi-dromoi@0.1.0
Size: 4.5 KB (gzipped)
Files: 11 total

Files Included in Package:

  • LICENSE (0 B)
  • README.md (5.4 KB)
  • package.json (1.3 KB)
  • dist/laikoi-dromoi.es.js (3.4 KB)
  • dist/laikoi-dromoi.cjs.js (2.5 KB)
  • dist/index.d.ts (162 B)
  • dist/data/scales.d.ts (225 B)
  • dist/utils/transpose.d.ts (203 B)
  • Source maps

Ready to Publish! 🚀

Publishing Steps:

  1. Login to npm:
cd /Users/panayiotisgeorgiou/Git/laikoi-dromoi
npm login
  1. Publish the package:
npm publish --access public
  1. Verify publication:
npm view @panayiotis/laikoi-dromoi

After Publishing:

  1. Test installation:
npm install @panayiotis/laikoi-dromoi
  1. Update the React app:
cd /Users/panayiotisgeorgiou/Git/react-bouzouki-scales
npm install @panayiotis/laikoi-dromoi@latest
  1. Deploy to Netlify:
cd /Users/panayiotisgeorgiou/Git/react-bouzouki-scales
./setup-netlify.sh

Package Information

Installation

npm install @panayiotis/laikoi-dromoi

Usage

import { scales, transposeScale, transposeChords } from '@panayiotis/laikoi-dromoi'
import type { Scale } from '@panayiotis/laikoi-dromoi'

Links

Troubleshooting

If publish fails with "You must verify your email"

  • Check your npm account email
  • Verify it through the link sent by npm

If publish fails with "You do not have permission"

  • Use --access public flag for scoped packages
  • Make sure you're logged in: npm whoami

If types aren't working

  • Check that types field in package.json points to ./dist/index.d.ts
  • Verify declaration files exist in dist folder

Version Management

To update the version:

# Patch (0.1.0 → 0.1.1)
npm version patch

# Minor (0.1.0 → 0.2.0)
npm version minor

# Major (0.1.0 → 1.0.0)
npm version major

# Then publish
npm publish

Notes

  • prepublishOnly script automatically runs the build
  • Package is scoped under @panayiotis/
  • First publish requires --access public
  • Subsequent publishes just need npm publish