From 1736b625258a0ff4b130b3bf56d27dab51beca09 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 13 Dec 2023 20:09:45 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Add=20types=20field=20to=20package.json=20e?= =?UTF-8?q?xports=20=E2=80=93=20fixes=20ts(7016)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/js/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/js/package.json b/source/js/package.json index 8b433b66..1ff7645c 100644 --- a/source/js/package.json +++ b/source/js/package.json @@ -38,7 +38,8 @@ "exports": { ".": { "require": "./astronomy.js", - "import": "./esm/astronomy.js" + "import": "./esm/astronomy.js", + "types": "./astronomy.d.ts" } }, "main": "./astronomy.js", From 6d6d6adb698eca64cecb758808223e29b454bb6d Mon Sep 17 00:00:00 2001 From: Don Cross Date: Wed, 13 Dec 2023 16:00:20 -0500 Subject: [PATCH 2/2] Version 2.1.18: Accepted PR #329. Include TypeScript type definitions in the exported files. This might be a fix for #294, but I'm not sure. The only real way to test is to publish on npm and see what happens! --- README.md | 2 +- generate/version.txt | 2 +- source/csharp/astronomy.csproj | 2 +- source/js/package.json | 2 +- source/kotlin/README.md | 2 +- source/kotlin/build.gradle.kts | 2 +- source/python/setup.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 17619320..8af786a8 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Examples -
+
Code & Docs
diff --git a/generate/version.txt b/generate/version.txt index 2f1a5aa9..d3026563 100644 --- a/generate/version.txt +++ b/generate/version.txt @@ -1 +1 @@ -2.1.17 +2.1.18 diff --git a/source/csharp/astronomy.csproj b/source/csharp/astronomy.csproj index f08536f1..13f0e2f4 100644 --- a/source/csharp/astronomy.csproj +++ b/source/csharp/astronomy.csproj @@ -4,7 +4,7 @@ true true CosineKitty.AstronomyEngine - 2.1.17 + 2.1.18 https://github.com/cosinekitty/astronomy Don Cross Astronomy Engine diff --git a/source/js/package.json b/source/js/package.json index 1ff7645c..f76b9790 100644 --- a/source/js/package.json +++ b/source/js/package.json @@ -1,6 +1,6 @@ { "name": "astronomy-engine", - "version": "2.1.17", + "version": "2.1.18", "description": "Astronomy calculation for Sun, Moon, and planets.", "author": "Donald Cross", "license": "MIT", diff --git a/source/kotlin/README.md b/source/kotlin/README.md index 163c9834..ed1a6ff3 100644 --- a/source/kotlin/README.md +++ b/source/kotlin/README.md @@ -25,7 +25,7 @@ allprojects { Now add the dependency: ```kotlin dependencies { - implementation("io.github.cosinekitty:astronomy:2.1.17") + implementation("io.github.cosinekitty:astronomy:2.1.18") } ``` diff --git a/source/kotlin/build.gradle.kts b/source/kotlin/build.gradle.kts index dac9cf6d..c49ade75 100644 --- a/source/kotlin/build.gradle.kts +++ b/source/kotlin/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "io.github.cosinekitty" -version = "2.1.17" +version = "2.1.18" repositories { mavenCentral() diff --git a/source/python/setup.py b/source/python/setup.py index 4a6ff3a0..67b3f851 100644 --- a/source/python/setup.py +++ b/source/python/setup.py @@ -6,7 +6,7 @@ def _LoadFile(filename): setup( name='astronomy-engine', - version='2.1.17', + version='2.1.18', description='Astronomy calculation for Sun, Moon, and planets.', long_description=_LoadFile('README.md'), long_description_content_type='text/markdown',