From a8c51aac8d13a0084b31af5fb9f626b872b18a20 Mon Sep 17 00:00:00 2001 From: ffalcinelli Date: Wed, 23 Sep 2026 08:28:32 +0200 Subject: [PATCH] fix: ship the licenses and NOTICE in the npm package wasm-pack copies neither, so the published package lacked Skyfield's MIT notice. The README also credits Skyfield and points to NOTICE. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 3 +++ README.md | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3822fe6..a3df4a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -159,4 +159,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | npm pkg set name=astroceleste-engine + # wasm-pack copies neither the licenses nor NOTICE (Skyfield's MIT notice). + cp -L ../../../LICENSE-MIT ../../../LICENSE-APACHE ../../../NOTICE . + npm pkg set 'files[]=LICENSE-MIT' 'files[]=LICENSE-APACHE' 'files[]=NOTICE' npm publish --provenance --access public diff --git a/README.md b/README.md index 10db9a6..6345a65 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,12 @@ Licensed under either of at your option. +The astronomical reduction (ΔT, IAU 2000A nutation, IAU 2006 precession, light-time, +deflection and aberration) is ported from [Skyfield](https://github.com/skyfielders/python-skyfield) +by Brandon Rhodes, used under the MIT license: see +[NOTICE](https://github.com/ffalcinelli/astroceleste-engine/blob/main/NOTICE), which is shipped in +every package. + Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.