From 748d71e63d7b2a67a9de1240929aacd6b1ddb26f Mon Sep 17 00:00:00 2001 From: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:37:52 -0400 Subject: [PATCH] Fixed entries in package.json so that package works with TypeScript. (#11) The TypeScript entries were still set to some default values, which prevented the index.d.ts from getting generated correctly. Also fixed up the url/directory for the package. --- javascript/package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/javascript/package.json b/javascript/package.json index 344fadb..b399249 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -5,7 +5,8 @@ "homepage": "https://github.com/aws-geospatial/polyline", "repository": { "type": "git", - "url": "https://github.com/aws-geospatial/polyline" + "url": "git+https://github.com/aws-geospatial/polyline.git", + "directory": "javascript" }, "bugs": { "url": "https://github.com/aws-geospatial/polyline/issues", @@ -30,8 +31,9 @@ "test": "jest --collectCoverage --collectCoverageFrom=src/**/*.{ts,js}", "typedoc": "typedoc" }, - "main": "./dist/math.js", - "exports": "./dist/math.js", + "main": "./dist/cjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/types/index.d.ts", "files": [ "dist/", "!**/__tests__/**"