Commit 044c02e
committed
feat: Add @af/sweph-core package for multi-platform architecture
## Phase 1: Core Extraction
- Create packages/core with shared types, interfaces, and utilities
- Add ISwephAdapter interface for platform-agnostic native bindings
- Add ISwephInstance interface for unified high-level API
- Extract pure JS utils: normalizeLongitude, getRashi, getNakshatra, etc.
- Copy constants: PLANETS, AYANAMSA, RASHIS, NAKSHATRAS
- Setup pnpm workspace configuration
- Core package builds successfully
This prepares for multi-platform support (Node.js, WASM, React Native)
with shared calculation logic and unified interfaces.1 parent e4e779c commit 044c02e
25 files changed
Lines changed: 1736 additions & 0 deletions
File tree
- packages
- core
- dist
- src
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments