From eb2a9179e4ca681697b13c5c67ff1163c760686d Mon Sep 17 00:00:00 2001 From: Andrew Chou Date: Fri, 27 Sep 2024 14:49:42 -0400 Subject: [PATCH] fix exports --- package.json | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 35caa70..d18442d 100644 --- a/package.json +++ b/package.json @@ -3,14 +3,36 @@ "version": "1.0.1", "description": "", "exports": { - ".": "./lib/index.js", - "./reader": "./lib/reader.js", - "./writer": "./lib/writer.js", - "./server": "./lib/server.js", - "./style-downloader": "./lib/style-downloader.js", - "./tile-downloader": "./lib/tile-downloader.js", - "./download": "./lib/download.js" + ".": { + "types": "./dist/index.d.ts", + "import": "./lib/index.js" + }, + "./reader.js": { + "types": "./dist/reader.d.ts", + "import": "./lib/reader.js" + }, + "./writer.js": { + "types": "./dist/writer.d.ts", + "import": "./lib/writer.js" + }, + "./server.js": { + "types": "./dist/server.d.ts", + "import": "./lib/server.js" + }, + "./style-downloader.js": { + "types": "./dist/style-downloader.d.ts", + "import": "./lib/style-downloader.js" + }, + "./tile-downloader.js": { + "types": "./dist/tile-downloader.d.ts", + "import": "./lib/tile-downloader.js" + }, + "./download.js": { + "types": "./dist/download.d.ts", + "import": "./lib/download.js" + } }, + "types": "./dist/index.d.ts", "bin": { "styled-map-package": "./bin/smp.js", "smp": "./bin/smp.js"