Skip to content

Refactor into npm package structure #11

Description

@jeremyfelt

Summary

Transform the current standalone tool into a proper npm package that can be installed as a dependency.

Tasks

  • Update package.json for npm publishing (add bin, main, files fields)
  • Create CLI entry point in bin/reglance.js
  • Move core logic from root .mjs files to lib/ directory
  • Set up proper module exports/imports
  • Add package metadata (description, keywords, author, repository)
  • Consider TypeScript conversion for better DX

Acceptance Criteria

  • Package can be installed via npm install
  • CLI commands work: npx reglance capture, npx reglance compare, npx reglance control
  • Core functionality preserved during refactor

Current vs Target Structure

Current: capture.mjs, compare.mjs, control.mjs in root
Target: bin/reglance.js CLI + lib/ directory for core logic

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions